Free tool
MCP config generator
Enter one MCP server, remote or local, and copy its config for Claude Code, Claude Desktop, Cursor and VS Code. Each snippet follows that client's own docs and names the file it goes in.
Claude Code
claude mcp add (local scope)
claude mcp add --transport http --scope local prompt-tm 'https://www.prompt-tm.com/mcp/mcp_your_server_id?user_id=me' \
--header "x-api-key: $PROMPT_TM_KEY"Where: Run in the project folder. Claude Code stores the server in ~/.claude.json, for you and this project only.
.mcp.json
{
"mcpServers": {
"prompt-tm": {
"type": "http",
"url": "https://www.prompt-tm.com/mcp/mcp_your_server_id?user_id=me",
"headers": {
"x-api-key": "${PROMPT_TM_KEY}"
}
}
}
}Where: .mcp.json in the project root (project scope, shared through version control)
Claude Code fills in ${VAR} from each person's environment when it connects.
- Set PROMPT_TM_KEY in your shell before you run the command. The shell puts the value into ~/.claude.json.
Claude Desktop
Custom connector
Name: prompt-tm
Remote MCP server URL: https://www.prompt-tm.com/mcp/mcp_your_server_id?user_id=me
Authentication: No sign-in
Request headers: x-api-key = <your key>Where: Customize > Connectors > Add > Add custom connector
On Team and Enterprise plans, the Owner enters the key when adding the connector, and everyone in the organization then uses that one key. Request headers are in beta and only some organizations see them. Without that section, use OAuth if the server offers it.
- Claude Desktop adds remote servers as custom connectors, not through claude_desktop_config.json. The connection comes from Anthropic's servers, not your computer, so the URL has to be reachable from the internet.
- On Team and Enterprise plans, an Owner adds the connector for the organization under Organization settings > Connectors (Add, then Custom). Members then connect to it with their own account.
Cursor
mcp.json
{
"mcpServers": {
"prompt-tm": {
"url": "https://www.prompt-tm.com/mcp/mcp_your_server_id?user_id=me",
"headers": {
"x-api-key": "${env:PROMPT_TM_KEY}"
}
}
}
}Where: .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project
- Set PROMPT_TM_KEY in the environment that starts the client.
VS Code
mcp-config.json (Copilot)
{
"mcpServers": {
"prompt-tm": {
"type": "http",
"url": "https://www.prompt-tm.com/mcp/mcp_your_server_id?user_id=me",
"headers": {
"x-api-key": "${PROMPT_TM_KEY}"
},
"tools": [
"*"
]
}
}
}Where: ~/.copilot/mcp-config.json (or $COPILOT_HOME/mcp-config.json)
Set PROMPT_TM_KEY in the environment that starts the client.
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "prompt-tm-key",
"description": "PROMPT_TM_KEY",
"password": true
}
],
"servers": {
"prompt-tm": {
"type": "http",
"url": "https://www.prompt-tm.com/mcp/mcp_your_server_id?user_id=me",
"headers": {
"x-api-key": "${input:prompt-tm-key}"
}
}
}
}Where: .vscode/mcp.json in the workspace
Only for an existing setup on the Local harness, which VS Code has deprecated and removes in February 2027. It uses servers, not mcpServers. VS Code asks for each input when the server first starts and stores the answer, so the file holds no secret.
What each client reads
Checked against each client's documentation on 21 November 2026. Client formats change, so if a snippet stops working, the linked page has the current one.
| Client | File | Key | Remote servers |
|---|---|---|---|
| Claude Code | claude mcp add, or .mcp.json in the project root | mcpServers | Yes, type http with url and headers |
| Claude Desktop | claude_desktop_config.json | mcpServers | No. Add a custom connector by URL instead |
| Cursor | .cursor/mcp.json or ~/.cursor/mcp.json | mcpServers | Yes, url and headers with no type |
| VS Code (Copilot) | ~/.copilot/mcp-config.json | mcpServers | Yes, type http with url and headers |
| VS Code (Local harness) | .vscode/mcp.json | servers | Yes, type http with url and headers |
Sources
- Claude Code: Connect Claude Code to tools via MCP
- MCP docs: Connect to local MCP servers
- Claude: Add a connector that isn't in the directory
- Cursor: Model Context Protocol (MCP)
- VS Code: MCP configuration reference
Windsurf is not covered: its MCP docs now redirect to Devin Desktop pages that don't show the config format.
Questions
What is the difference between a remote and a local MCP server?
A remote server runs somewhere else and the client connects to its URL over streamable HTTP. A local server is a program the client starts on your computer from a command and its arguments, and talks to over stdio.
Can I add a remote server to claude_desktop_config.json?
Claude's docs add remote servers as custom connectors: Customize > Connectors > Add > Add custom connector, then the name and the URL. On Team and Enterprise plans, an Owner adds it for the organization under Organization settings > Connectors. The config file holds local servers that the desktop app starts itself. A custom connector connects from Anthropic's servers, not from your computer, so the URL has to be reachable from the internet.
Why does VS Code get two snippets?
VS Code's Copilot harness reads ~/.copilot/mcp-config.json, with servers under mcpServers. The older .vscode/mcp.json, with servers under servers, belongs to the Local harness, which VS Code has deprecated and removes in February 2027. Use the second snippet only to keep an existing setup working.
How do I keep an API key out of a config file that goes into git?
Point the config at an environment variable. Claude Code's .mcp.json expands ${VAR}, Cursor expands ${env:VAR}, and Copilot's mcp-config.json expands ${VAR}. In .vscode/mcp.json, an input with password: true makes VS Code ask for the key once and store it. Pick Environment variable in the form and the snippets use these.
Where does claude mcp add save the server?
With --scope local (the default) and --scope user, in ~/.claude.json. With --scope project, in .mcp.json in the project root, which you commit so the team gets the same server. Claude Code asks each person to approve a project server the first time it starts.
Which names can an MCP server have?
Claude Code accepts letters, digits, hyphens and underscores, and VS Code advises against spaces and special characters. The generator turns any other character into a hyphen, so one name works in every client.
Scopes, OAuth sign-in and the errors you may meet along the way are in Claude Code MCP server setup, step by step.
Need a server to put in the config?
Prompt TM gives your agent one MCP URL for 70 toolkits, including GitHub, Slack, Notion and Stripe. Each of your users connects their own accounts, and Prompt TM stores the OAuth tokens and API keys, refreshes them and runs the calls. It is free during early access.