This guide explains how to set up MCP Connect with the Cursor editor.
.mcp-connect.jsonInstall the MCP extension for Cursor (if not already installed):
Generate the Cursor configuration file:
mcp-connect generate --ide cursor
This creates or updates .vscode/settings.json in your project directory (Cursor uses the same directory structure as VSCode).
Reload the Cursor window (Ctrl+R / Cmd+R) or restart Cursor for changes to take effect.
mcp-connect appears in the list of MCP serversThe generated configuration adds the following to .vscode/settings.json:
{
"mcp.servers": {
"mcp-connect": {
"command": "/path/to/mcp-connect",
"args": ["serve"]
}
}
}
Note: Cursor uses the same .vscode directory structure as VSCode, so configurations are compatible between both editors.
To specify a custom location for the settings file:
mcp-connect generate --ide cursor --output /path/to/settings.json
The default configuration is written to .vscode/settings.json in your project directory. This is recommended because:
To configure globally for all projects, use:
mcp-connect generate --ide cursor --output ~/.config/Cursor/User/settings.json
Or manually add to User Settings (File > Preferences > Settings > Open User Settings JSON):
{
"mcp.servers": {
"mcp-connect": {
"command": "/absolute/path/to/mcp-connect",
"args": ["serve"]
}
}
}
If you prefer to configure manually, add the following to .vscode/settings.json:
{
"mcp.servers": {
"mcp-connect": {
"command": "/absolute/path/to/mcp-connect",
"args": ["serve"]
}
}
}
Important:
mcp-connect binaryC:/path/to/mcp-connect.exe)settings.json is correctmcp-connect is executablemcp-connect config validate from terminalmcp-connect serve --debug to see errors.env file is in the project rootmcp-connect config test --all from terminal.env are correctIf your .mcp-connect.json is in a different location:
{
"mcp.servers": {
"mcp-connect": {
"command": "/path/to/mcp-connect",
"args": ["serve"],
"cwd": "/path/to/project"
}
}
}
Set environment variables directly in Cursor config:
{
"mcp.servers": {
"mcp-connect": {
"command": "/path/to/mcp-connect",
"args": ["serve"],
"env": {
"GITHUB_TOKEN": "your-token-here",
"CONTEXT7_API_KEY": "your-key-here"
}
}
}
}
Note: Using .env file is recommended over hardcoding credentials.
Enable debug logging for troubleshooting:
{
"mcp.servers": {
"mcp-connect": {
"command": "/path/to/mcp-connect",
"args": ["serve", "--debug"]
}
}
}
When you add or remove servers, regenerate the configuration:
mcp-connect generate --ide cursor
The command safely merges with existing settings, preserving other Cursor configuration.
Since Cursor uses the same .vscode directory structure, configurations are compatible:
.vscode/settings.json for both editorsEach project can have its own .vscode/settings.json with different server configurations. This allows you to:
MCP Connect works seamlessly with Cursor’s AI features: