MCP Config Generator
Generate a Model Context Protocol client config block and server command snippet from your own values — the tool produces text only and starts no server.
- Runs locally in your browser
- No upload required
Try it
Supported formats
Privacy
Runs entirely in your browser. Your input is never uploaded, stored, or sent to a third party.
Generated an MCP client config block and a server command snippet.
How it works
- Read the server name, transport and the command/args/env or url you supplied.
- Emit a `mcpServers` JSON block for your MCP client.
- Emit a server command snippet for the stdio transport.
- Secret-like environment values are written as placeholders so a real key is never baked into a copy-pasteable file.
- This tool only formats text; it never launches a process or opens a connection.
Methodology
- Build a `mcpServers` object keyed by the server name: a stdio entry carries `command`, `args` and `env`, and an SSE entry carries `url`.
- Render JSON with stable two-space indentation so the output is deterministic.
- Replace the value of secret-like environment keys with an upper-cased placeholder and emit a matching server command snippet.
Usage
- Enter a server name and choose the stdio or SSE transport.
- For stdio, provide a command, one argument per line, and optional `KEY=value` environment lines.
- For SSE, provide the server URL, then copy the config block into your MCP client.
Examples
These are examples, not current values: they use fixed inputs, while the interactive tool computes live results in your browser.
A local stdio server
{
"name": "filesystem",
"transport": "stdio",
"command": "npx",
"args": "-y\n@modelcontextprotocol/server-filesystem\n/tmp",
"env": "",
"url": ""
}A remote SSE server
{
"name": "remote",
"transport": "sse",
"command": "",
"args": "",
"env": "",
"url": "https://mcp.example.com/sse"
}Limitations
How MCP clients are configured
MCP hosts such as Claude Desktop read a configuration that maps a server name to a transport: stdio servers run a local command with arguments and environment, while remote servers are reached over a URL. This generator writes that block for the values you provide.
Frequently asked questions
- Does this tool start or connect to an MCP server?
- No. It only produces configuration and snippet text. It launches no process and opens no connection.
- Where does my API key go?
- For secret-like environment keys the generator writes a placeholder such as `<YOUR_API_KEY>` instead of the value, so a real key is not baked into a file you might share.
Sources
- Model Context Protocol — Architecture overview — Model Context Protocol
- Model Context Protocol — Specification — Model Context Protocol
Send feedback
Tell us if this tool helped, report a problem, or suggest a tool. Only the message you type is sent — never the input you used in the tool.
Was this tool useful?
Prefer to write to us directly? See the contact page.