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 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 is an analytics MCP server: a single open-source Go binary that does web and product analytics from one snippet (visitors, referrers, funnels, retention, paths, cohorts) and exposes all of it to your AI over MCP as 47 tools and 13 prompts. The load-bearing part is that answers are computed from the same deterministic reports the dashboard renders, never generated by the model, and a CI agreement test fails the build if the editor's answer ever differs from the dashboard's. It is bring-your-own-model, so your editor's own AI does the asking and the AI part costs nothing.
The whole thing is one binary with the standard library only, no Kafka, ClickHouse, or Postgres, storing roughly 7 bytes per event. Kick the tyres locally, then point this generator at it:
docker run -p 8080:8080 ghcr.io/arjun0606/smolanalytics # dashboard on http://localhost:8080, MCP server at /mcp
Full setup, including the web snippet and the universal ingestion endpoint, is in the docs. The Cursor and Claude Code walkthrough lives on the Cursor page.