MCP Server Config Generator
Generate mcpServers JSON for Claude Desktop, Cursor and others.
If a value is a real token, prefer an environment variable or the client's secret input. Do not commit it.
~/.cursor/mcp.json or .cursor/mcp.json. Remote: mcpServers entry with url and optional headers (no type field) Local: mcpServers with command and args Checked 2026-11-06. Source
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/dir"
]
}
}
}Client matrix
| Client | File | Remote shape | Checked |
|---|---|---|---|
| Claude Desktop | claude_desktop_config.json | Custom connector in Settings → Connectors. The JSON file is for local stdio servers. | 2026-11-06 |
| Claude Code | .mcp.json | mcpServers entry with type "http", url, and optional headers | 2026-11-06 |
| Cursor | ~/.cursor/mcp.json or .cursor/mcp.json | mcpServers entry with url and optional headers (no type field) | 2026-11-06 |
| VS Code | .vscode/mcp.json | servers with type "http", url, and optional headers | 2026-11-06 |
| Codex | ~/.codex/config.toml | url plus bearer_token_env_var. Do not put the token in the file. | 2026-11-06 |
These are the documented file shapes as of 2026-11-06. They are not a live test that a client accepted the file. Open the inspector to talk to a remote server from the browser.
Related guides: MCP clients compared · Remote MCP setup
Get new agent tools daily
One short email each morning. New tools, MCP servers and frameworks. No spam.
More tools
Token & Cost Estimator
Know what every call costs.
JSON Schema → Tool Definition
One schema. Every format.
System Prompt Linter
Prompts, without the guesswork.
Cron Expression Explainer
Schedules you can read.
Regex Tester for Agent Outputs
Parse model output reliably.
Agent Run Cost Planner
What a multi-step agent run costs.
MCP Inspector
Call a remote MCP server from the browser.
TDQS Hard-Gate Lint
Deterministic tool-definition checks.