Black Friday sale: 85 Claude Code agents for $29 one-time · lifetime updatesGet access →
Free Tool

MCP Config (.mcp.json) Generator

Add your MCP servers, local (stdio) or remote (HTTP), and get a valid .mcp.json for Claude Code plus the equivalent claude mcp add commands. Keep secrets out of the file with ${VAR} variables.

Local server (stdio)
Remote server (HTTP)
.mcp.json
.mcp.json
{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "."
      ]
    },
    "my-remote-api": {
      "type": "http",
      "url": "https://example.com/mcp",
      "headers": {
        "Authorization": "Bearer ${API_KEY}"
      }
    }
  }
}
Same servers with claude mcp add
claude mcp add --scope project filesystem -- npx -y @modelcontextprotocol/server-filesystem .
claude mcp add --transport http --scope project my-remote-api https://example.com/mcp --header 'Authorization: Bearer ${API_KEY}'

How to use it

  1. For a shared project setup, save the JSON as .mcp.json in your project root and commit it.
  2. Or run the commands instead; they write the same servers for the scope you picked.
  3. Set any ${VAR} values in your shell, then start Claude Code and approve the servers.
  4. Check them with claude mcp list or /mcp.
Skip the setup: 85 ready-made agents for Claude Code

Coding, SEO and marketing agents, 52 skills and 53 slash commands. Installs with one line.

All free tools →

Frequently asked questions

Project-scoped servers live in .mcp.json at the root of your project, which you can commit so your team gets the same servers. Servers you add with --scope user are stored in ~/.claude.json and work in every project. The default local scope is also kept in ~/.claude.json, for the current project only.

Related guides and tools