Glen

Join the waitlist

We onboard teams in waves. Leave your work email and we'll send your invite when your spot opens.

MCP servers in Claude Code

Claude Code stores MCP servers under an "mcpServers" object in ~/.claude.json. It also reads a project-scoped .mcp.json and supports adding servers from the command line with "claude mcp add". Each entry must declare either a "type" or a "command"; Claude Code refuses an entry that has neither. Remote servers connect natively over Streamable HTTP with OAuth.

Where the config lives

  • macOS / Linux: ~/.claude.json

Worked example: Fetch

Here's the exact config to add the Fetch MCP server to Claude Code. Every server in the directory has a ready-to-paste Claude Code config like this.

Add to ~/.claude.json

~/.claude.json
json
{
  "mcpServers": {
    "fetch": {
      "command": "uvx",
      "args": [
        "mcp-server-fetch"
      ]
    }
  }
}
Or via CLI
bash
claude mcp add fetch -- uvx mcp-server-fetch