MCP Server Config (mcp.json) Generator
Compose clean stdio and HTTP MCP server configs for Cursor, Claude Code, Windsurf, and VS Code without syntax errors or leaked secrets.
.cursor/mcp.json
1. Toggle Popular MCP Servers
2. Add Custom Server (stdio or HTTP/SSE)
Generated mcp.json
MCP Config File Locations by Coding Client
Each AI coding editor expects its Model Context Protocol configuration at a slightly different file path and root JSON property:
| Editor / Client | Config Path | Root Property |
|---|---|---|
| Cursor | .cursor/mcp.json or ~/.cursor/mcp.json | mcpServers |
| Claude Code / Desktop | .mcp.json or claude_desktop_config.json | mcpServers |
| Windsurf | ~/.codeium/windsurf/mcp_config.json | mcpServers |
| VS Code Copilot | .vscode/mcp.json | servers (requires type) |
Choosing Between Stdio and HTTP/SSE Transports
Local CLI servers spawned via npx or uvx communicate over standard input/output (stdio) with explicit command, args, and scoped env variables. Hosted documentation and cloud provider endpoints use remote HTTP/SSE url entries without local package installation.
Protecting API Tokens Inside Shared Repositories
Never commit raw API tokens into shared project mcp.json files. Leave environment placeholder syntax like ${GITHUB_PERSONAL_ACCESS_TOKEN} active or store secrets inside personal user-level configuration files excluded from Git.
How to Use This Tool
- 1 Choose your target editor tab (Cursor, Claude Code, Windsurf, or VS Code) at the top.
- 2 Check popular presets like Playwright, Context7 Docs, Filesystem, GitHub, or Cloudflare Docs.
- 3 Optionally add custom local stdio commands or remote HTTP MCP server endpoints with env variables.
- 4 Copy or Download the formatted JSON file directly into your client config path.