
How to add an MCP server to Cursor
Add MCP servers to Cursor from the Customize page or by editing .cursor/mcp.json (one project) or ~/.cursor/mcp.json (all projects).
- Local servers
- Yes
- runs stdio servers
- Hosted servers
- Yes
- connects by URL
- Config
- JSON
- how servers are added
- Picks
- 5
- ranked
Open Customize in the Cursor sidebar to install and manage MCP servers, or edit mcp.json yourself. Put it in .cursor/mcp.json for one project or ~/.cursor/mcp.json for every project. Cursor runs local servers over stdio and connects to remote ones over streamable HTTP or SSE, with OAuth sign-in for servers that need it. The Cursor CLI reads the same configuration.
Good for
- Developers who want Cursor to reach docs, GitHub, Sentry or a browser
- Teams sharing one project config in .cursor/mcp.json
- Admins who need an allowlist for which MCP servers people may run
- People using the Cursor CLI who want the same servers in the terminal
Install Cursor
Cursor
- 1
Open Customize in the Cursor sidebar.
- 2
Install a server from the Cursor Marketplace with "Add to Cursor", which also signs you in with OAuth.
- 3
Or add a server by hand in mcp.json (methods below).
- 4
Use the toggle next to a server to turn it on or off.
The CLI and the editor share one configuration. By default Cursor asks for approval before using an MCP tool; Run Mode can change that.
From the vendor's docs. Source.
At a glance
- Config file (all projects)
- ~/.cursor/mcp.json
- Config file (one project)
- .cursor/mcp.json
- Top-level key
- mcpServers
- Transports
- stdio, SSE, streamable HTTP
- Sign in (OAuth)
- Supported; static client ID via the auth object
- Protocol features
- Tools, prompts, resources, roots, elicitation, MCP Apps
- Variables in config
- ${env:NAME}, ${userHome}, ${workspaceFolder}
- Debug logs
- Output panel, then MCP Logs
Add an MCP server to Cursor
- 1
Pick where the config lives
Create
.cursor/mcp.jsonin your project for project-only tools. Create~/.cursor/mcp.jsonin your home folder for tools you want everywhere. - 2
Add a local server (stdio)
{ "mcpServers": { "context7": { "command": "npx", "args": ["-y", "@upstash/context7-mcp"] } } }Add an
envobject for keys. Use${env:NAME}to read a value from your shell instead of pasting it.Uses Context7
- 3
Or add a remote server by URL
{ "mcpServers": { "remote-server": { "url": "https://api.example.com/mcp", "headers": { "Authorization": "Bearer ${env:MY_SERVICE_TOKEN}" } } } }If the server uses OAuth, Cursor opens the sign-in when you connect.
- 4
Check it loaded
Open Customize in the sidebar and look for the server and its tools. From a terminal, run
agent mcp listandagent mcp list-tools <identifier>. - 5
Use it in a prompt
By default Cursor asks for approval before it uses an MCP tool. Click the arrow next to the tool name to see the arguments first.
PromptUse context7 to look up the current Next.js docs for server actions, then update app/actions.ts to match.Uses Context7
- 6
If it does not work
Open the Output panel (
Cmd+Shift+Uon macOS,Ctrl+Shift+Uelsewhere), choose MCP Logs from the dropdown, and read the connection, sign-in or crash messages.
Best MCP servers for Cursor
Official servers with an approved PlugWiki page that run in Cursor over stdio or HTTP; ordered by GitHub stars, then name. Derived from data we hold.
- 1
Context7OfficialHosted or LocalAPI keyGives Cursor current library docs while it writes code.
64,001 GitHub stars - 2
Playwright MCPOfficialLocalLets Cursor drive and test your app in a real browser.
38,887 GitHub stars - 3
GitHub MCP ServerOfficialHosted or LocalOAuthPull requests, issues and code search beyond what git can do.
34,115 GitHub stars - 4
sentry-mcpOfficialHosted or LocalOAuthPulls Sentry errors into Cursor so it can find the cause.
952 GitHub stars - 5
Notion MCPOfficialHostedOAuthRead and edit specs and notes in Notion through its hosted server.
MCP servers that work in Cursor
40 · official first, then servers with a page, then by stars
Scrapling MCP ServerOfficialLocalNo sign-inWeb scraping with stealth HTTP, real browsers, and Cloudflare bypass. CSS selectors supported.
90.6K GitHub stars
Context7OfficialHosted or LocalAPI keyUp-to-date docs for AI agents
64K GitHub stars
Chrome DevTools MCPOfficialLocalMCP server for Chrome DevTools
54.5K GitHub stars
Playwright MCPOfficialLocalPlaywright MCP server
38.9K GitHub stars
GitHub MCP ServerOfficialHosted or LocalOAuthGitHub's official MCP server. Lets an AI assistant read code, manage issues and pull requests, check Actions runs and security alerts. Hosted at api.githubcopilot.com/mcp or run locally with Docker or a Go binary.
34.1K GitHub stars
OpenWork MCP GatewayOfficialHostedOAuthYour OpenWork org's skills, plugins, workflows, and connections through one OAuth MCP URL.
24.3K GitHub stars
MCP Toolbox for DatabasesOfficialLocaltoken in envMCP Toolbox for Databases enables your agent to connect to your database.
16.8K GitHub stars
apify-mcp-serverOfficialHosted or LocalOAuthExtract data from any website with thousands of scrapers, crawlers, and automations on Apify Store ⚡
14K GitHub stars
SeleniumBase MCPOfficialLocalNo sign-inStealthy browser automation, testing, and web-scraping via CDP Mode.
13.2K GitHub stars
AutoClipOfficialLocalNo sign-inClip long videos into short clips with covers and captions. Local CLI and MCP.
9.9K GitHub stars
Firecrawl MCP ServerOfficialHosted or LocalAPI keyFirecrawl, the context API for AI agents: search, scrape, interact with the web, plus paper search.
7.7K GitHub stars
firecrawl-mcp-serverOfficialLocalAPI keyOfficial Firecrawl MCP server, the context API for AI agents: search, scrape, and interact with the web, plus parse, crawl, map, Agent and Monitor, from any MCP client.
7.7K GitHub stars
MobileBuildMCPOfficialLocalBuild, run and test iOS and macOS apps, drive the simulator and debug with LLDB from your AI assistant. Formerly XcodeBuildMCP.
6.5K GitHub stars
magic-mcpOfficialLocalAPI keyIt's like v0, but in your Cursor / Claude Code / Windsurf: search 10,000+ React/Tailwind components, generate new UI with AI, and publish your own — right from your editor. Magic MCP is now the 21st MCP; this package keeps old configs working. Setup: 21st.dev/mcp
6.3K GitHub stars- Excalidraw MCPOfficialHosted or LocalNo sign-in
Official Excalidraw MCP App server: streams hand-drawn diagrams into the chat with interactive fullscreen editing. Hosted or local.
5.6K GitHub stars
Exa MCP ServerOfficialHosted or LocalOAuthConnect AI agents to Exa for web search, content fetching, and multi-step research.
5.2K GitHub stars
notion-mcp-serverOfficialLocaltoken in envOfficial Notion MCP Server
4.7K GitHub stars
mcp-grafanaOfficialHosted or LocalAn MCP server giving access to Grafana dashboards, data and more.
3.6K GitHub stars- Google Analytics MCP ServerOfficialLocaltoken in env
Google's official Google Analytics MCP server: runs locally and queries GA4 reports and property settings with your Google credentials. Read-only unless you add the --allow-write flag.
3.6K GitHub stars
SupabaseOfficialHosted or LocalOAuthMCP server for interacting with the Supabase platform
3K GitHub stars
Show all 40Show fewer
brightdata-mcpOfficialLocaltoken in envA powerful Model Context Protocol (MCP) server that provides an all-in-one solution for public web access.
2.7K GitHub stars
Perplexity MCP ServerOfficialHosted or LocalOAuthConnector for Perplexity API, to enable real-time, web-wide research.
2.6K GitHub stars
tavily-mcpOfficialLocalProduction ready MCP server with real-time search, extract, map & crawl.
2.5K GitHub stars
Solana MCP by VybeOfficialHostedOAuthSolana MCP developer toolkit: wallets, trades, markets, PnL, transfers, onchain, swaps & API tools.
2.2K GitHub stars
Azure DevOps (ADO)OfficialHostedOAuthThe MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.
2.1K GitHub stars
Azure DevOps Local MCP ServerOfficialLocalOAuthThe MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.
2.1K GitHub stars
anysearch-mcp-serverOfficialHostedAPI keyUnified real-time search MCP server supporting general web search, vertical domain search, parallel batch search, and full-page URL content extraction.
2.1K GitHub stars
Microsoft Learn MCPOfficialHostedNo sign-inOfficial Microsoft Learn MCP Server – real-time, trusted docs & code samples for AI and LLMs.
2K GitHub stars- WordPress MCP AdapterOfficialLocal
The official WordPress plugin that turns a self-hosted site into an MCP server, exposing Abilities API actions from core, plugins and themes over STDIO (WP-CLI) or HTTP.
1.9K GitHub stars
MeiGen-AI-Design-MCPOfficialHosted or LocalOAuthDiscover inspiration and create images and videos with the latest AI models. Works with ChatGPT, Claude, Cursor, and other MCP clients.
1.8K GitHub stars
MATLAB MCP ServerOfficialLocalNo sign-inConnect AI coding agents to MATLAB. Run code, tests, and analysis via MCP.
1.7K GitHub stars
datagouv-mcpOfficialHostedNo sign-inOfficial data.gouv.fr Model Context Protocol (MCP) server that allows AI chatbots to search, explore, and analyze datasets from the French national Open Data platform, directly through conversation.
1.6K GitHub stars
MiniMax-MCPOfficialLocalAPI keyOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
1.6K GitHub stars
mcp-server-qdrantOfficialLocalAPI keyAn official Qdrant Model Context Protocol (MCP) server implementation
1.6K GitHub stars
TerraformOfficialHosted or LocalAPI keyGenerate more accurate Terraform and automate workflows for HCP Terraform and Terraform Enterprise
1.6K GitHub stars
@brave/brave-search-mcp-serverOfficialLocalBrave Search MCP Server: web results, images, videos, rich results, AI summaries, and more.
1.5K GitHub stars
IDA MCPOfficialLocalNo sign-inOfficial Hex-Rays MCP server that lets AI agents open, decompile and annotate binaries in IDA, alongside you in the IDA GUI or headless.
1.5K GitHub stars- X MCP (X API)OfficialHosted or LocalOAuth
X's hosted MCP server for the X API at api.x.com/mcp: AI clients search posts, read users, trends and news, manage bookmarks and publish Articles through your X developer app, directly or via the xurl mcp bridge.
1.4K GitHub stars
Power BI Authoring MCP Server (Local)OfficialLocalOAuthThe Power BI Authoring MCP server lets an AI agent create and change Power BI semantic models.
1.3K GitHub stars
ref-tools-mcpOfficialLocalAPI keyToken efficient search for coding agents over public and private documentation.
1.2K GitHub stars
Common errors and fixes
Server will not connect or crashes
Cause: The cause shows up in the MCP logs: connection errors, sign-in problems or a server crash.
Fix: Open the Output panel, choose MCP Logs, and read the error for that server.
cursor Source
OAuth provider rejects the redirect (for example Figma or Linear)
Cause: The provider needs a fixed client ID and an allowed redirect URL, or does not support dynamic client registration.
Fix: Add an auth object with CLIENT_ID to the server entry, and register https://www.cursor.com/agents/mcp/oauth/callback and http://localhost:8787/callback with the provider.
cursor Source
Cursor asks you to sign in again when the token expires
Cause: The server returned an access token with an expiry but no refresh token.
Fix: If your provider issues refresh tokens only for a scope such as offline_access, add that scope to auth.scopes.
cursor Source
envFile is ignored for a remote server
Cause: envFile works only for stdio servers.
Fix: Use ${env:NAME} in the url or headers and set the variable in your shell profile or system environment.
cursor Source
Signed out locally but Cloud Agents still use the server
Cause: Cloud Agents keep their own MCP sign-ins on Cursor servers.
Fix: Open Customize and log out on the server's Cloud row.
cursor Source
An npm-based server stays on an old version
Cause: The npm cache holds the old package.
Fix: Remove the server from Customize, run npm cache clean --force, then add it again.
cursor Source
Verdict
Cursor supports stdio, SSE and streamable HTTP with OAuth, and the CLI reuses the same mcp.json. The main limit is that it asks for approval before using MCP tools by default; Run Mode, which follows the same modes as terminal commands, changes that.
Cursor supports stdio, SSE and streamable HTTP with OAuth, and the CLI reuses the same mcp.json. The main limit is that it asks for approval before using MCP tools by default; Run Mode, which follows the same modes as terminal commands, changes that.
Best for
- Developers who want project-level and global MCP servers in one JSON file
- Teams that need an admin allowlist for MCP servers
Skip it if
- You need a TOML or YAML config
- You do not want an approval prompt on MCP tool calls and would rather tune Run Mode
Questions
Where is the Cursor MCP config file?
~/.cursor/mcp.json for every project, or .cursor/mcp.json inside one project. Both use a top-level mcpServers object.
Does Cursor support remote (HTTP) MCP servers?
Yes. Cursor supports stdio, SSE and streamable HTTP. For a remote server, set url and optional headers instead of command.
Does Cursor support OAuth for MCP servers?
Yes. Cursor opens the sign-in for servers that need it. If a provider needs a fixed client ID, add an auth object with CLIENT_ID to the server entry.
How do I use an environment variable in mcp.json?
Write ${env:NAME} in command, args, env, url or headers. ${workspaceFolder} and ${userHome} also work.
How do I turn an MCP server off in Cursor?
Open Customize in the sidebar, find the server and flip its toggle. A disabled server does not load or show up in chat.
Can I use the same MCP servers in the Cursor CLI?
Yes. The CLI reads the same configuration as the editor. Run agent mcp list to see servers and agent mcp login <identifier> to sign in.
How do I see why an MCP server fails in Cursor?
Open the Output panel and pick MCP Logs. It shows startup, tool calls and errors.
Can admins limit which MCP servers my team can run?
Yes. Enterprise admins can set an MCP allowlist under Team Settings, by command pattern for local servers and URL pattern for remote ones.
Information
updated Nov 2, 2026
- Transports
- stdio, SSE, Streamable HTTP
- Config file (all)
.cursor/mcp.json (project) or ~/.cursor/mcp.json (global)- MCP docs
- cursor.com
Sources
Docs, issue trackers and discussions this page is built from.
Show all 2Hide
- Model Context Protocol (MCP) · cursor.com
- MCP (Cursor CLI) · cursor.com