What is an MCP config?
The Model Context Protocol (MCP) is the open standard AI apps use to connect to tools: GitHub, a browser, your database, your issue tracker. Each tool runs as an MCP server. Your AI app (the client) finds its servers in a small config file: a name for each server, plus either the command that starts it on your computer (a local server) or the URL it lives at (a remote server).
The idea is the same everywhere, but every app spells the file differently: a different file name and location, a different top-level key, different names for the URL field and a different way to read secrets. That's the part this tool takes care of.
Where each app keeps its MCP config
| App | File | Top-level key | Remote server | Secrets |
|---|---|---|---|---|
| Claude Code | .mcp.json (project) · ~/.claude.json (user) | mcpServers | "type": "http" + url | ${VAR}, ${VAR:-default} |
| Claude Desktop | claude_desktop_config.json | mcpServers | Settings → Connectors, or mcp-remote | Typed into the file |
| Cursor | .cursor/mcp.json · ~/.cursor/mcp.json | mcpServers | url | ${env:VAR} |
| VS Code | .vscode/mcp.json | servers (+ inputs) | "type": "http" + url | ${input:id} prompt, ${env:VAR} |
| GitHub Copilot (new) | ~/.copilot/mcp-config.json | mcpServers | "type": "http" + url | ${VAR} |
| Windsurf | ~/.codeium/windsurf/mcp_config.json | mcpServers | serverUrl | ${env:VAR} |
| Codex | ~/.codex/config.toml | [mcp_servers.name] (TOML) | url | env_vars, bearer_token_env_var |
| Gemini CLI | ~/.gemini/settings.json | mcpServers | httpUrl (url = SSE) | ${VAR} |
| Antigravity | ~/.gemini/config/mcp_config.json | mcpServers | serverUrl | Typed into the file |
| Zed | settings.json | context_servers | url | Typed into the file |
Where is claude_desktop_config.json?
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
The easy way: in Claude Desktop open Settings → Developer → Edit Config. The file only starts local servers. To add a remote server, use Settings → Connectors → Add custom connector, or bridge it with npx -y mcp-remote <url> (the generator does this for you). Quit and reopen Claude Desktop after every change.
Local or remote server?
Remote servers run on the service's side: you paste a URL and sign in with OAuth. Nothing to install, nothing to update, and no key sitting in a file. GitHub, Linear, Notion, Sentry, Stripe, Figma, Atlassian, Vercel, Cloudflare and Supabase all have official remote servers. Local servers run on your computer through npx, uvx or docker. You need them when the tool works with your machine: files, a browser, git, a local database.
Keep API keys out of your config
Config files get committed, shared in screenshots and pasted into chats. This generator never puts a key in the file: it writes a reference like ${GITHUB_PAT} (or each app's own version of it), and shows you the one command that sets the variable on your computer. VS Code gets an inputs prompt instead, so it asks once and stores the key securely. Three apps (Claude Desktop, Antigravity and Zed) can't read variables in their config; for those you get a clear <PLACEHOLDER> to fill in, in a file that should stay on your machine.
Common MCP config mistakes (the checker finds these)
| Mistake | What happens |
|---|---|
npx without -y | npx waits for "Ok to proceed?" and the server never starts |
docker run without -i | The server can't read requests from the app |
A url with no "type" in Claude Code | Claude Code treats it as a local command and fails |
url instead of httpUrl in Gemini CLI | Gemini connects with the old SSE transport |
servers vs mcpServers | The app silently finds no servers |
| An API key typed into the file | Anyone who sees the file can use your account |
Archived packages (@modelcontextprotocol/server-github, -postgres, -brave-search, -puppeteer…) | No more fixes; most have an official replacement |
SSE endpoints (…/sse) | SSE is deprecated in the MCP spec; Notion's SSE endpoint shuts down in February 2027 |
Example: the same server in three apps
GitHub's official remote server with a personal access token read from GITHUB_PAT:
Claude Code (.mcp.json)
{
"mcpServers": {
"github": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp/",
"headers": { "Authorization": "Bearer ${GITHUB_PAT}" }
}
}
}
Cursor (.cursor/mcp.json)
{
"mcpServers": {
"github": {
"url": "https://api.githubcopilot.com/mcp/",
"headers": { "Authorization": "Bearer ${env:GITHUB_PAT}" }
}
}
}
Codex (~/.codex/config.toml)
[mcp_servers.github]
url = "https://api.githubcopilot.com/mcp/"
bearer_token_env_var = "GITHUB_PAT"
Next: tell your agent how your project works
MCP servers give an agent tools. To give it your project's rules (the test command, the code style, what it must not touch), make an AGENTS.md and CLAUDE.md. For a repeatable job, write a skill.
FAQ
How do I add an MCP server to Claude Code?
Run claude mcp add in your terminal, for example claude mcp add --transport http linear https://mcp.linear.app/mcp for a remote server, or claude mcp add playwright -- npx -y @playwright/mcp@latest for a local one. Add --scope project to save it in .mcp.json so your team gets it too. This tool writes the commands for you.
Where is claude_desktop_config.json?
On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json. On Windows: %APPDATA%\Claude\claude_desktop_config.json. On Linux: ~/.config/Claude/claude_desktop_config.json. The quickest way to open it is Settings → Developer → Edit Config in Claude Desktop.
Is Cursor's mcp.json the same as VS Code's?
No. Cursor uses "mcpServers" in .cursor/mcp.json and reads secrets with ${env:NAME}. VS Code's .vscode/mcp.json uses "servers", needs a "type" on every server, and can prompt for secrets with an "inputs" list. The newer Copilot format (mcp-config.json) goes back to "mcpServers". Paste one into the converter on this page to get the other.
How do I add MCP servers to Codex?
Codex reads TOML, not JSON: add a [mcp_servers.<name>] table to ~/.codex/config.toml with command and args for a local server, or url for a remote one. Keys go in env_vars or bearer_token_env_var so they are read from your environment. You can also run codex mcp add. The same config is used by the Codex CLI, the IDE extension and the app.
Why won't my MCP server start?
The usual causes: npx without -y waiting for an install prompt, a Node.js version that is too old, docker run without -i, a remote URL without "type": "http" in Claude Code, or an environment variable that isn't set in the app's environment. Restart the app after every change. Paste your config into the checker on this page to find these.
Should I use a remote or a local MCP server?
If the service has an official remote server (GitHub, Linear, Notion, Sentry, Stripe, Figma…), use it: nothing to install, it updates itself, and you sign in with OAuth instead of storing a key. Use a local server when it needs your machine: files, a browser, git, or a database on your network.
Does this tool upload my config?
No. The generator, converter and checker run entirely in your browser. Nothing you paste or type is sent anywhere.