Claude Code MCP Server Configuration: Add Servers, Pick a Stack, Stay Small Claude Code users can configure MCP servers to give the AI access to external tools like GitHub, Context7, and Playwright, using commands such as 'claude mcp add' with scopes and verification via 'claude mcp list'. The guide emphasizes starting with a small stack to manage context costs and warns against committing secrets into .mcp.json. Claude can draft the perfect PR description and still can’t open your repo, check the live docs, or click through the UI you just shipped. The model isn’t lazy. You never gave it a door into the systems where the work actually lives. MCP Model Context Protocol is how Claude Code calls external tools repos, docs, browsers, databases through configured servers. For Claude Code MCP server configuration , use claude mcp add or claude mcp add-json syntax can depend on your CLI version , choose --scope user or --scope project project configs often live in .mcp.json , then verify with claude mcp list or /mcp. Start with a small stack such as GitHub + Context7 + Playwright. More servers mean more context cost. Always cross-check commands against Claude Code MCP docs https://code.claude.com/docs/en/mcp and the MCP connector https://platform.claude.com/docs/en/agents-and-tools/mcp-connector notes plus claude mcp --help on your machine. Picture a workshop where the craftsperson is brilliant and trapped. They can sketch every cut on paper. The saws, routers, and measuring tools sit behind locked cabinet doors. Every time they need a real measurement, someone has to walk the tool in by hand, describe what it saw, and walk it out again. Work slows. Mistakes multiply. The craftsperson starts inventing dimensions that “should” be right. That locked-cabinet problem is what MCP Model Context Protocol is for. MCP is a shared way for an AI host to talk to external tool servers so the model can act in real systems instead of only predicting text. In Claude Code, those servers are how you add MCP access to GitHub, documentation look-ups, browser automation, databases, and more. People searching claude code mcp server , claude code mcp configuration , or claude code add mcp are usually stuck in the same place: the model can write code, but it cannot touch the systems that prove the code. Keep three roles straight. The host is the app that owns the session, which here is Claude Code itself. The client is the bridge inside that host which speaks MCP. The server is the separate process or endpoint that actually exposes tools, such as GitHub MCP, Context7, or Playwright. Local servers often run over stdio standard input/output: the host starts a process and talks to it on pipes . Remote servers often use HTTP sometimes with streaming/SSE-style transports, depending on the server . You do not need to memorize transport names to ship. You do need to know whether your server is “a command I run locally” or “a URL I authenticate to.” Searchers typing claude mcp desktop or how to use mcp with claude desktop are often mixing products. Claude Code is the terminal agent that lives next to your git tree, configured with claude mcp add, scopes, and project files. Claude Desktop is the chat app, configured through its own app settings. When a blog says “open Settings → MCP,” check which product the screenshots show. This guide is for Claude Code . You need a working Claude Code CLI in a real project directory. If install is still fuzzy, finish that first planned: Install Claude Code . MCP configuration assumes you can already open a session. Many MCP servers launch via npx, uvx, Docker, or a binary on your PATH. Community write-ups often assume Node.js 18+ and a healthy shell path. Treat those as environment hypotheses : confirm what your chosen server README requires before you debug Claude. If a server “installs” but never starts, the first suspect is usually not Claude. It is a missing runtime, a bad command path, or a token that never got into the environment. GitHub, Supabase, PostHog, and friends need secrets: personal access tokens, OAuth, API keys. Put secrets in environment variables or the mechanism your CLI documents. Do not commit tokens into .mcp.json and push them. Rule of thumb: if the secret would make you nervous in a Slack screenshot, it does not belong in a shared config file in plaintext. This is the core of claude code add mcp server / add mcp to claude code searches. Start with the CLI so the config lands where Claude Code expects it: claude mcp --helpclaude mcp list Exact subcommands and flags move. If your help output disagrees with a blog from last month, trust your binary. Two patterns show up constantly in 2025–2026 guides: Illustrative shapes verify against your CLI and the server’s current README : Pattern A: add shape varies by transport and version claude mcp add --transport http