
How to add Agent-MCP to Cursor
Multi-agent collaboration protocol: orchestrate specialized AI agents over MCP with a shared knowledge graph. Paste the config into ~/.cursor/mcp.json and restart Cursor.
Last updated June 14, 2026 · 1.2k★ · stdio · apikey
Cursor config for Agent-MCP
uv venv && uv install{
"mcpServers": {
"agent-mcp": {
"command": "uv",
"args": [
"run",
"-m",
"agent_mcp.cli",
"--port",
"8080"
],
"env": {
"OPENAI_API_KEY": "your-openai-api-key"
}
}
}
}Setup steps
- 1Open Cursor → Settings → MCP → Add new MCP server (or edit ~/.cursor/mcp.json directly).
- 2Paste the Agent-MCP 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 Agent-MCP's tools to confirm it's connected.
Before you start
- Python 3.10+ (with uv or pip)
- Node.js 18.0.0+ (recommended 22.16.0) and npm 9.0.0+ for the dashboard / Node implementation
- OpenAI API key (for embeddings and RAG)
- 4GB RAM minimum
- An AI coding assistant such as Claude Code or Cursor
What Agent-MCP can do in Cursor
create_agentSpawn specialized agents (backend, frontend, testing, etc.).
list_agentsView all active agents and their status.
terminate_agentSafely shut down agents.
assign_taskDelegate work to specific agents.
view_tasksMonitor task progress and dependencies.
update_task_statusTrack task completion and blockers.
ask_project_ragQuery the persistent knowledge graph.
update_project_contextAdd architectural decisions and patterns to project context.
Security
Requires an OpenAI API key (set via OPENAI_API_KEY) for embeddings and RAG. The server uses admin/worker tokens; the admin token is printed in the server startup logs. Server can optionally bind to 0.0.0.0 and accept an --auth-token, so restrict network exposure accordingly.
Agent-MCP + Cursor FAQ
Where is the Cursor config file?
Cursor reads MCP servers from ~/.cursor/mcp.json. Paste the Agent-MCP config there under the "mcpServers" key and restart the client.
Is Agent-MCP safe to use with Cursor?
Requires an OpenAI API key (set via OPENAI_API_KEY) for embeddings and RAG. The server uses admin/worker tokens; the admin token is printed in the server startup logs. Server can optionally bind to 0.0.0.0 and accept an --auth-token, so restrict network exposure accordingly.
Which implementation should I use?
The README recommends the Python implementation, started with `uv run -m agent_mcp.cli --port 8080`. A Node.js/TypeScript implementation is also available and can be installed globally via the agent-mcp-node npm package.
How do I connect it to Claude Desktop?
Add an entry to claude_desktop_config.json under mcpServers with command `uv` and args `["run", "-m", "agent_mcp.cli", "--port", "8080"]`, set OPENAI_API_KEY in env, then restart Claude Desktop. Claude should show the agent-mcp server in the conversation.
Why does it use short-lived agents?
Each agent is purpose-built for a single task with minimal, focused context. This keeps behavior deterministic, reduces hallucination and the attack surface, and avoids the context bloat of long-running agents. The framework enforces a maximum of 10 active agents and automatic cleanup of idle/finished agents.