Get up and running with the MCPHub Desktop Agent in 5 minutes.
The Desktop Agent is a lightweight CLI tool that allows the deployed MCPHub web app (on Vercel) to connect to MCP servers running on your local machine, just like Postman's Desktop Agent.
- Node.js 18 or higher
- npm or pnpm
- A local MCP server to test with
Install globally from npm (Node.js 18+ required):
npm install -g @naman_411/mcphub-agent
# verify
mcphub-agent --versionOn Windows, run the terminal as Administrator if you get a permissions error.
mcphub-agent startYou should see:
🚀 MCPHub Agent listening on ws://localhost:54319
Waiting for connections from MCPHub web app...
Leave this terminal running!
- Open MCPHub in your browser (
mcp-hub-pi.vercel.app/playground) - Look for the green ⚡ DESKTOP AGENT DETECTED banner — appears automatically when the agent is running
- Enable the toggle
- Choose your transport:
- SSE/HTTP — enter your local server URL (e.g.
http://localhost:8080/sse) - Command (Stdio) — type the command directly, add env vars in the form
- SSE/HTTP — enter your local server URL (e.g.
- Click INITIALIZE
Example — GitHub MCP server via stdio (no mcp-proxy needed):
In the connect form, set:
- Transport:
Command (Stdio) - Command:
npx -y @modelcontextprotocol/server-github - Env var:
GITHUB_PERSONAL_ACCESS_TOKEN= your token
The agent spawns the process on your machine directly.
In the agent terminal, you should see:
✅ MCPHub web app connected
📥 Request: connect (id: xxx-xxx-xxx)
✅ Response: connect completed
📥 Request: list_tools (id: yyy-yyy-yyy)
✅ Response: list_tools completed
Symptom: No "Desktop Agent" toggle appears in MCPHub
Solutions:
- Make sure the agent is running:
mcphub-agent start - Check the port is 54319 (default)
- Refresh the MCPHub page
- Check browser console for errors
Symptom: "Failed to connect via Desktop Agent"
Solutions:
- Is your MCP server running?
- Is the URL correct? (usually
http://localhost:8080/sse) - Check agent console for error messages
- Try restarting the agent
Symptom: Error: listen EADDRINUSE: address already in use :::54319
Solution: Another process is using port 54319
- Find and close it, OR
- Use a different port:
mcphub-agent start --port 54320
# Start the agent (default port 54319)
mcphub-agent start
# Start on custom port
mcphub-agent start --port 8888
# Show version
mcphub-agent --version
# Show help
mcphub-agent --helpPress Ctrl+C in the terminal where the agent is running.
- See SETUP.md for detailed setup instructions
- See README.md for architecture details
- See TROUBLESHOOTING_LOCAL_SERVERS.md for background
┌──────────────────┐
│ Browser │ MCPHub Web App
│ (Vercel) │
└────────┬─────────┘
│
│ WebSocket (ws://localhost:54319)
│
┌────────▼─────────┐
│ Desktop Agent │ mcphub-agent (this tool)
│ (Local) │
└────────┬─────────┘
│
│ MCP SDK
│
┌────────▼─────────┐
│ MCP Server │ Your local server
│ (Local) │
└──────────────────┘
You can now use the deployed MCPHub to test and debug your local MCP servers without any tunnel shenanigans.
Happy testing! 🚀