Claude Desktop Cursor Cline (VS Code) Windsurf Continue.dev Zed Claude Code (CLI)
~/Library/Application Support/Claude/claude_desktop_config.json · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"mongo-mcp-kiliczsh": {
"command": "npx",
"args": [
"-y",
"mcp-mongo-server",
"mongodb://localhost:27017/mydb"
]
}
}
}
⧉ Copy
Open Claude Desktop → Settings → Developer → Edit Config. Restart after saving.
~/.cursor/mcp.json · .cursor/mcp.json
{
"mcpServers": {
"mongo-mcp-kiliczsh": {
"command": "npx",
"args": [
"-y",
"mcp-mongo-server",
"mongodb://localhost:27017/mydb"
]
}
}
}
⧉ Copy
Cursor uses the same mcpServers schema as Claude Desktop. Project config wins over global.
VS Code → Cline → MCP Servers → Edit
{
"mcpServers": {
"mongo-mcp-kiliczsh": {
"command": "npx",
"args": [
"-y",
"mcp-mongo-server",
"mongodb://localhost:27017/mydb"
]
}
}
}
⧉ Copy
Click the MCP Servers icon in the Cline sidebar, then "Edit Configuration".
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mongo-mcp-kiliczsh": {
"command": "npx",
"args": [
"-y",
"mcp-mongo-server",
"mongodb://localhost:27017/mydb"
]
}
}
}
⧉ Copy
Same shape as Claude Desktop. Restart Windsurf to pick up changes.
~/.continue/config.json
{
"mcpServers": [
{
"name": "mongo-mcp-kiliczsh",
"command": "npx",
"args": [
"-y",
"mcp-mongo-server",
"mongodb://localhost:27017/mydb"
]
}
]
}
⧉ Copy
Continue uses an array of server objects rather than a map.
~/.config/zed/settings.json
{
"context_servers": {
"mongo-mcp-kiliczsh": {
"command": {
"path": "npx",
"args": [
"-y",
"mcp-mongo-server",
"mongodb://localhost:27017/mydb"
]
}
}
}
}
⧉ Copy
Add to context_servers. Zed hot-reloads on save.
claude mcp add mongo-mcp-kiliczsh -- npx -y mcp-mongo-server mongodb://localhost:27017/mydb
⧉ Copy
One-liner. Verify with claude mcp list. Remove with claude mcp remove.