Cursor MCP Setup
Cursor supports MCP servers via the same mcpServers JSON format as Claude Desktop. This guide walks you through adding servers to Cursor.
Config file location
- macOS/Linux:
~/.cursor/mcp.json - Windows:
%USERPROFILE%\.cursor\mcp.json
Config format
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/you/projects"
]
}
}
} Setup steps
- Open or create the config file at the path above.
- Add your servers inside the
mcpServersobject. - Save and restart Cursor.
- Check the MCP panel in Cursor's sidebar to confirm servers appear.
Generate your Cursor config
Use the builder and select "Cursor" as the target app.
Open Config Builder →