Skip to content

Menu

MCP Config Generator

Build MCP server config files for Claude Code, Claude Desktop, Cursor and VS Code

Runs entirely in your browserAIFree, no sign-up
Loading tool

01What is MCP Config Generator?

MCP clients all read a JSON file that lists the servers they should start, but the files are not identical. Claude Code reads .mcp.json in the project root, Claude Desktop reads claude_desktop_config.json from its application support folder, Cursor reads .cursor/mcp.json, and VS Code's docs now point new Copilot setups to a .mcp.json in the workspace root. All four put servers under a top-level mcpServers object. VS Code's older .vscode/mcp.json uses a top-level servers object instead, and VS Code says the Local harness behind that format is deprecated and will be removed in February 2027. Small differences like this are why a config copied from a README often fails without a clear message. This generator lets you describe each server once and then shows the file for each client. You can search the MCP servers listed on this site and pick one, which fills in the command and arguments from its npm package or install command, or you can add a server by hand. A local server needs a command, such as npx or uvx, a list of arguments and any environment variables it expects. A remote server needs a URL and, often, an Authorization header. The output follows each client's documentation. For Claude Code, a remote server gets "type": "http" or "sse" next to its url, because Claude Code treats an entry with no type as a local stdio server. Cursor and VS Code get "type": "stdio" on local servers, as their docs show. VS Code remote servers get "type": "http" or "sse". Claude Desktop's config file is documented for local servers only, so remote entries are left out of that tab with a note; you add those as connectors inside the app. Secrets are the part people most often get wrong. If an environment variable or header name contains token, key, secret, password or auth, the generator can replace the value with a reference to an environment variable. Claude Code uses ${VAR} and also accepts ${VAR:-default}. Cursor and VS Code use ${env:NAME}. Claude Desktop has no documented expansion, so values there stay as you typed them and you should keep that file private. Everything runs in your browser. The only network request is the one that loads the list of servers on this site, and nothing you type is sent anywhere. Copy the output, save it under the file name shown above the code, and restart or reload the client so it picks up the change. If a server does not start, run its command in a terminal first to see the error.

Developers adding MCP servers to AI coding tools, team leads sharing a project-level MCP setup, and anyone moving a server config between Claude Code, Claude Desktop, Cursor and VS Code. The tool runs entirely in your browser, so your data never leaves your device.

02How to use MCP Config Generator

  1. Search for a listed MCP server and pick it, or add a blank local or remote server
  2. Check the command and arguments (one argument per line), or enter the URL for a remote server
  3. Add environment variables or headers the server needs, leaving secret replacement switched on
  4. Choose the client tab and note the file name and location shown above the output
  5. Copy the JSON into that file, set the referenced environment variables, and restart the client

03Worked examples

Input: Client: Claude Code. Server "github" (stdio): command npx, args -y / @modelcontextprotocol/server-github, env GITHUB_PERSONAL_ACCESS_TOKEN=ghp_xxx. Secret-reference checkbox on.
Result: { "mcpServers": { "github": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-github"], "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_PERSONAL_ACCESS_TOKEN}" } } } }
The key contains "token", so the typed value is replaced with Claude Code's ${VAR} reference; the real token never lands in the file.
Input: Same github server, client: Cursor
Result: "github": { "type": "stdio", "command": "npx", "args": ["-y", "@modelcontextprotocol/server-github"], "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "${env:GITHUB_PERSONAL_ACCESS_TOKEN}" } }
Cursor and VS Code's legacy format get an explicit "type": "stdio" and use the ${env:VAR} syntax instead of ${VAR}.
Input: Remote server "linear" (http): url https://mcp.example.com/mcp, header Authorization: Bearer abc. Client: VS Code (legacy .vscode/mcp.json)
Result: { "servers": { "linear": { "type": "http", "url": "https://mcp.example.com/mcp", "headers": { "Authorization": "Bearer ${env:API_KEY}" } } } }
The legacy VS Code format uses a top-level "servers" key, not "mcpServers"; the Bearer prefix is kept and only the token becomes a reference. Pick VS Code (.mcp.json) instead and the same server goes under mcpServers with ${API_KEY}.
Input: Same remote "linear" server, client: Cursor
Result: "linear": { "url": "https://mcp.example.com/mcp", "headers": { "Authorization": "Bearer ${env:API_KEY}" } }
For Cursor the remote entry has no "type" field; the URL alone marks it as remote.
Input: github (stdio) + linear (http), client: Claude Desktop
Result: { "mcpServers": { "github": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-github"], "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_xxx" } } } } Skipped: linear
Remote servers are left out for Claude Desktop, and secrets stay as typed because it has no documented variable expansion.

04Common use cases

  • Setting up the same MCP server in Claude Code and Cursor without rewriting the JSON by hand
  • Adding a project-level .mcp.json that teammates can commit without exposing API keys
  • Moving a VS Code setup from the legacy .vscode/mcp.json servers format to a workspace-root .mcp.json
  • Adding a remote HTTP server with an Authorization header to Claude Code with the correct type field
  • Starting a config for a server listed on this site from its npm package or install command

05Tips

  • Keep -y in npx arguments so npx does not stop to ask whether to install the package
  • On Windows, the MCP servers README suggests running npx-based servers through cmd with /c npx as the first arguments
  • If Claude Code warns about a missing variable, export it in the shell you start Claude Code from
  • Use absolute paths for directories passed to the filesystem server, as the Claude Desktop guide recommends

06Related concepts

Model Context Protocol, mcp.json, stdio transport, Streamable HTTP, environment variable expansion.

Frequently Asked Questions

What is MCP Config Generator?

MCP Config Generator is a free, browser-based developer tool on AIDToolStack. Build MCP server config files for Claude Code, Claude Desktop, Cursor and VS Code It requires no installation or sign-up and works entirely in your browser.

Is MCP Config Generator free to use?

Yes. No sign-up, no fees and no usage cap.

Does MCP Config Generator store my data?

No. It runs in your browser; nothing is uploaded.

Cheat sheet

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe