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. Free, private and instant.
How to use the MCP Server Config Generator (Claude, Cursor, VS Code)
- Choose your app: Claude Desktop, Cursor, VS Code or Claude Code.
- Enter a short server name, choose how it runs and type the package, image or URL.
- Add any extra arguments and environment variables, such as an API key placeholder.
- Copy the result into the right file or terminal, then restart the app if needed.
Example
Worked example (Claude Desktop, npx, filesystem server)
- Output: { "mcpServers": { "filesystem": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/me/Documents"] } } }
- Claude Code: claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem /Users/me/Documents
Limitations
- The generator uses the common configuration formats. Apps change, so check each app’s documentation if your version differs.
- It cannot check that the package exists or what arguments it takes. Read the server’s own README.
- Remote servers may need authentication or headers that this tool does not generate.
- Never paste real secrets into a shared page. The tool runs in your browser, but anything you copy may end up in a file you share.
Sources
Rates and rules last checked against these sources on 2026-10-08.
About this tool
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.
Also searched for as: mcp server config, claude_desktop_config.json generator, add mcp server to claude desktop, cursor mcp.json generator, vs code mcp json, claude code mcp add command, mcp json builder.
MCP Server Config Generator (Claude, Cursor, VS Code) is part of ToolStack Hub's Developer Tools. It runs entirely in your browser, which keeps your data private and makes results instant. There is nothing to install and no account to create. There is no usage limit.
Frequently asked questions
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. MCP Server Config Generator (Claude, Cursor, VS Code) is completely free with no sign-up, limits or watermarks.
Is my data private when I use the MCP Server Config Generator (Claude, Cursor, VS Code)?
Yes. It runs in your browser, so your input is not uploaded to our servers.
Does it work on mobile?
Yes. ToolStack Hub tools work on phones, tablets and desktop browsers.
Keep going
Need this automated for your business?
Vantalume builds custom AI and web automation workflows so your team can stop doing repetitive work.