MCP Server Config Generator

Generate mcpServers JSON for Claude Desktop, Cursor and others.

If a value is a real token, prefer an environment variable or the client's secret input. Do not commit it.

~/.cursor/mcp.json or .cursor/mcp.json. Remote: mcpServers entry with url and optional headers (no type field) Local: mcpServers with command and args Checked 2026-11-06. Source

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/path/to/dir"
      ]
    }
  }
}

Client matrix

ClientFileRemote shapeChecked
Claude Desktopclaude_desktop_config.jsonCustom connector in Settings → Connectors. The JSON file is for local stdio servers.2026-11-06
Claude Code.mcp.jsonmcpServers entry with type "http", url, and optional headers2026-11-06
Cursor~/.cursor/mcp.json or .cursor/mcp.jsonmcpServers entry with url and optional headers (no type field)2026-11-06
VS Code.vscode/mcp.jsonservers with type "http", url, and optional headers2026-11-06
Codex~/.codex/config.tomlurl plus bearer_token_env_var. Do not put the token in the file.2026-11-06

These are the documented file shapes as of 2026-11-06. They are not a live test that a client accepted the file. Open the inspector to talk to a remote server from the browser.

Related guides: MCP clients compared · Remote MCP setup

Get new agent tools daily

One short email each morning. New tools, MCP servers and frameworks. No spam.

More tools