
How to add Magg to Cursor
Meta-MCP server that manages, aggregates, and proxies other MCP servers so LLMs can extend themselves. Paste the config into ~/.cursor/mcp.json and restart Cursor.
Last updated June 14, 2026 · 134★ · stdio · no auth
Cursor config for Magg
uv tool install magg{
"mcpServers": {
"magg": {
"command": "magg",
"args": [
"serve"
]
}
}
}Setup steps
- 1Open Cursor → Settings → MCP → Add new MCP server (or edit ~/.cursor/mcp.json directly).
- 2Paste the Magg config below into the "mcpServers" object.
- 3Fill in placeholder secrets, then save.
- 4Cursor reloads MCP servers automatically — check Settings → MCP for a green status dot.
- 5Ask Cursor to use one of Magg's tools to confirm it's connected.
Before you start
- Python 3.12 or higher (3.13+ recommended)
- uv (recommended) — installed from astral.sh/uv
- Optional: Docker, for running the pre-built ghcr.io/sitbon/magg images
What Magg can do in Cursor
magg_list_serversList all configured MCP servers.
magg_add_serverAdd a new MCP server.
magg_remove_serverRemove a server.
magg_enable_serverEnable a server, making it available.
magg_disable_serverDisable a server, toggling off its availability.
magg_search_serversSearch for MCP servers online.
magg_list_toolsList all available tools from all servers.
magg_smart_configureIntelligently configure a server from just a URL.
Security
HTTP transport supports optional bearer-token authentication via an RSA keypair. Run `magg auth init` to generate keys (stored in `~/.ssh/magg/` by default), then `magg auth token` to mint JWTs; clients pass the token via the MAGG_JWT env var or BearerAuth. The private key may also be supplied through MAGG_PRIVATE_KEY. By default (stdio quick-start) no auth is configured. A read-only mode is available via MAGG_READ_ONLY=true. Because Magg can dynamically add and run arbitrary backend MCP servers at an LLM's request, treat it as capable of executing whatever those servers can do.
Magg + Cursor FAQ
Where is the Cursor config file?
Cursor reads MCP servers from ~/.cursor/mcp.json. Paste the Magg config there under the "mcpServers" key and restart the client.
Is Magg safe to use with Cursor?
HTTP transport supports optional bearer-token authentication via an RSA keypair. Run `magg auth init` to generate keys (stored in `~/.ssh/magg/` by default), then `magg auth token` to mint JWTs; clients pass the token via the MAGG_JWT env var or BearerAuth. The private key may also be supplied through MAGG_PRIVATE_KEY. By default (stdio quick-start) no auth is configured. A read-only mode is available via MAGG_READ_ONLY=true. Because Magg can dynamically add and run arbitrary backend MCP servers at an LLM's request, treat it as capable of executing whatever those servers can do.
What transports does Magg support?
stdio (default, for Claude Desktop, Cline, Cursor, Claude Code), HTTP (`magg serve --http`), and a hybrid mode that runs both simultaneously, plus in-memory transport.
How do I add it to Claude Code?
After installing Magg (`uv tool install magg`), run `claude mcp add magg -- magg serve --hybrid --port 42000`. For a plain stdio client, point it at the command `magg` with argument `serve`.
Does it require authentication?
No by default. For HTTP access you can optionally enable RSA-based JWT bearer-token auth via `magg auth init` / `magg auth token`; clients then pass the token through the MAGG_JWT environment variable or BearerAuth.