MCP Config Generator

Free

Paste a server URL or package name — get a ready-to-paste config for Claude Desktop, Claude Code, Cursor, VS Code / Copilot, Codex, Gemini CLI, Windsurf or Zed. No sign-up.

Loading...

How to add an MCP server to Claude Desktop

Claude Desktop reads ~/Library/Application Support/Claude/claude_desktop_config.json on macOS and %APPDATA%\Claude\claude_desktop_config.json on Windows. Merge the generated mcpServers object into it and fully quit and reopen the app. The file only starts local processes, so a remote URL goes through mcp-remote, or through Settings → Connectors instead of the file.

Generate the Claude Desktop config

How to add an MCP server to Claude Code

Claude Code adds servers from the terminal with claude mcp add. Remote servers take --transport http and a URL; local ones take everything after -- as the command to run. Add --scope project to write a shared .mcp.json you can commit, check what is connected with claude mcp list, and remove one with claude mcp remove.

Generate the Claude Code config

How to add an MCP server to Cursor

Cursor uses the same mcpServers format as Claude Desktop and accepts remote URLs directly. Put it in .cursor/mcp.json in a project, or ~/.cursor/mcp.json for every project. Cursor picks up the change; check the MCP section of its settings to see whether the server connected.

Generate the Cursor config

How to add an MCP server to VS Code and GitHub Copilot

Copilot agent mode in VS Code reads .vscode/mcp.json. The format differs from Claude and Cursor in two ways people trip on: the top-level key is servers, not mcpServers, and each entry names its type (http or stdio). Pasting a Cursor config here fails silently.

Generate the VS Code and GitHub Copilot config

How to add an MCP server to Codex

OpenAI's Codex CLI configures MCP in TOML, not JSON: one [mcp_servers.name] table per server in ~/.codex/config.toml. Local servers take command and args; remote servers take url. Codex reads the file when a session starts, so restart it after editing.

Generate the Codex config

How to add an MCP server to Gemini CLI

Gemini CLI reads mcpServers from ~/.gemini/settings.json, or .gemini/settings.json in a project. It is the only client here that splits remote transports by key: httpUrl for Streamable HTTP and url for the older SSE transport. The generator uses httpUrl; switch to url only for an SSE-only server. Run /mcp inside the CLI to confirm it connected.

Generate the Gemini CLI config

How to add an MCP server to Windsurf

Windsurf keeps its servers in ~/.codeium/windsurf/mcp_config.json under mcpServers. Remote servers use serverUrl rather than url, which is the usual reason a config copied from Cursor does nothing. Refresh the server list in Windsurf's MCP settings after saving.

Generate the Windsurf config

Check the server before you add it

Most "my MCP server doesn't show up" reports are the server, not the config. Paste the URL into the MCP Inspector first to confirm it answers and lists its tools, then run it with a real model in Agent Studio to see whether Claude, GPT or Gemini actually call those tools.

Remote vs STDIO MCP servers

Remote (HTTP / SSE)

The server runs somewhere on the internet. Your client connects to it over HTTPS. Config just needs the URL — no local installation required.

STDIO (npm / PyPI)

The server runs locally as a child process. Your client spawns it via npx or uvx and communicates over stdin/stdout.

Frequently asked questions

Do I need to install anything for remote MCP servers?
Usually not. Remote servers run on their own infrastructure and the config just tells your client where to connect. The exceptions are Claude Desktop's config file and Zed, which only start local processes; for those the generator uses mcp-remote, which npx downloads on first run.
What is npx -y doing in the STDIO config?
npx -y downloads and runs the npm package on demand, automatically confirming any prompts. The server process is managed by your MCP client.
What is uvx?
uvx is a tool from the uv Python package manager that runs a PyPI package as a one-off command — the Python equivalent of npx. Install uv from astral.sh/uv.
My server needs an API key — where does it go?
Add it as an environment variable in the generator above. For STDIO servers it goes in the "env" field; for remote servers it goes in "headers" (as a Bearer token or custom header). Codex uses http_headers, and Claude Code takes it as a --header flag.
Why does the same server need a different config in each client?
There is no shared standard for client config files. Claude Desktop, Cursor, Gemini CLI and Windsurf all use an mcpServers object but disagree on the key for a remote URL (url, httpUrl, serverUrl). VS Code uses servers with an explicit type, Codex uses TOML, and Claude Code prefers a CLI command. The server is the same in every case; only the wrapper changes.