DevTools Logo

MCP Server Config Generator

MCP Server Config Generator

Assemble mcpServers JSON for Claude Desktop, Cursor, and VS Code from a verified catalog (v2026-11-26) — secrets stay as ${VAR} placeholders.

Runs in your browser
Try an example

Servers

0 selected

Pick catalog servers above or add a custom one to start composing your config.

Claude Desktop config

Select a server to generate its config

Pick catalog servers or add a custom stdio/HTTP entry.

macOS
~/Library/Application Support/Claude/claude_desktop_config.json
Windows
%APPDATA%\Claude\claude_desktop_config.json
Linux
Not available — Claude Desktop has no native Linux build.

Stdio servers only until recent releases; update Claude Desktop for remote (URL) servers.

    Examples

    Filesystem

    Input
    Filesystem catalog entry
    Output
    {"mcpServers":{"filesystem":{"command":"npx","args":[...]}}}

    The default args include a path slot you can edit before copying.

    GitHub + memory

    Input
    Two catalog entries
    Output
    Two mcpServers keys in one file

    Multi-server compose merges the maps and reports any identifier collision.

    Remote HTTP

    Input
    Remote server entry
    Output
    url plus type: http for VS Code

    Headers are only emitted for targets that support them.

    Missing command

    Input
    Custom stdio with empty command
    Output
    Validation error

    The output is withheld until the command is provided; the form selection stays intact.

    About this tool

    The MCP Server Config Generator produces the exact JSON clients expect when adding Model Context Protocol servers. Choose from a bundled catalog of well-known servers or add a custom stdio/HTTP entry, then target Claude Desktop, Cursor or VS Code to get the right wrapper and filename.

    Each server form exposes its command, arguments, environment placeholders and (for HTTP transports) URL and headers. Multiple servers compose into one configuration file; duplicate identifiers are suffixed with a warning. A lint warns when an environment value looks like a pasted real secret and recommends the `${VAR}` placeholder form instead.

    The output is validated by re-parsing it before display, and an install-path helper shows where to save the file on macOS, Windows and Linux. No network calls are made: the catalog is bundled, and entered environment values are never persisted to localStorage.

    What this tool does not do

    • The catalog is a bundled snapshot with a visible version and is not fetched live.
    • No server is launched or contacted; the tool only emits configuration text.
    • Import handles common mcpServers shapes, not every vendor-specific dialect.

    How to use this tool

    1. Pick a client

      Select Claude Desktop, Cursor or VS Code. The output wrapper, filename and per-OS install path update immediately.

    2. Add servers

      Search the catalog and click entries to add them, or add a custom server and provide its command or URL.

    3. Edit the form

      Adjust arguments and use `${VAR}` placeholders for tokens and keys. The secret lint flags values that look like real credentials.

    4. Copy or download

      Review the validated JSON, copy it or download it with the target's conventional filename, then replace placeholders with real environment variables locally.

    Use cases

    First-time MCP setup

    Generate a working config without guessing wrapper keys or config file locations.

    Switching editors

    Regenerate the same server list for Claude Desktop, Cursor and VS Code with correct dialects.

    Team documentation

    Share a placeholder-only JSON snippet that never contains real API keys.

    Target dialects

    ClientOutput
    Claude DesktopmcpServers wrapper in claude_desktop_config.json
    CursormcpServers wrapper in .cursor/mcp.json
    VS Codeservers wrapper with a type field in .vscode/mcp.json

    Claude on Windows needs a cmd /c wrapper for npx-based servers; the tool applies it when the Windows toggle is on.

    Common mistakes

    Mistake:Pasting real API tokens into env fields.

    Fix:Use ${VAR} placeholders; the lint flags long random-looking values and nothing is saved to storage.

    Mistake:Reusing a Claude Desktop config in VS Code.

    Fix:VS Code uses a servers wrapper with type fields — regenerate for the target client.

    Mistake:Expecting ${VAR} expansion in a host that does not spawn a shell.

    Fix:Check the target note; some hosts need the variable expanded by a wrapper.

    Frequently asked questions

    Where does claude_desktop_config.json live on each OS?

    macOS: ~/Library/Application Support/Claude/claude_desktop_config.json. Windows: %APPDATA%\Claude\claude_desktop_config.json. Linux: ~/.config/Claude/claude_desktop_config.json. The install-path helper under the output shows the path for your chosen host.

    What is the difference between stdio and HTTP transports?

    Stdio servers are local processes launched by the client with a command and args. HTTP/SSE servers are reached at a URL and may use headers. The generator emits the right fields for each transport and hides headers for clients that do not support them.

    How do I pass API keys to an MCP server safely?

    Use ${VAR} placeholders in env values and export the real variable in your shell or client environment. The secret lint warns about pasted long random strings, and entered env values are never written to localStorage or sent anywhere.

    What does the args array need for npx-based servers?

    Typically ['-y', '@modelcontextprotocol/server-name', ...slots]. The -y flag lets npx install non-interactively; on Windows with Claude Desktop, wrap the command as cmd /c npx — the generator does this when the Windows toggle is on.

    Why won't Cursor read my Claude Desktop config?

    Cursor reads .cursor/mcp.json in your project or user directory, not the Claude Desktop file. The wrapper looks similar but the path and some fields differ; select Cursor as the target and download the config with the correct filename.

    Is the server catalog fetched from the network?

    No. The catalog is bundled with a visible version and last-verified note. Nothing is downloaded or launched, and the generated JSON is plain text you place yourself.