# How to add MCP servers to Cursor

Cursor reads MCP servers from ~/.cursor/mcp.json (for you) or .cursor/mcp.json (for one project), under the "mcpServers" key. A local server’s entry is a command with args; a remote server’s entry is its URL in "url".

Last checked 25 Nov 2026. Page: https://ai-powered.com/clients/cursor

## Quick facts

- Local servers: Yes (stdio)
- Remote servers: Streamable HTTP: Yes · SSE: Yes (URL field: url)
- Sign-in: OAuth: Yes · Headers: Yes (OAuth uses the authorization code flow with PKCE; static client credentials go in an auth object.)
- Resources: Yes
- Prompts: Yes
- Tool approval: Yes
- Platforms: macOS, Windows and Linux

## Cursor config files

| Scope | System | Path |
| --- | --- | --- |
| For you | All systems | `~/.cursor/mcp.json` |
| For one project | All systems | `.cursor/mcp.json` |

## Servers that work in Cursor

- [REA](https://ai-powered.com/mcp/rea): CLI and MCP server that lets coding agents reverse engineer apps and binaries
- [Browser Use](https://ai-powered.com/mcp/browser-use): Browser agents and cloud browsers for AI, with an MCP server for web tasks
- [Scrapling MCP Server](https://ai-powered.com/mcp/scrapling-mcp-server): MCP server for AI clients to scrape sites with HTTP and stealth browser sessions
- [HyperFrames by HeyGen](https://ai-powered.com/mcp/hyperframes-by-heygen): Hosted MCP connector for creating and rendering videos from HTML through AI chat
- [Context7](https://ai-powered.com/mcp/context7): Version-specific library docs and code examples piped into coding agents via MCP
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): MCP server and CLI that let coding agents drive and inspect a live Chrome browser
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Local MCP server that builds a code knowledge graph for AI coding agents
- [GitHub](https://ai-powered.com/mcp/github): Official MCP server connecting AI assistants to GitHub repos, issues and workflows
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): MCP toolkit giving coding agents symbol-level code retrieval and editing
- [ffmpeg-skill](https://ai-powered.com/mcp/ffmpeg-skill): Local FFmpeg video and audio editing tools for coding agents over MCP
- [Ha MCP](https://ai-powered.com/mcp/ha-mcp): MCP server for managing and automating Home Assistant from AI assistants
- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Open-source analytics app where an AI agent builds charts and dashboards from your data

## Troubleshooting

- A local server won’t start: The command must be on your system PATH or be a full path. Check “MCP Logs” in the Output panel for the error.
- Changes to a server don’t show up: After editing a custom server’s files or mcp.json, restart Cursor.
- Cloud Agents don’t see your servers: Hosted Cloud Agents don’t read ~/.cursor/mcp.json, so servers there only apply to Cursor on your computer.
- Sign-in redirect is rejected by the server: Register http://localhost:8787/callback (desktop) or https://www.cursor.com/agents/mcp/oauth/callback (web and agents) as a redirect URL.
- A local server fails with “npx” (or uvx, docker) not found: Apps started from a dock or menu may not see your terminal’s PATH. Use the full path of the command (run which npx in a terminal to find it), then restart Cursor.
- You can’t tell whether the server or Cursor is at fault: Test the server on its own with the MCP Inspector (npx @modelcontextprotocol/inspector). If it lists tools there, check the Cursor setup.

## Safety

- Cursor asks before running MCP tools by default. Only allowlist tools you trust to run without asking.
- A project’s .cursor/mcp.json can start programs on your machine. Read it before opening an unknown repository.
- Use ${env:NAME} for secrets instead of writing tokens into a committed mcp.json.
- A local server runs on your computer with your access to files and the network. Add only servers whose source you trust.

## Questions

### Where is Cursor’s mcp.json?
Global servers go in ~/.cursor/mcp.json and apply to every project. Project servers go in .cursor/mcp.json inside the project.

### Does Cursor support remote MCP servers?
Yes. Give the server a url (and headers if it needs a token). Cursor supports Streamable HTTP and SSE, plus OAuth sign-in.

### Can I install a server with one click?
Yes. A cursor:// install link carries the server config, and Cursor shows it before installing. We only offer the link when the server has no values to fill in.

### Which MCP features does Cursor support?
Tools, prompts, resources, roots, elicitation and MCP Apps.

### Can I use local MCP servers in Cursor?
Yes. Cursor starts a local server as a command on your computer (stdio).

### Can Cursor sign in to MCP servers with OAuth?
Yes. OAuth uses the authorization code flow with PKCE; static client credentials go in an auth object.

## Sources

- [Cursor docs: Model Context Protocol](https://cursor.com/docs/context/mcp)
- [Cursor docs: MCP install links](https://cursor.com/docs/mcp/install-links)