1. Try the sandbox
Merge this entry into your user-level~/.cursor/mcp.json:
sandbox: true. This checks the connection, not production data or ad execution.
2. Create a workspace key
In Plainrouter, select your workspace and open Settings → Workspace keys. Create a Read key for analysis; use Write for Actions, including Actions record reads. Copy it once into your protected credential configuration. Each key covers one workspace. Never put keys in prompts or source control. Key permissions and replacement.3. Add Plainrouter to the client
Add a separate production entry to the samemcpServers object:
mcpServers, not a replacement for the whole file.
4. Verify the connection
Start with this read-only request:5. Troubleshooting
- 401 on tool calls: confirm Cursor inherited the key environment variable. A terminal variable does not necessarily reach an already-running desktop app.
- Invalid config: preserve the outer
mcpServersobject and existing entries. - Tools are unavailable: check that the server and tools are enabled. Remote servers do not support
envFile; use${env:…}interpolation.