MCP Config Generator
Build a valid MCP server block for claude_desktop_config.json from a simple form, or paste an existing config to validate it. Runs entirely in your browser.
What this builds
The Model Context Protocol lets an AI app connect to external tools through a
standard config. For Claude Desktop that config lives in claude_desktop_config.json, and every
server goes under an mcpServers object with a command to launch it, its
args, and any env variables (like API keys). A single misplaced comma or a
string where an array belongs stops every server from loading, so this tool builds the shape for you and
validates one you already have.
The shape of a server
- command, the executable, often
npx,node,uvx, orpython. - args, an array of strings passed to the command (one per line in the form).
- env, optional key/value pairs, the usual home for secrets like
API_KEY.
This generates and checks the JSON locally, nothing is uploaded, so it is safe to paste a config that contains keys. That said, treat real secrets carefully and prefer environment references where you can.
FAQ
Where does this file go?
On macOS, ~/Library/Application Support/Claude/claude_desktop_config.json; on Windows, %APPDATA%\Claude\claude_desktop_config.json. Restart Claude Desktop after editing.
Does the validator run my servers?
No. It only checks the JSON structure (valid syntax, an mcpServers object, a string command, an array args, and object env). It never executes anything.
Is my config uploaded?
No. Generation and validation are entirely client-side, so the config and any keys in it stay on your device.
Related
Read what MCP is and how it relates to tool calling, or browse AI Explained.