# MCP config generator

> Make MCP config for Claude Code, Cursor, VS Code, Codex and 11 more from one server URL or command, checked live, with install links and README buttons.

Paste a server's address, the command that starts it or a config from its README. The page checks that it answers and how it signs in, and asks the official MCP registry what keys it needs. Then copy what each client wants: its install link, its command or its file, and where it goes. Keys you type stay in your browser. The tool runs on its page, https://construct.computer/tools/mcp-config-generator/.

## Where each client keeps its servers

| Client | Where its servers go | A remote server | Adds it in one go |
| --- | --- | --- | --- |
| Claude Code | mcpServers in .mcp.json at the project's root, or claude mcp add, which keeps them in ~/.claude.json | "type": "http", url and headers | claude mcp add |
| Cursor | mcpServers in .cursor/mcp.json in a project, or ~/.cursor/mcp.json | url and headers | An Add to Cursor link |
| VS Code | mcpServers in ~/.copilot/mcp-config.json, or .mcp.json at a workspace's root | "type": "http", url, headers and tools | A vscode:mcp/install link |
| Copilot CLI | ~/.copilot/mcp-config.json, the same file as VS Code's | --transport http and --header | copilot mcp add |
| Codex | [mcp_servers.\<name>] in ~/.codex/config.toml, or .codex/config.toml in a trusted project | url, and http_headers or bearer_token_env_var | codex mcp add |
| Claude Desktop | mcpServers in claude_desktop_config.json, in ~/Library/Application Support/Claude on a Mac, %APPDATA%\Claude on Windows and ~/.config/Claude on Linux | A custom connector, under Customize, Connectors, with request headers in beta | A .mcpb bundle, for a local server |
| Gemini CLI | mcpServers in ~/.gemini/settings.json, or .gemini/settings.json in a project | httpUrl and headers, since url means SSE | gemini mcp add |
| Antigravity | mcpServers in ~/.gemini/config/mcp_config.json, or .agents/mcp_config.json in a workspace | serverUrl and headers | No |
| Devin Desktop, once Windsurf | mcpServers in ~/.config/devin/mcp_config.json (%APPDATA%\devin on Windows), or .devin/mcp_config.json in a project | "transport": "http", url and headers | devin mcp add |
| Kiro | mcpServers in ~/.kiro/settings/mcp.json, or .kiro/settings/mcp.json in a project | url and headers | An Add to Kiro link |
| Cline | mcpServers in cline_mcp_settings.json, from Cline's MCP Servers panel | "type": "streamableHttp", url and headers | No |
| Zed | context_servers in settings.json | url and headers | No |
| LM Studio | mcpServers in mcp.json, under Program, Install, Edit mcp.json | url and headers | An Add to LM Studio link |
| OpenCode | opencode mcp add in a project, or with --global for every project | --url and --header | opencode mcp add |
| Construct | Apps, Add MCP server, or the address pasted in a chat | Its https address, and a key if the server asks for one | Pasting the address in a chat |

From each client's own docs, checked on 14 November 2026: [Claude Code](https://code.claude.com/docs/en/mcp), [Cursor](https://cursor.com/docs/context/mcp), [VS Code](https://code.visualstudio.com/docs/agents/reference/mcp-configuration), [Copilot CLI](https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers), [Codex](https://learn.chatgpt.com/docs/extend/mcp?surface=cli), [Claude's custom connectors](https://claude.com/docs/connectors/custom/add-unlisted), [Gemini CLI](https://geminicli.com/docs/tools/mcp-server/), [Antigravity](https://antigravity.google/docs/mcp), [Devin Desktop](https://docs.devin.ai/cli/extensibility/mcp/configuration), [Kiro](https://kiro.dev/docs/mcp/configuration/), [Cline](https://docs.cline.bot/mcp/configuring-mcp-servers), [Zed](https://zed.dev/docs/ai/mcp), [LM Studio](https://lmstudio.ai/docs/app/mcp) and [OpenCode](https://opencode.ai/docs/mcp-servers/).

## One-click install links

| Client | The link | What its config holds |
| --- | --- | --- |
| Cursor | cursor://anysphere.cursor-deeplink/mcp/install?name=NAME&config=CONFIG, or https://cursor.com/install-mcp with the same words for a README | The server's entry as JSON, without its name, in base64 |
| VS Code | vscode:mcp/install?CONFIG, or https://vscode.dev/redirect?url= with that link for a README | The entry with its name and type, as JSON, URL-encoded |
| Kiro | https://kiro.dev/launch/mcp/add?name=NAME&config=CONFIG | The entry as JSON, URL-encoded |
| LM Studio | lmstudio://add_mcp?name=NAME&config=CONFIG | The entry as JSON, in base64 |

From [Cursor's install links](https://cursor.com/docs/context/mcp/install-links), [VS Code's MCP guide](https://code.visualstudio.com/api/extension-guides/ai/mcp), [Kiro's sharing page](https://kiro.dev/docs/mcp/share/) and [LM Studio's deeplinks](https://lmstudio.ai/docs/app/mcp/deeplink). GitHub drops an app's own link from a README, so a README's buttons use the https forms.

## Make it from an agent or a script

Fetch this page with the server after server=, as its https address, the command that starts it or a JSON config, and it answers in Markdown: the server's check, then every client's install link, command and file, with where each goes. Add header= or env= for each key, &client=cursor for one client, and &format=json for JSON. In a browser with WebMCP, the page offers the same as its make_mcp_config tool.

```
https://construct.computer/tools/mcp-config-generator/?server=https://mcp.notion.com/mcp
```

## Questions

### What is an MCP config?

The few lines that tell an AI app how to reach an MCP server: a name, then an address for a remote server or the command that starts a local one, with any keys it needs. Most clients keep them under mcpServers in a JSON file. Codex writes TOML, Zed uses context_servers, and a few, like Gemini CLI and Antigravity, name the address field their own way.

### Where is mcp.json?

Each client has its own. Cursor reads .cursor/mcp.json in a project or ~/.cursor/mcp.json for every project, Claude Code reads .mcp.json at a project's root, VS Code and Copilot CLI read ~/.copilot/mcp-config.json, Kiro reads ~/.kiro/settings/mcp.json, and LM Studio opens its own from Program, Install, Edit mcp.json.

### How do I add an MCP server to Claude Code?

Run claude mcp add --transport http with a name and the server's address, adding --header for a key. For a local server, run claude mcp add with a name and end with the command that starts it, after a double dash. Add -s user to have it in every project, or -s project to write .mcp.json and share it. [Claude Code's docs](https://code.claude.com/docs/en/mcp).

### How do I add an MCP server to Claude Desktop?

A local server goes in claude_desktop_config.json, which Settings, Developer, Edit Config opens; quit and reopen Claude after you save. A remote server goes in as a custom connector: Customize, Connectors, Add, Add custom connector, then paste its URL. Request headers there are a beta some accounts don't have yet, and Claude connects from Anthropic's cloud, so the server needs a public address.

### How do I make an Add to Cursor button?

Link to Cursor's install address with the server's name and its entry as base64 JSON, and use Cursor's button picture. Install buttons for your README, under the configs above, writes the Markdown for Cursor, VS Code and Kiro from the server you pasted. [Cursor's install links](https://cursor.com/docs/context/mcp/install-links).

### How do I turn an MCP JSON config into Codex's TOML?

Paste the JSON into the field: a whole file, one named server or a bare entry from any client. The Codex tab shows it as an [mcp_servers.\<name>] table for ~/.codex/config.toml, with headers in http_headers and the environment in its own table.

### How do I test an MCP server?

Paste its address or command above. For a remote server, the page sends MCP's first message, initialize, and says whether it answers, signs in with OAuth or wants a key, with its version and tools when it lets the check in. For a local one, it looks the package up on npm or PyPI. Either way it reads the server's entry in the official MCP registry for the headers or environment variables it needs, and its website for its name and icon.

### What's the difference between a remote and a local MCP server?

A remote server has an https address and speaks streamable HTTP, so any client that can reach it connects, and it signs you in with OAuth or a key in a header. A local server is a command, like npx or uvx, that the client starts on your computer and talks to over stdio, with keys in environment variables. SSE is the older way to reach a remote server, which most clients now treat as legacy.

### Where did Windsurf's mcp_config.json go?

Windsurf is now Devin Desktop. Its servers live in ~/.config/devin/mcp_config.json, or %APPDATA%\devin\mcp_config.json on Windows, under the same mcpServers key, and in .devin/mcp_config.json for a project you share. A remote server takes url, with "transport": "http".

### Why does VS Code want ~/.copilot/mcp-config.json now?

VS Code's chat runs on the Copilot harness, which reads the portable mcpServers format from ~/.copilot/mcp-config.json, the file Copilot CLI uses too, or from .mcp.json at a workspace's root. The older .vscode/mcp.json, under a servers key, belongs to the Local harness, which VS Code has deprecated and plans to remove in February 2027.

### Should I commit .mcp.json?

Commit it when it holds no secrets, since that's how Claude Code shares a project's servers with your team. Keys in it are plain text, so keep them in environment variables instead: Claude Code fills in ${VAR} in .mcp.json, and Cursor reads ${env:VAR} in its mcp.json.

### Can Construct use an MCP server?

Yes, a remote one. In Construct, open Apps and choose Add MCP server, or paste the address into a chat. Construct asks the server how it signs in, and opens its sign-in page, asks for an API key or connects straight away. A server that only runs as a command on your computer needs an https address first.

### Is anything I type kept?

The keys you type stay in your browser, and the configs are made there. To check a server, the page sends its address or command, never a key, to our Worker, which asks the server, the MCP registry and the server's website, and keeps nothing; your browser keeps the answer for five minutes. The server's address goes in this page's address, never a key, so a copied address shows the same server in any app it's shared to. A GET with ?server=, the way agents make configs, carries the server and any keys in its address, which our request logs keep for up to 7 days, so give an agent a placeholder in place of a real key.

These clients use your servers while your computer is on and the app is open. Construct's agents work on their own computer in the cloud, connect any remote MCP server by its address and keep working on a schedule with your laptop closed. [Try it in Construct](https://construct.computer/?prompt=Help%20me%20connect%20a%20remote%20MCP%20server%20to%20Construct%2C%20then%20show%20me%20what%20its%20tools%20can%20do.).

---

The Markdown copy of https://construct.computer/tools/mcp-config-generator/. Everything Construct Computer publishes is listed in https://construct.computer/llms.txt.
