Client integration · coding agent
Claude Code
Scoped MCP configuration for Anthropic's terminal coding agent, via CLI or .mcp.json.
Overview
Claude Code is Anthropic's agentic coding tool. It supports stdio, HTTP, and legacy SSE MCP transports and three configuration scopes: local, project, and user. Project scope writes .mcp.json at the repository root; user and local scopes are stored in ~/.claude.json and are usually managed with `claude mcp` commands. Claude Code documents ${VAR} and ${VAR:-default} expansion in .mcp.json.
Configuration locations
| Scope | Path or setting | Note |
|---|---|---|
| local | ~/.claude.json | Default local scope for the current project; managed with the CLI. |
| project | .mcp.json | Repository-root file, commonly committed and shared with the team. |
| user | ~/.claude.json | Available across projects; managed with the CLI. |
Paths are documented by the vendor and may change. Confirm the current path in your installed version.
Local and remote servers
Local stdio servers use command, args, and env in .mcp.json. Remote servers use type: "http" or type: "sse", a url, and optional headers. The official docs describe SSE as deprecated, so prefer Streamable HTTP for new remote servers.
- Transports
- stdio, Streamable HTTP, Legacy SSE
- Authentication
- Environment variable expansion; HTTP headers; OAuth (client flow)
- Category
- coding agent
- Vendor
- Anthropic
Generate a config for Claude Code
The adapter emits this client's documented structure and validates transport, scope, names, and credential placeholders.
Open the generatorCLI and workflow notes
- `claude mcp add --transport stdio <name> -- <command> [args...]` adds a stdio server.
- `claude mcp add --transport http <name> <url> --header "Authorization: Bearer ${TOKEN}"` adds a remote server.
- `--scope local|project|user` selects the configuration scope.
- `claude mcp list`, `claude mcp get`, and `claude mcp remove` manage registrations; `/mcp` shows status in a session.
Tool permissions
Claude Code manages tool approval through its permission system. Project-scoped servers are presented for approval. Server tools can still read files, call APIs, or modify remote systems, so review each server's scope and keep credentials out of committed files.
Compatibility notes
- Supports stdio, HTTP, and SSE; SSE is documented as deprecated.
- Project configuration uses .mcp.json; local and user scopes share ~/.claude.json.
- ${VAR} and ${VAR:-default} expansion is documented for .mcp.json.
- Remote entries require a type field; url-only entries are not the documented format.
Limitations
- Legacy SSE is deprecated; use Streamable HTTP when available.
- User-scope configuration is stored in a managed file and should be edited through the CLI.
- MCP server approvals and tool permissions are client policy decisions, not part of the config output.
Servers with this client format
91 catalog entries list this client as a supported configuration target.
Sources & evidence
- code.claude.com/docs/en/mcpOfficial documentation · checked Oct 23, 2026 · documented
Official documentation covers mcpServers JSON, scopes, transport types, CLI commands, headers, and environment variable expansion.