Zenaique

How does Cursor discover and load MCP servers?

Flashcard·Easy·4.0 · 0·~30s·Asked atAirbnbCursorQualcomm·Relevant atAnthropicMicrosoft
Attempt it
TL;DR

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.

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

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.

Concept explanation~2 min read

Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.

Cursor is the editor most engineers reach for when they want an AI-native coding experience, and it has been an MCP host since early 2025. Alongside Claude Desktop it is one of the two reference hosts that MCP server authors test against first, and it is where most engineers first discover why MCP matters in their daily work.

This walkthrough covers what Cursor's MCP integration actually is, the two-tier config model that enables per-project setup, how MCP tools coexist with the editor's native tools inside Composer and Agent mode, and the operational details that separate a working setup from one that leaks secrets or confuses the agent.

Cursor as an MCP host

Cursor is a fork of VS Code with an AI-first chat surface (Composer) and a multi-step agentic mode (Agent mode) layered on top. The MCP client is built into the editor shell, not installed as a third-party extension. MCP servers are first-class citizens: they appear in the settings UI, they restart when the editor reloads, and they are callable from the same agent loop that drives the built-in tools.

The useful framing is to think of MCP as the way Cursor reaches outside the IDE. Cursor already has native tools for editing files, reading files, and running shell commands. You do not need MCP for any of that. What you do need MCP for is everything outside the codebase: your team's database, your ticketing system, your monitoring stack, your internal documentation. An MCP server is the standardized way to teach Cursor's agent how to talk to those external systems without writing a custom VS Code extension. The standardization is what matters: the same server you write for Cursor also works in Claude Desktop, Zed, and any other compliant host.

Two config files: global and per-project
Where servers show up inside the editor
Per-project config as the team onboarding win
Operational sharp edges
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.

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.
Sign in to see more production examples.

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?
A

Committing .cursor/mcp.json means the toolchain travels with the code. New engineers clone the repo and immediately get the team's database, ticketing, and ops servers without any per-machine setup.

2 more follow-ups an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

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.

Sign in to see all red flags and common mistakes.

60 second bullets to scan on the way to the call.

  • What kind of editor Cursor is and what 'MCP host' means in this context

  • The two config file locations and which scope each applies to

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
What is the Model Context Protocol (MCP) and what problem does it solve?
MCQ·Easy