cursor-mcp
Skill2 starsChanged 7 months agoMITView on GitHub
Configure MCP servers on Cursor SDK agents — stdio subprocess, HTTP, and SSE transports, inline vs file-based config, and per-run overrides. Use when extending an agent's tools beyond the built-ins.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- cursor-cliSkill
- cursor-cloudSkill
- cursor-errorsSkill
- cursor-hooksSkill
- cursor-modelsSkill
- cursor-rulesSkill
- cursor-runsSkill
- cursor-sdkSkill
- cursor-skills-systemSkill
- cursor-subagentsSkill
The file
Files
cursor-mcp
MCP servers expose tools to the agent. Configure them on AgentOptions.mcpServers (or SendOptions.mcpServers for per-run override) as Record<string, McpServerConfig> — the key is the server name.
Transports
- [[references/stdio]] —
command,args,env,cwd - [[references/http]] —
url,headers,auth - [[references/sse]] —
urlwith SSE transport
Configuration patterns
- [[references/inline-config]] —
mcpServersonAgent.create - [[references/per-run-override]] —
mcpServersonagent.send(replaces, doesn't merge) - [[references/file-config]] —
.cursor/mcp.jsonandsettingSources - [[references/persistence]] — inline servers are not persisted across
Agent.resume
Auth
- [[references/oauth]] —
auth.CLIENT_ID/CLIENT_SECRET/scopesfor HTTP/SSE
Cross-links
- Tool calls in the stream → [[../cursor-runs/references/sdk-message-types]]
- Subagent-scoped MCP → [[../cursor-subagents/references/agent-definition]]
- Hooks for tool gating → [[../cursor-hooks/SKILL]]
IntegrationNotConnectedError→ [[../cursor-errors/references/integration-not-connected]]
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

