Learning resourcesReviewed · Anthropic

Connect to MCP servers: Claude Code quickstart

This guide helps Claude Code users connect external tools, but it assumes Claude Code is already installed and authenticated. It explains hosted and local MCP servers, configuration scopes, sign-in, connection checks and common failures.

Researched 13 Nov 2026

In short.

This guide helps beginners and developers connect external tools to Claude Code, but it assumes an installed, authenticated client and working server dependencies. It starts with a hosted documentation server, then covers a local Playwright browser server, Sentry sign-in and shared project configuration. Its most useful distinctions are between saving a server entry and establishing a working connection, and between configuration that applies to one project, a team or all your projects. The procedures are documented examples; connection success, compatibility and costs have not been assessed through execution.

Researched and written by an AI model and checked by a second AI model. How it works

The scope is the complete page at [https://code.claude.com/docs/en/mcp-quickstart.md], including the hosted-server walkthrough, scope and storage guidance, local and authenticated examples, manual configuration, other-surface notes, troubleshooting and next-step references. Linked pages, repositories, documentation-index contents and service terms are excluded. Commands and expected statuses are documented procedures, not execution results. Live availability, successful task completion, costs and redistribution rights remain unestablished.

The overview

Identity

Connect to MCP servers is a Claude Code documentation guide at [https://code.claude.com/docs/en/mcp-quickstart.md]. It teaches how to add an MCP server, check its connection, use its tools and locate its configuration.

MCP, short for Model Context Protocol, lets Claude Code access tools supplied by separate servers. This resource is a tutorial for configuring those connections; it does not itself provide a server or installable integration.

Assessment

The guide is useful for a first MCP connection and for diagnosing common configuration problems. It begins with a hosted documentation server that requires no authentication, then introduces local processes and service sign-in as separate cases.

Its practical strength is explaining what each result establishes: an add confirmation means configuration was saved, while connection status and a server-labeled tool call provide further checks. It also explains where configuration lives, which helps resolve servers appearing in one project but disappearing in another.

It provides no benchmark or evidence of task accuracy, reliability or productivity gains. Those outcomes remain unassessed.

Users

Beginners who already have Claude Code working can follow the initial documentation-server example without arranging another account or local server runtime. The page explains command arguments and expected statuses rather than assuming prior MCP knowledge.

Experienced developers and teams can use the configuration-scope table, manual .mcp.json example, environment-variable guidance and troubleshooting details. The Playwright example also suggests checking that a page on a local development server still renders after a change, or having Claude walk through a bug report step by step.

Readers seeking to build an MCP server, design organization-wide access controls or compare different AI coding assistants will need additional resources. This page links to some of those topics without teaching them in depth.

Capabilities

The guide covers adding, listing, inspecting and removing servers; choosing configuration scope; writing server entries manually; completing OAuth sign-in; and supplying static authorization headers or environment variables.

Its examples illustrate three tool sources: documentation search through a hosted server, browser navigation through a local Playwright server, and access to Sentry through an authenticated hosted service. Actual available tools and accessible data depend on the chosen server and credentials.

Troubleshooting covers missing configurations, malformed entries, failed connections, startup timeouts, duplicate names, missing tools, unapplied file changes and OAuth problems.

Using it

Requirements

The starting requirements are Claude Code installed and authenticated, plus a terminal opened in a project directory. The page says an empty directory is sufficient. Hosted examples require access to their server endpoints; service-specific authentication may also be necessary.

For the local Playwright example, the page specifies Node.js 18 or later and uses npx to obtain and start the package. It says the server uses an installed Chrome browser by default and shows how to request Firefox instead.

Project-scoped servers require user approval before connecting. Organization-managed policies can block a server, and some servers require API keys or other environment variables. The guide does not establish one minimum Claude Code version covering every example and diagnostic behavior.

Mechanism

An HTTP connection reaches a hosted MCP server at a URL. A local stdio connection starts a program as a subprocess and communicates through its standard input and output. The server supplies tools that Claude can choose during a conversation.

Configuration scope controls where a server entry applies. Local scope, the default, stores it in the current project's entry in ~/.claude.json. User scope stores it under the top-level mcpServers key in that file and applies across projects. Project scope stores it in .mcp.json at the project root for sharing through version control.

If CLAUDE_CONFIG_DIR is set, the page says Claude Code uses .claude.json inside that directory. Connected servers also occupy some conversation context through their tool names and instructions; the page does not quantify that overhead.

Setup

For the initial example, run claude mcp add --transport http claude-code-docs <server-url> in the terminal, replacing <server-url> with [https://code.claude.com/docs/mcp]. Run claude mcp list to inspect the connection, then start a session with claude. The guide places registration outside an active Claude Code conversation.

Use claude mcp get claude-code-docs to inspect the saved definition and scope. Changing scope requires removing the existing entry and adding it again with --scope user or --scope project. Project scope writes .mcp.json, which teammates must approve when they encounter the server.

For manual configuration, the file's mcpServers object contains named entries. HTTP entries use type and url; stdio entries use type, command and args. Restart the session after editing .mcp.json. The optional cleanup command is claude mcp remove claude-code-docs.

Example

After registering the documentation server, the guide suggests asking Claude to use claude-code-docs to explain MCP_TIMEOUT. Look for a tool call labeled with that server name: this identifies the documented route used to retrieve the answer. No resulting answer or successful connection was observed here.

For browser automation, the documented command is claude mcp add playwright -- npx -y @playwright/mcp@latest. Everything after -- is the subprocess command, and -y allows npx installation without a confirmation prompt. The example task asks Playwright to open [https://example.com] and report its page title.

For Sentry, register its hosted endpoint [https://mcp.sentry.dev/mcp], open /mcp inside Claude Code, select the server and choose Authenticate. The page then suggests asking which Sentry projects the account can access. Actual results depend on successful authentication and account permissions.

Assessment & evidence

Limitations

Saving configuration does not prove that a subprocess starts, an endpoint responds or tools can be discovered. The page distinguishes connection failures, authentication requirements, tool-discovery failures, disabled servers and enterprise policy blocks.

The Playwright command uses @latest rather than a fixed package version, so the example does not identify a reproducible package release. An initial npx download can also delay startup. The page documents a default 30-second startup timeout and shows MCP_TIMEOUT=60000 as a way to allow 60 seconds.

A missing tool list may indicate a required environment variable, while configuration edits require a session restart. Broader compatibility, server security, data-handling practices and dependable completion of real work are not established by this tutorial.

Reasoning

The initial hosted example reduces setup variables because it requires neither a local server runtime nor a separate sign-in. This makes it a useful starting point for distinguishing basic MCP configuration problems from dependencies introduced by a particular service.

Scope deserves an early decision. Local scope suits a personal connection for one project; user scope avoids repeating registration across projects; project scope shares the definition with teammates while retaining an approval step. These are practical implications of the documented storage and availability rules.

Naming the server in the demonstration prompt and inspecting its labeled tool call makes the connection easier to identify. That observation would establish which tool was invoked, not whether the returned answer was accurate.

Alternatives

The page describes alternatives to CLI registration within Claude Code: the desktop app's Connectors UI, VS Code integration and connectors associated with a Claude.ai account. It distinguishes the separate Claude Desktop chat app and documents importing its server configuration on macOS or WSL.

For cloud use, it distinguishes sessions with a single repository's .mcp.json from project cloud threads that use Claude.ai connectors. These paths have different configuration behavior and are not interchangeable instructions.

The broader MCP reference is linked at [https://code.claude.com/docs/en/mcp.md]. Its contents, other clients and competing tutorials are not assessed, so no comparative ranking is supported.

Evidence

The supporting source is the complete documentation page at [https://code.claude.com/docs/en/mcp-quickstart.md], captured on 12 November 2026. It supplies command examples, expected status messages, configuration locations and explanations of common failures.

Those examples describe intended behavior rather than measured outcomes. No commands were executed, servers connected, browser tasks performed or authentication flows completed. Linked documentation, repositories and service pages are outside the evidence available for this report.

Access & freshness

Costs

The page provides no prices, billing terms, quotas or usage estimates for Claude Code, the hosted documentation server, Playwright or Sentry. Total cost is unknown.

The documentation server requiring no authentication and the Playwright example requiring no account do not establish that every part of either workflow is free. Local execution also uses the user's machine, but resource consumption is not quantified.

Rights

The supplied page does not state a documentation license or grant redistribution rights. It also does not establish the licenses or service terms governing the example servers, packages or accessed data.

Permission to modify or redistribute these materials is therefore unknown from this page. Linking to a repository or showing an installation command does not supply those missing terms.

Freshness

The capture timestamp is 2026-11-12T22:20:19.742Z. The page does not establish its publication date, last substantive update or the latest available Claude Code release.

Several troubleshooting details depend on version. The page says failure details improved in v2.1.219, some reachable HTTP servers could time out before v2.1.299, and certain replies using protocol revision 2026-07-28 could cause tool-discovery failures before v2.1.302.

These thresholds explain why older installations may show different behavior; they are documentation claims, not verified compatibility results. Live endpoint availability and subsequent documentation or package changes remain unknown.

Actions

Start with the hosted documentation example in the intended project. Inspect its status and definition, then request a task that explicitly names the server and check the tool-call label. Choose local, user or project scope according to where the connection should apply.

If connection fails, inspect claude mcp list and claude mcp get <name> before changing settings. For HTTP servers, compare the full configured endpoint with the server's documentation. For local servers, the guide recommends running the configured subprocess command directly to expose missing dependencies.

Before adopting the Playwright or authenticated-service examples, establish the required runtime, browser, credentials and service terms. Confirm pricing separately because this page does not supply it. Remove unused servers to avoid retaining their tool definitions and instructions in session context.

Evidence for this report

selected-page.txtselected · checked 2026-11-12