MCP config generator for Cursor, Claude Code, VS Code, Windsurf
paste your MCP server url and token, pick your editor, and copy the exact config. works for any remote MCP server, with the right file path shown for each editor. no hand-editing json, no schema guessing.
{
"mcpServers": {
"smolanalytics": {
"type": "http",
"url": "https://YOUR-INSTANCE/mcp",
"headers": {
"Authorization": "Bearer YOUR_KEY"
}
}
}
}using smolanalytics? you don't need this: run npx smolanalytics connect and it wires up every editor you have in one command. this tool is here for every other MCP server, and for setting a smolanalytics instance up by hand.
How do I connect an MCP server to my editor?
Every Model Context Protocol client reads a small config that tells it where the server is and how to authenticate. For a remote server that means three things: the transport (http), the endpoint (your server's /mcp url), and an Authorization: Bearer header carrying your token. The generator above fills all three in for the editor you pick, and it appends /mcp to your base url so you don't have to.
The catch is that editors don't agree on the file or the top-level key. Cursor, Windsurf, and Claude Desktop nest servers under mcpServers; VS Code uses servers; and Claude Code has no file at all, so you register the server with claude mcp add. The tool handles each of those, and prints the correct path with the config. Learn what an MCP server is on the MCP server page and the glossary definition.
Where does each editor's MCP config live?
The generator shows the right path for the editor you pick, but here they are in one place:
- Cursor: ~/.cursor/mcp.json, key mcpServers.
- Windsurf: ~/.codeium/windsurf/mcp_config.json, key mcpServers.
- VS Code: a user mcp.json opened with the MCP: Open User Configuration command, key servers.
- Claude Desktop: claude_desktop_config.json (on macOS under ~/Library/Application Support/Claude/), key mcpServers.
- Claude Code: no file. Register with claude mcp add, then restart.
What is smolanalytics, the server in the example?
smolanalytics runs end-to-end tests that have no test code: you write one sentence describing what should work, an agent drives a real browser on every pull request, and one comment says what broke. Its MCP server is how the agent in your editor works with it: the tools behind the testing and instrumentation half — instrumentation_coverage, propose_instrumentation, verify_instrumentation, event_source, and the deploy markers. No tool here drives a browser: the suite is a command your agent runs in the terminal. It is bring-your-own-model, so your editor's own AI does the calling and the AI part costs nothing.
Each project runs as its own isolated instance with your MCP endpoint on it, and the 14-day trial needs no card. Start one, then point this generator at it:
Full setup, from the first test to the workflow file, is in the docs. The Cursor and Claude Code walkthrough lives on the Cursor page.