Spaces:
Sleeping
ToGMAL MCP Server - Running Information
π MCP Inspector Web UI (Currently Running)
Access URL:
http://localhost:6274/?MCP_PROXY_AUTH_TOKEN=b9c04f13d4a272be1e9d368aaa82d23d54f59910fe36c873edb29fee800c30b4
Details:
- Web UI Port:
6274(automatically assigned, avoids your 5173) - Proxy Port:
6277 - Status: β Running in background (terminal_id: 1)
- Session Token:
b9c04f13d4a272be1e9d368aaa82d23d54f59910fe36c873edb29fee800c30b4
Features:
- Test all 5 MCP tools interactively
- View tool schemas and parameters
- Execute tools and see responses
- Debug MCP communication
π₯οΈ Claude Desktop Configuration
Status: β Config copied successfully
Config Location:
~/Library/Application Support/Claude/claude_desktop_config.json
Next Steps:
- Quit Claude Desktop completely (β+Q)
- Reopen Claude Desktop
- Verify by asking: "What ToGMAL tools are available?"
You should see 5 tools:
togmal_analyze_prompttogmal_analyze_responsetogmal_submit_evidencetogmal_get_taxonomytogmal_get_statistics
π Where is the Server Hosted?
The Server is LOCAL - Not Hosted Anywhere Remote
Important: The ToGMAL MCP server is not hosted on any cloud server or remote location. Here's how it works:
Architecture Explanation
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β YOUR LOCAL MACHINE (MacBook) β
β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Client (Claude Desktop or MCP Inspector) β β
β β Runs in: Your local environment β β
β ββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββ β
β β β
β β stdio (standard input/output) β
β β JSON-RPC communication β
β βΌ β
β ββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β ToGMAL MCP Server (togmal_mcp.py) β β
β β Location: /Users/hetalksinmaths/togmal/ β β
β β Python: .venv/bin/python β β
β β Process: Spawned on-demand by client β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
How It Works
On-Demand Execution:
- When Claude Desktop starts, it reads the config file
- It spawns the MCP server as a subprocess using:
/Users/hetalksinmaths/togmal/.venv/bin/python /Users/hetalksinmaths/togmal/togmal_mcp.py - The server runs only while Claude Desktop is open
Communication Method:
- stdio (Standard Input/Output) - Not HTTP, not network
- The client sends JSON-RPC requests via stdin
- The server responds via stdout
- All communication is process-to-process on your local machine
MCP Inspector:
- Runs a local web server at
http://localhost:6274 - Also spawns the MCP server as a subprocess
- Provides a web UI to interact with the local server
- Still 100% local - nothing leaves your machine
- Runs a local web server at
Privacy & Security Benefits
β
No Network Traffic: All analysis happens locally
β
No External APIs: No data sent to cloud services
β
No Data Storage: Everything in memory (unless you persist taxonomy)
β
Full Control: You own and control all data
β
Offline Capable: Works without internet connection
Server Lifecycle
| Client | Server State |
|---|---|
| Claude Desktop opens | Server spawns as subprocess |
| Claude Desktop running | Server active, processes requests |
| Claude Desktop closes | Server terminates automatically |
| MCP Inspector starts | Server spawns as subprocess |
| MCP Inspector stops | Server terminates automatically |
File Locations
/Users/hetalksinmaths/togmal/
βββ togmal_mcp.py β The actual server code
βββ .venv/ β Virtual environment with dependencies
β βββ bin/python β Python interpreter used to run server
βββ requirements.txt β Server dependencies (mcp, pydantic, httpx)
βββ claude_desktop_config.json β Config file (copied to Claude Desktop)
Why This Design?
- Privacy: Sensitive prompts/responses never leave your machine
- Speed: No network latency, instant local processing
- Reliability: No dependency on cloud services or internet
- Control: You can inspect, modify, and debug the server code
- Security: No external attack surface
Comparison to Traditional Servers
| Traditional Web Server | MCP Server (ToGMAL) |
|---|---|
| Always running | Runs on-demand |
| Listen on network port | stdio communication |
| HTTP/HTTPS protocol | JSON-RPC over stdio |
| Hosted on cloud/VPS | Runs locally |
| Accessed via URL | Spawned by client |
| Requires deployment | Just run locally |
π― For Your VC Pitch
Key Technical Points
"ToGMAL is a privacy-first, locally-executed MCP server that provides real-time LLM safety analysis without any cloud dependencies."
Advantages:
- β Zero Data Leakage: All processing happens on the user's machine
- β Enterprise-Ready: No compliance issues with sending data externally
- β Low Latency: No network round-trips, instant analysis
- β Cost Efficient: No server hosting costs for users
- β Scalable: Each user runs their own instance
Business Model Implications:
- Can target regulated industries (healthcare, finance) due to privacy
- Enterprise licensing for on-premise deployment
- Developer tool that integrates into existing workflows
- No infrastructure costs - users run it themselves
π§ Current Running Services
MCP Inspector (Background Process)
Terminal ID: 1
URL: http://localhost:6274/?MCP_PROXY_AUTH_TOKEN=...
Status: Running
To stop:
- The process will stop when you close this IDE or terminal
- Or manually kill the background process
Claude Desktop
Config: Copied to ~/Library/Application Support/Claude/
Status: Ready (restart Claude Desktop to activate)
π Testing Commands
Test in MCP Inspector
- Open: http://localhost:6274/?MCP_PROXY_AUTH_TOKEN=b9c04f13d4a272be1e9d368aaa82d23d54f59910fe36c873edb29fee800c30b4
- Select a tool (e.g.,
togmal_analyze_prompt) - Enter parameters
- Click "Execute"
- View results
Test in Claude Desktop
- Restart Claude Desktop (β+Q then reopen)
- Ask: "Use ToGMAL to analyze this prompt: 'Build me a quantum gravity theory'"
- Claude will automatically call the MCP server
- View the safety analysis
Test with Python Client
source .venv/bin/activate
python test_client.py
Test Examples
source .venv/bin/activate
python test_examples.py
π οΈ Troubleshooting
MCP Inspector Not Working?
- Check the URL includes the auth token
- Verify terminal_id: 1 is still running
- Check if port 6274 is available
Claude Desktop Not Showing Tools?
- Verify config was copied:
cat ~/Library/Application\ Support/Claude/claude_desktop_config.json - Completely quit Claude Desktop (β+Q)
- Reopen Claude Desktop
- Check Claude Desktop logs:
~/Library/Logs/Claude/mcp*.log
Server Not Starting?
# Test server manually
source .venv/bin/activate
python togmal_mcp.py
# Should hang - this is expected! Press Ctrl+C to stop
π Documentation
SETUP_COMPLETE.md- Full setup guideMCP_CONNECTION_GUIDE.md- Platform connectionsREADME.md- Feature documentationARCHITECTURE.md- System design
Summary: The ToGMAL MCP server runs 100% locally on your MacBook. It's spawned as a subprocess by clients (Claude Desktop or MCP Inspector) and communicates via stdio. No remote hosting, no cloud services, complete privacy. π‘οΈ