Cursor MCP Setup: How to Add MCP Servers to Cursor

Updated November 2026

QUICK ANSWER

To set up MCP in Cursor, add servers to ~/.cursor/mcp.json (every project) or .cursor/mcp.json (one project). Local servers take a command and args; remote servers take a url. Cursor then starts each server, signs you in with OAuth if needed, and lists its tools. Manage servers from Customize in Cursor's sidebar.

MCP (the Model Context Protocol) lets Cursor's agent use tools outside your codebase: your issue tracker, your docs, a browser, your error monitoring, your screen recordings. This guide follows Cursor's MCP docs as of November 2026, connects a real server end to end, and covers the errors people hit most.

If MCP itself is new to you, start with What is MCP?.

Where does Cursor keep its MCP config?

Cursor reads MCP servers from two JSON files:

File Scope Use it for
~/.cursor/mcp.json Global, every project Servers you want everywhere, such as GitHub, Linear or Clipy
.cursor/mcp.json in the project root One project Servers tied to one codebase, such as a project database; commit it to share with the team (without secrets)

Both files use the same shape: a top-level mcpServers object, with one entry per server.

You can also manage servers without touching JSON. Cursor's docs put this under Customize, opened from the sidebar, where you browse the Cursor Marketplace, install official plugins and MCP servers with Add to Cursor, and toggle servers on or off. Some vendors also publish an Install in Cursor link in their own docs (Stripe does) that opens Cursor with the server filled in.

Which kinds of MCP servers does Cursor support?

Cursor supports all three MCP transports:

  • stdio: a local program Cursor starts for you, such as npx some-mcp-server. Good for servers that need your machine (a browser, local files).
  • Streamable HTTP: a remote URL run by the vendor. Most official servers now work this way.
  • SSE: an older remote transport some servers still use.

For remote servers Cursor signs in with OAuth (the authorization code flow with PKCE). It registers itself with the server automatically where the server allows that; for servers that don't, you add a client ID in an auth object. Most of the time you paste a URL and sign in in your browser. Cursor also supports MCP tools, prompts, resources, elicitation and the MCP Apps extension for interactive UI.

What does an mcp.json entry look like?

A local server:

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["@playwright/mcp@latest"]
    }
  }
}

A remote server that signs in with OAuth:

{
  "mcpServers": {
    "linear": {
      "url": "https://mcp.linear.app/mcp"
    }
  }
}

A remote server that uses an API key from your environment instead:

{
  "mcpServers": {
    "my-service": {
      "url": "https://api.example.com/mcp",
      "headers": {
        "Authorization": "Bearer ${env:MY_SERVICE_TOKEN}"
      }
    }
  }
}

Cursor expands variables in command, args, env, url and headers: ${env:NAME}, ${userHome}, ${workspaceFolder}, ${workspaceFolderBasename}, ${pathSeparator} and ${/}. Local servers can also load an envFile such as .env; remote servers can't, so set their variables in your shell profile.

Steps

  1. Update Cursor. Install the latest version so its screens match Cursor's current docs, which manage servers from Customize in the sidebar.
  2. Open your config file. Create ~/.cursor/mcp.json for a server you want in every project, or .cursor/mcp.json in the project root for one project.
  3. Add the server entry. Under mcpServers, add a command and args for a local server or a url for a remote one. Keep any servers already in the file.
  4. Put secrets in the environment. Reference keys as ${env:NAME} and keep them out of the file, especially a project file you commit.
  5. Sign in. For a remote server that uses OAuth, Cursor shows that the server needs authentication; click it and finish sign-in in your browser.
  6. Check the tools loaded. Open Customize, confirm the server is enabled, and look for its tools. In chat, Cursor's agent lists MCP tools under Available Tools and uses them when relevant.
  7. Run a test prompt. Ask for something only that server can answer, then approve the tool call when Cursor asks.

How do I add Clipy's MCP server to Cursor?

Clipy is the AI-native screen recorder: you record your screen and talk, and Cursor's agent reads the recording's transcript, summary and key moments with frames, plus browser diagnostics (console errors and failed requests) from Chrome extension recordings. So you can show Cursor the bug or the design change and skip typing it all out.

Run Clipy's setup for Cursor. Paste the one-line setup instruction from /agent-setup into Cursor's chat, or run the commands yourself:

npm install -g @clipy/cli@latest
clipy setup cursor
clipy doctor --json

Setup signs you in to Clipy through your browser, installs the Clipy skill to ~/.cursor/skills/clipy/SKILL.md and adds Clipy's MCP server to ~/.cursor/mcp.json. It writes this entry, which runs Clipy's local MCP server and reads the credential clipy login stored, so no key goes in the file:

{
  "mcpServers": {
    "clipy": {
      "command": "npx",
      "args": ["-y", "@clipy/mcp@latest"]
    }
  }
}

Setup keeps the servers already in the file. If it can't update the file safely (for example, the file contains comments), it prints the exact snippet to add yourself: put the clipy entry under mcpServers next to your other servers. Restart Cursor after setup so it loads the new server. The local server reads your recordings and also carries the tools that need your machine, such as recording a web app or uploading a file. CI and containers with no clipy login can set a key from clipy.online/settings/api-keys in a CLIPY_API_KEY environment variable instead.

Clipy also runs a hosted MCP server at https://clipy.online/api/mcp. That is the connection Claude, Claude Code and ChatGPT use with OAuth sign-in; the Clipy MCP docs cover it.

Then try it. Record the bug or the change you want with Clipy on Mac, Windows, Chrome, the web, iPhone, iPad or Android, and paste the link:

Read this Clipy recording: https://clipy.online/video/<id>
List each change I asked for with its timestamp, check the browser
diagnostics for errors, then propose the fix as a diff.

Cursor's agent calls Clipy's tools to read the recording and works from what you showed it. Want to try it first? Clipy has a 7-day free trial, no card. More examples on the Clipy for Cursor page.

How do I check that my MCP tools are working?

  • Customize: the server appears and its toggle is on.
  • Chat: Cursor lists MCP tools under Available Tools. Ask for a tool by name ("use the clipy search tool to find my latest recording") to force a call.
  • Approval prompt: by default Cursor asks before it runs an MCP tool. Click the arrow next to the tool name to see the arguments. MCP tools follow the same Run Modes as terminal commands.
  • Logs: open the Output panel (Cmd+Shift+U on Mac) and choose MCP Logs from the dropdown.

Why isn't my MCP server working in Cursor?

Symptom Likely cause Fix
Server never starts The command isn't on Cursor's PATH (common with npx from a version manager) Use the full path to the binary, or install Node so npx is on the system PATH
Nothing shows up after editing the file Invalid JSON, or the entry is outside mcpServers Validate the JSON, check commas and braces, keep one mcpServers object
"Needs authentication" never clears OAuth sign-in didn't finish or was blocked Click the server, complete sign-in in the browser, check MCP Logs for the error
401 or 403 errors Expired token, wrong key, or a key without the right permission Sign in again, or replace the key in your environment and restart Cursor
${env:NAME} comes through empty Cursor was started without that variable Set it in your shell profile and restart Cursor; use envFile for local servers
Server works in one project only It's in .cursor/mcp.json, which is per project Move it to ~/.cursor/mcp.json
Tools exist but the agent ignores them Too many servers, or a vague prompt Disable servers you don't need in Customize and name the tool in your prompt
An npm server is out of date Cached package Remove it in Customize, run npm cache clean --force, add it back
Blocked on a company machine Your team uses an MCP allowlist Ask an Enterprise admin to add the server under Team Settings, MCP Configuration

Cursor isolates server failures, so one broken server doesn't stop the others.

How do I keep Cursor MCP servers secure?

Cursor's docs say to install servers only from trusted sources, review what data and APIs each one can reach, use restricted API keys, and audit the code of anything critical. Day to day, that means:

  • Prefer official remote servers with OAuth; you can revoke them from the vendor's settings.
  • Leave tool approval on for anything that writes, sends or pays.
  • Keep secrets in environment variables, never in a committed .cursor/mcp.json.
  • Be careful combining a server that reads untrusted text (web pages, emails, tickets) with one that can act, since that text can carry prompt injection.

For a vetted list of servers to add, see the best MCP servers by job.

FAQ

Where is the MCP config file in Cursor? Global servers go in ~/.cursor/mcp.json in your home folder; project servers go in .cursor/mcp.json in the project root. Both use a top-level mcpServers object.

Does Cursor support remote MCP servers? Yes. Add a server with a url in place of a command. Cursor supports Streamable HTTP and SSE, and signs in with OAuth or sends headers you set.

Do I need to restart Cursor after adding an MCP server? Cursor's docs say to restart Cursor after you update a custom server's local files. If tools don't appear after you edit mcp.json, toggle the server off and on in Customize or restart Cursor. Clipy's setup also asks you to restart Cursor so its tools load.

How do I give Cursor context from a screen recording? Run clipy setup cursor, record what you see, and paste the Clipy link into Cursor's chat. The agent reads the transcript, summary, key moments with frames and, for Chrome extension recordings, console and network errors. For a single recording you can also paste the watch link with .arec appended.

Can I use the same MCP config in Cursor and Claude Code? The server entries are similar but the files differ. Claude Code uses claude mcp add or a project .mcp.json; Cursor uses .cursor/mcp.json. Clipy's /agent-setup configures both from one command each.

Sources

  • Cursor documentation, Model Context Protocol (config locations, transports, OAuth, interpolation, tool approval, logs, FAQ): https://cursor.com/docs/context/mcp (accessed 2026-11-17)
  • Cursor documentation, Customize Cursor (sidebar Customize page, marketplace): https://cursor.com/docs/customize-cursor (accessed 2026-11-17)
  • Stripe MCP documentation (Install in Cursor link and ~/.cursor/mcp.json example): https://docs.stripe.com/mcp (accessed 2026-11-17)
  • Context7 installation docs (Cursor shows "Needs authentication" until you sign in): https://context7.com/docs/installation (accessed 2026-11-17)
  • Linear MCP documentation (remote endpoint): https://linear.app/docs/mcp (accessed 2026-11-17)
  • Playwright MCP (Microsoft): https://github.com/microsoft/playwright-mcp (accessed 2026-11-17)
  • Claude Code MCP documentation (claude mcp add, .mcp.json): https://code.claude.com/docs/en/mcp (accessed 2026-11-17)
  • MCP architecture overview (transports and primitives): https://modelcontextprotocol.io/docs/learn/architecture (accessed 2026-11-17)