Skip to main content

MCP server config generator

Generate the mcpServers JSON for Claude Desktop or Cursor from a name, command, args and env. Copy it into your config file. Runs in your browser.

Server 1

Both apps read the same top-level mcpServers object for local (stdio) servers. Runs in your browser; nothing is uploaded. Have an OpenAPI spec instead? Try OpenAPI to MCP.

Generate the JSON block that registers local (stdio) MCP servers in Claude Desktop or Cursor. Fill in a name, command and arguments and copy the result into your config file. Nothing is uploaded.

How to use

  1. Choose the target app. Both Claude Desktop (claude_desktop_config.json) and Cursor (.cursor/mcp.json in a project, or ~/.cursor/mcp.json for all projects) use the same top-level mcpServers object.
  2. For each server, enter a name, the command (for example npx, node, python or docker) and space-separated args such as -y @modelcontextprotocol/server-filesystem /path.
  3. Optionally add Env JSON for the first server, for example {"API_KEY": "…"}. Invalid JSON is ignored until it parses.
  4. Use Add server for more entries, then Copy and paste into the config file. Restart the app so it picks up the change.

Good to know

This tool covers command-based (stdio) servers. Remote servers that use a url and headers are not generated here. Arguments are split on spaces, so paths that contain spaces need editing in the output. Prefer environment-variable references over pasting real secrets; Cursor’s docs describe ${env:NAME} interpolation. Only install MCP servers you trust, because they can run code on your machine.

OpenAPI to MCP tool schema · JSON formatter · JSON Schema generator

How we check

Config shape re-checked against Cursor’s MCP documentation (cursor.com/docs/context/mcp). Checked against the tool’s unit tests and a manual run in a desktop browser on 2026-11-13 (Asia/Colombo). Corrections: [email protected].

More free tools