DevKits

MCP Config Generator — Build mcp.json for Claude, Cursor, VS Code

Generate a Model Context Protocol (MCP) server config for Claude Desktop, Cursor, VS Code, Windsurf, Cline, and Zed. Fill in the command, args, env, or URL once and copy the right JSON for each client. 100% local.

Last updated:

Comments

Fill in your MCP server once — a local command + args (stdio) or a remote URL (SSE / HTTP) plus any env vars — and this tool outputs the exact config JSON for Claude Desktop, Cursor, VS Code, Windsurf, Cline, and Zed. Each client needs a different shape; copy the one you need. Everything runs in your browser.

Environment variables
claude_desktop_config.json
{
  "mcpServers": {
    "my-server": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/path/to/dir"
      ]
    }
  }
}

What is MCP Config Generator?

The Model Context Protocol (MCP) lets AI apps connect to external tools and data through a standard interface. A server is launched either as a local process over stdio (you specify a command and arguments) or reached remotely over SSE / streamable HTTP (you specify a URL). The protocol is shared, but every host picked its own config file and JSON shape: Claude Desktop, Cursor, Windsurf and Cline nest servers under "mcpServers"; VS Code uses "servers" with an explicit "type" field; Zed uses "context_servers". This generator takes one set of inputs and renders the correct file for each client, so you don't have to remember the differences or hand-edit JSON.

How to generate an MCP config

  1. 1Enter a server name and pick the transport: stdio (local command) or SSE / HTTP (remote URL).
  2. 2Fill in the command + args, or the URL, plus any environment variables (e.g. API keys).
  3. 3Pick your client tab (Claude Desktop, Cursor, VS Code, …) and copy the generated JSON into the shown config path.

Key Concepts

Model Context Protocol
The open standard behind these configs — what servers, tools, and transports are.
stdio transport
Runs the MCP server as a local subprocess, communicating over stdin/stdout. Needs a command and args.
mcpServers
The top-level key most hosts (Claude Desktop, Cursor, Cline) use to list MCP servers.
Tool definition
Each MCP server exposes tools with an inputSchema — validate those separately.

Tips & Best Practices

  • ▸Never commit real API keys in a project-level .cursor/mcp.json — use env vars or a local, git-ignored config.
  • ▸If a server won't start, check the command resolves on PATH (use an absolute path or npx -y <package>).

Frequently Asked Questions

Why does each client need a different MCP config?

The MCP spec defines the transport, but each host chose its own config shape. Claude Desktop, Cursor, Windsurf and Cline use a top-level "mcpServers" object; VS Code uses "servers" with an explicit "type"; Zed uses "context_servers". This tool outputs the exact shape each one expects from a single input.

What's the difference between stdio, SSE, and HTTP MCP servers?

stdio runs a local process and talks over stdin/stdout (you give a command + args). SSE and streamable HTTP connect to a remote server over a URL. Local tools are usually stdio; hosted MCP servers use HTTP/SSE.

Where do I put the generated mcp.json?

Claude Desktop: claude_desktop_config.json in its config folder. Cursor: .cursor/mcp.json in your project (or ~/.cursor/mcp.json global). VS Code: .vscode/mcp.json. The tool shows the path for each client.

Is my config uploaded anywhere?

No. The JSON is generated entirely in your browser — secrets in env vars never leave your device.

Try Next

Prompt Token Breakdown

Break a prompt into segments and see how many tokens — and how much cost — each part uses. Find the heaviest section (system, few-shot examples, or user input) so you know exactly what to trim. 100% local.

Related Tools

Reference & Guides