How to Configure MCP Servers in Cursor IDE (2026 Guide)
📖 TL;DR - Quick Setup
- Open Cursor Settings → Tools & MCP
- Click "Add new MCP server"
- Fill in: Name, Type, URL (or command), and Headers
- Click Install → Restart Cursor
Cursor IDE has built-in support for the Model Context Protocol (MCP), allowing you to extend Claude's capabilities with custom tools and integrations. This guide shows you how to configure MCP servers in Cursor.
Why Use MCP in Cursor?
With MCP servers, Cursor's AI can:
Prerequisites
Method 1: Add via Cursor Settings UI
Step 1: Open MCP Settings
Cmd + , → Tools & MCP
Ctrl + , → Tools & MCP
Step 2: Fill in Server Details
Click "Add new MCP server" and fill in the form:
| Field | Description | Example |
|---|---|---|
| Name | A unique identifier for your server | github, supabase |
| Type | Connection type for the server | command or streamableHttp |
| Command/URL | The command to run or HTTP endpoint | npx -y @modelcontextprotocol/server-github |
| Headers | Authentication headers (for HTTP type) | Authorization: Api-Key your_key |
Step 3: Click Install & Restart
After filling in the details, click Install. Then restart Cursor completely for changes to take effect.
✅ Tip: For HTTP-based servers, use streamableHttp type. For local CLI servers, use command type.
Method 2: Configure via JSON File
For project-specific servers or bulk configuration, create a .cursor/mcp.json file in your project root:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/folder"]
}
}
}
📁 File Location: <project-root>/.cursor/mcp.json — This method is great for sharing MCP configs with your team via version control.
Popular Cursor MCP Configurations
Here are ready-to-use configurations for both UI and JSON methods:
HTTP-based MCP Server Example
For servers that use HTTP/SSE transport (like many cloud-hosted MCP servers):
Restart & Verify
⚠️ Important: You must completely quit and reopen Cursor after installing a server. MCP servers only load at startup.
Verify MCP Connection
To check if your MCP servers are working:
- Open the Cursor chat (
Cmd+Lon Mac,Ctrl+Lon Windows) - Ask Claude: "What MCP tools do you have available?"
- You should see tools from your configured servers listed
✅ Success: If configured correctly, you'll see the server listed under "Installed MCP Servers" in Settings → Tools & MCP.
Using MCP Tools in Cursor
Once configured, simply ask Claude to use the tools naturally:
Example Prompts
- "Read the README file from my GitHub repo"
- "Query the users table in my Supabase database"
- "Take a screenshot of https://example.com"
Troubleshooting
❌ MCP server not appearing +
- Verify your JSON syntax is valid (use a JSON validator)
- Make sure you completely restarted Cursor
- Check that Node.js is installed:
node --version
❌ "Command not found" error +
Use the full path to npx. Find it with:
which npx # macOS/Linux
where npx # Windows
❌ Tools not working properly +
- Verify API keys/tokens are correct
- Check that the API key has required permissions
- Test the server with MCP Playground first
Ready to test your MCP servers?
Frequently Asked Questions
Where does Cursor store MCP config? +
claude_desktop_config.json.
Can I use the same config as Claude Desktop? +
mcpServers configuration directly between them.
How many MCP servers can I add? +
mcpServers configuration.
Do MCP servers work with all Cursor features? +
Nikhil Tiwari
15+ years of experience in product development, AI enthusiast, and passionate about building innovative solutions that bridge the gap between technology and real-world applications. Specializes in creating developer tools and platforms that make complex technologies accessible to everyone.