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
- Choose the target app. Both Claude Desktop (
claude_desktop_config.json) and Cursor (.cursor/mcp.jsonin a project, or~/.cursor/mcp.jsonfor all projects) use the same top-levelmcpServersobject. - For each server, enter a name, the command (for example
npx,node,pythonordocker) and space-separated args such as-y @modelcontextprotocol/server-filesystem /path. - Optionally add Env JSON for the first server, for example
{"API_KEY": "…"}. Invalid JSON is ignored until it parses. - 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.
Related
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].