MCP config converter
Paste a claude mcp add line, any client’s MCP settings file or Codex’s config.toml, and get the same servers for Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Codex, Gemini CLI, Cline and Zed, with each client’s own way of reading a key. Cursor and VS Code take them in one click. Tick one box and every server asks a person before it acts. Nothing leaves this page.
1Paste your settings
Everything runs in this page and nothing you paste is sent anywhere. Keys you paste stay in the output, so replace them with variables before you share it.
2The same servers, for each client
Terminalclaude mcp add github -e GITHUB_PERSONAL_ACCESS_TOKEN=$GITHUB_PAT -- docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server
claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem ~/projects/app- Adds it for this project; add --scope user for every project.
claude_desktop_config.json{
"mcpServers": {
"github": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"ghcr.io/github/github-mcp-server"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<GITHUB_PAT>"
}
},
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"<home>/projects/app"
]
}
}
}- Fill in <GITHUB_PAT>: Claude Desktop starts the server without a shell, so it can't read these from your environment.
- Replace <home> with the full path of your home folder.
~/.cursor/mcp.json or .cursor/mcp.json{
"mcpServers": {
"github": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"ghcr.io/github/github-mcp-server"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "${env:GITHUB_PAT}"
}
},
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"${userHome}/projects/app"
]
}
}
}- Cursor reads ${env:GITHUB_PAT} from the environment it was started in.
.vscode/mcp.json{
"inputs": [
{
"description": "GITHUB_PAT",
"id": "github-pat",
"password": true,
"type": "promptString"
}
],
"servers": {
"github": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"ghcr.io/github/github-mcp-server"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github-pat}"
}
},
"filesystem": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"${userHome}/projects/app"
]
}
}
}- VS Code asks for each input once and stores it, so no secret sits in the file.
~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"github": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"ghcr.io/github/github-mcp-server"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "${env:GITHUB_PAT}"
}
},
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"<home>/projects/app"
]
}
}
}- Windsurf reads ${env:GITHUB_PAT} from the environment it was started in.
- Replace <home> with the full path of your home folder.
~/.codex/config.toml[mcp_servers.github]
command = "docker"
args = ["run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server"]
env = { GITHUB_PERSONAL_ACCESS_TOKEN = "<GITHUB_PAT>" }
[mcp_servers.filesystem]
command = "npx"
args = ["-y", "@modelcontextprotocol/server-filesystem", "<home>/projects/app"]- Fill in <GITHUB_PAT>: Codex passes on only the variables its env_vars list names.
- Replace <home> with the full path of your home folder.
~/.gemini/settings.json{
"mcpServers": {
"github": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"ghcr.io/github/github-mcp-server"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "$GITHUB_PAT"
}
},
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"<home>/projects/app"
]
}
}
}- Gemini CLI reads $GITHUB_PAT from the environment it was started in.
- Replace <home> with the full path of your home folder.
cline_mcp_settings.json (Configure MCP Servers){
"mcpServers": {
"github": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"ghcr.io/github/github-mcp-server"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<GITHUB_PAT>"
}
},
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"<home>/projects/app"
]
}
}
}- Fill in <GITHUB_PAT>: Cline starts the server without a shell, so it can't read these from your environment.
- Replace <home> with the full path of your home folder.
~/.config/zed/settings.json{
"context_servers": {
"github": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"ghcr.io/github/github-mcp-server"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<GITHUB_PAT>"
}
},
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"<home>/projects/app"
]
}
}
}- Add context_servers next to your other settings in the same file.
- Fill in <GITHUB_PAT>: Zed starts the server without a shell, so it can't read these from your environment.
- Replace <home> with the full path of your home folder.
How it converts
It reads each server’s command, arguments and environment, or its address and headers, then writes them the way each client expects. Clients disagree on three things: where the file lives, how a value points at a variable, and what a remote server’s address is called. Copy one client’s file into another unchanged and the server often starts without its key, or not at all. Cursor and VS Code also take a server from a link: the Add buttons open the app, which shows the settings and asks before it saves them.
| Option | Settings | A variable | Remote server |
|---|---|---|---|
| Claude Code | Settingsclaude mcp add in the terminal | A variable$NAME, expanded by your shell | Remote server--transport http NAME URL |
| Claude Desktop | Settingsclaude_desktop_config.json | A variableNot read: fill in <NAME> | Remote servernpx mcp-remote URL |
| Cursor | Settings~/.cursor/mcp.json | A variable${env:NAME} | Remote serverurl |
| VS Code | Settings.vscode/mcp.json | A variable${input:name}, asked once | Remote serverurl, type http |
| Windsurf | Settings~/.codeium/windsurf/mcp_config.json | A variable${env:NAME} | Remote serverserverUrl |
| Codex | Settings~/.codex/config.toml | A variableenv_vars passes it on | Remote serverurl, bearer_token_env_var |
| Gemini CLI | Settings~/.gemini/settings.json | A variable$NAME in env; elsewhere fill in <NAME> | Remote serverhttpUrl |
| Cline | Settingscline_mcp_settings.json | A variableNot read: fill in <NAME> | Remote serverurl, type streamableHttp |
| Zed | Settings~/.config/zed/settings.json, under context_servers | A variableNot read: fill in <NAME> | Remote serverurl |
What it can’t do
Tell you a server is safe
It moves settings, it doesn’t judge them. The MCP config checker finds keys in the file and tools that run unasked, and the trifecta checker shows which servers can leak data together.
Keep SSE servers working
An SSE server is written as streamable HTTP. Codex and most newer clients no longer speak SSE, so check the server also answers at that address.
See your secrets
It runs in this page, and nothing you paste is sent anywhere. A key you paste stays in the output, so use variables before you share it.
Approval for any MCP server
Most MCP clients have no way to stop a tool call and ask someone. The VariantGate MCP proxy starts the server in their place, lets the tools you name through and holds every other call until a person approves it in the inbox, on their phone or in Slack. Free is one person and 100 requests a month, with no card.
Questions
How do I move my Claude Desktop MCP servers to Codex?
Paste your claude_desktop_config.json into the converter and open the Codex tab. Each server becomes an [mcp_servers.NAME] table with command, args and env, ready for ~/.codex/config.toml. Codex starts a server without a shell and passes on only the variables its env_vars list names, so a variable that keeps its own name, such as TOKEN = "$TOKEN", goes into env_vars; any other value that points at a variable is left as <NAME> for you to fill in.
Why does the Claude Desktop file need <TOKEN> filled in?
Claude Desktop starts each server directly, without a shell, so a value like $GITHUB_PAT reaches the server as those exact characters, not as your token. The converter leaves such values as <GITHUB_PAT> so you notice them, and a ~/ path as <home>/ for the same reason. Cursor and Windsurf read ${env:NAME}, VS Code asks for an input once and stores it, and Gemini CLI reads $NAME in a server's env.
How do I add a remote MCP server to Claude Desktop?
Claude Desktop's settings file takes a command, not an address. The converter starts the remote server through mcp-remote (npx -y mcp-remote URL), with any header passed as an environment variable. You can also add the address under Settings, Connectors, which signs in with OAuth where the server offers it.
Can I add an MCP server to Cursor or VS Code in one click?
Open the Cursor or VS Code tab and press Add to Cursor or Add to VS Code. The button is an install link: it opens the app, which shows the server's settings and asks before it saves them. Cursor's link carries the server's entry with secrets as ${env:NAME}; VS Code's carries an input for each secret, so it asks for the key once and no key sits in the link. A key you pasted in plain text does end up in the link, so use variables first.
Where do Cline and Zed keep their MCP servers?
Cline keeps its servers in cline_mcp_settings.json (Configure MCP Servers in the Cline panel) under mcpServers; a remote server needs type streamableHttp, because Cline reads one without a type as the old SSE transport. Zed keeps them in its settings.json under context_servers, with command, args and env, or url and headers. Neither documents reading variables in these values, so the converter leaves <NAME> for you to fill in.
Does the converter send my settings anywhere?
No. Everything runs inside this page; nothing you paste is sent anywhere. Keys you paste stay in the output, so swap them for variables before you share a file.
How do I make an MCP server ask a person before it acts?
Tick the proxy box. Each server is then started by the VariantGate MCP proxy, which lets the tools you name through and holds every other call until a person approves it in the inbox, on their phone or in Slack. Run the login command once first to save a key. The proxy needs a command to start, so a remote server is written as it was.