# MCP Server Config Generator (Claude, Cursor, VS Code)

Build the JSON or command to add an MCP server to Claude Desktop, Claude Code, Cursor or VS Code, for npx, uvx, Docker or a remote URL.

- URL: https://toolstackhub.co.uk/tools/mcp-server-config-generator/
- Category: Developer Tools
- Price: free, no sign-up
- Privacy: runs in the browser; input is not uploaded
- Last updated: 2026-10-08

## About
The MCP Server Config Generator writes the configuration to add a Model Context Protocol server to your AI app. Choose your app, whether the server runs locally with npx, uvx or Docker, or is a remote URL, enter the package and any environment variables, and copy the result. For Claude Desktop and Cursor it produces the mcpServers JSON, for VS Code the servers JSON for mcp.json, and for Claude Code the claude mcp add command. Use placeholder values and keep real keys out of shared files.

## How to use
1. Choose your app: Claude Desktop, Cursor, VS Code or Claude Code.
2. Enter a short server name, choose how it runs and type the package, image or URL.
3. Add any extra arguments and environment variables, such as an API key placeholder.
4. Copy the result into the right file or terminal, then restart the app if needed.

## FAQ
**Where is claude_desktop_config.json?** Open Claude Desktop, go to Settings, Developer and choose Edit Config. On macOS it is in Application Support/Claude and on Windows in the Roaming AppData Claude folder.

**What is the difference between mcpServers and servers?** Claude Desktop and Cursor use an mcpServers object. VS Code’s mcp.json uses a servers object with a type field.

**Why does npx fail on Windows?** Some apps need npx run through cmd /c. Tick the Windows option to wrap it.

**Is the MCP Server Config Generator (Claude, Cursor, VS Code) free?** Yes, with no sign-up or limits.
