Cursor loads MCP servers from `.cursor/mcp.json` per project or `~/.cursor/mcp.json` globally, exposing their tools inside Composer and Agent mode alongside the editor's native tools.
Imagine your code editor has hands. By default the hands can only do editor things: open a file, type, run a build. MCP lets you give the editor extra hands by listing helpers in a small file inside your project folder. One helper might know how to talk to your team's database; another might know how to comment on a pull request; another might know how to read your team's docs. The editor reads the list, starts every helper listed, and now the AI inside the editor can ask any helper to do its job. When you switch projects, the helpers change with the project, because the list lives inside the project folder. You can also keep personal helpers in a file at home that load for every project.
Detailed answer & concept explanation~6 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
3 min: Cursor as an MCP host, the two config locations (global and per-project), the entry shapes for stdio and remote, where tools show up in Composer and Agent mode, per-project config as the team onboarding win, and secrets hygiene.
Real products, models, and research that use this idea.
- A monorepo commits `.cursor/mcp.json` with a Postgres MCP server pointed at the dev database. Every engineer who opens the repo gets schema introspection in Agent mode without local setup.
- An ops team adds the Sentry MCP server globally in `~/.cursor/mcp.json` so Agent mode can fetch recent error groups when debugging any project.
- A team uses the Linear MCP server per-project so 'create a ticket for this TODO' works inside Composer with the correct project pre-selected.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhy does per-project MCP config matter more than global config in a team setting?
QHow does Cursor disambiguate two MCP servers that expose tools with the same name?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Thinking Cursor exposes built-in tools like edit_file through MCP. Those are native editor tools; MCP servers add capabilities beyond the IDE itself, like database access and ticketing.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.