Skip to content

Multiple MCP servers in Cursor

Use case: You run several local MCP servers (filesystem, Playwright, postgres, custom tools) and want Cursor to reach them remotely through one secure URL — without loading every tool schema at connect time.

Why MCPZERO fits

ChallengeMCPZERO approach
Many servers, many configsOne mcp.json → one tunnel → one endpoint root
Context bloat from tool schemasProgressive discovery at endpoint root
Remote access from CursorHTTPS gateway with API key auth
Credentials on laptop onlyUpstream secrets never leave your machine

Architecture

Cursor ──HTTPS──▶ gw.mcpzero.io/v1/ep_abc123 ──WS──▶ mcpzero tunnel ──stdio──▶ mcp.json servers
(meta server) ├── filesystem
├── playwright
└── postgres

Steps

1. Prepare mcp.json

Use your existing Cursor MCP config or start from the quickstart example:

{
"mcpServers": {
"playwright-headless": {
"command": "npx",
"args": ["@playwright/mcp@latest"]
},
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/dir"]
}
}
}

Validate before tunneling:

Terminal window
mcpzero servers --mcp-config ./mcp.json

2. Start the tunnel

Terminal window
mcpzero login
mcpzero tunnel start --endpoint ep_abc123 --mcp-config ./mcp.json

Or use the interactive wizard: mcpzero init.

3. Connect Cursor at the endpoint root

Point Cursor at the meta server (recommended):

FieldValue
URLhttps://gw.mcpzero.io/v1/ep_abc123
HeaderAuthorization: Bearer mz_live_…

At the root, tools/list returns meta_search and meta_call_tool. The agent searches by intent, then invokes the matched tool on the correct backend.

4. Direct server URLs (optional)

For debugging or clients without meta-tool support, each server keeps its own path:

https://gw.mcpzero.io/v1/ep_abc123/filesystem
https://gw.mcpzero.io/v1/ep_abc123/playwright-headless

See Semantic aggregation for when to use root vs server URL.

Verify

  • Dashboard → Activity shows tool calls with latency and status
  • Run mcpzero doctor if the tunnel or client connection fails