Cursor

AI-first code editor with built-in MCP integration for enhanced coding

Code completionAI chatCodebase context
Get Cursor

Quick Setup

Configure MCP servers in Cursor by editing your config file

macOS
~/.cursor/mcp.json
Windows
%USERPROFILE%\.cursor\mcp.json
Linux
~/.cursor/mcp.json

Example Configuration

config.json
{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/path/to/files"
      ]
    },
    "github": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-github"
      ],
      "env": {
        "GITHUB_TOKEN": "your-token-here"
      }
    }
  }
}

1. Open or create the config file at the path shown above

2. Add servers from the list below to your config

3. Restart Cursor to load the new servers

Compatible Servers

181 servers work with Cursor

View all →