MCP Server Config (mcp.json) Generator & Validator
MCP Server Config (mcp.json) Generator & Validator 100% Client-Side
Build, customize, and validate Model Context Protocol (MCP) configuration files for Claude Desktop, Claude Code, Cursor, VS Code, or Cline directly in browser RAM—zero tokens or API keys ever leave your device.
How Model Context Protocol (MCP) Configuration Files Work
The Model Context Protocol (MCP) standardizes how AI coding assistants and desktop agents connect to local files, SQL databases, Git repositories, and remote APIs. While every major client uses JSON, subtle schema differences cause frustrating startup errors:
- Root Key Differences: Claude Desktop, Claude Code (
.mcp.json), Cursor, and Cline expect a top-level"mcpServers"object, whereas VS Code Copilot (.vscode/mcp.json) expects"servers"with an explicit"type": "stdio"or"type": "http"field. - Windows
npxExecution: On Windows, spawningnpxdirectly often fails withENOENTunless wrapped with"command": "cmd"and"args": ["/c", "npx", "-y", "..."]. - Streamable HTTP vs. Legacy SSE: Modern remote MCP servers use Streamable HTTP (
"type": "http"with a"url"endpoint) rather than deprecated dual-endpoint SSE transports.
Frequently Asked Questions
Is it safe to paste my GitHub PAT or database URI into this generator?
Yes. This tool executes 100% locally in your browser's JavaScript memory with zero network requests. When committing .mcp.json to Git, use environment variable placeholders like ${GITHUB_PERSONAL_ACCESS_TOKEN} instead of hardcoding live secrets.
Why does my MCP server fail with "Connection closed" on startup?
The three most common causes are missing Node.js/uv in your system PATH, forgetting the cmd /c wrapper on Windows, or an MCP server printing debug logs to stdout instead of stderr (which corrupts the JSON-RPC stdio stream).