Connecting an MCP Server to Extend Claude Code's Toolset
Claude Code's built-in tools, read, edit, search, run commands, are enough for most work on a local repository.
Search across all documentation pages
Claude Code's built-in tools, read, edit, search, run commands, are enough for most work on a local repository.
An MCP (Model Context Protocol) server extends that toolset with external capabilities, like querying a database or filing a ticket in an issue tracker, without leaving the same session.
Quick-reference recipe card - copy-paste ready.
# Add an MCP server to Claude Code (illustrative form)
claude mcp add <name> <command-to-start-the-server>
# List servers currently connected
claude mcp listWhen to reach for this:
A common shape for this: a session that needs to check an issue tracker for context before touching code.
# 1. Connect a server once for the project (exact flags depend on the
# server; check its own docs for the precise command it expects)
claude mcp add issue-tracker npx -y some-issue-tracker-mcp-server
# 2. Confirm it connected
claude mcp list
# issue-tracker connected
# 3. Start a normal session; the server's tools are now part of the toolset
claudeInside that session, a prompt like "look up ticket ENG-482 and fix the bug it describes" can now resolve the lookup through the connected server's tool, then fall straight into Claude Code's normal read-edit-run-verify loop for the code change itself.
What this demonstrates:
MCP is a big enough topic that it has its own dedicated sections on this site. This page is intentionally a preview, not the full picture:
| Topic | Where to go deeper |
|---|---|
| Core MCP concepts (servers, tools, resources, prompts) | mcp-core-concepts section |
| Building your own MCP server | building-mcp-servers section |
| Transport choices, authentication, tool schemas | Reference pages within those sections |
| Alternative | Use When | Don't Use When |
|---|---|---|
| Built-in tools only (read, edit, search, run) | The task is entirely local to the repo | The task needs data or actions from an outside system |
| Manual copy-paste from an external tool into the chat | A one-off lookup, no repeated need | The lookup or action happens often enough to be worth automating |
| A custom script invoked via the run step | The external interaction is simple enough for a one-off CLI call | The system needs structured, repeatable tool access across many sessions |
MCP stands for Model Context Protocol.
It is the protocol Claude Code uses to connect to external servers so their tools become part of a session's available toolset.
Built-in tools, read, edit, search, run commands, operate on the local repository and shell.
An MCP server's tools reach outside that, into whatever system the server was built to expose, like a database or an issue tracker.
No, once a server is connected, its tools are simply part of the toolset for that session.
Claude Code chooses between built-in and MCP tools based on what the task requires, the same way it chooses between any two built-in tools.
The mechanism stays the same: depending on your permission mode, some tool calls are auto-approved and others prompt for confirmation.
MCP tool calls participate in that same logic rather than following separate rules.
That depends entirely on what tools the server exposes.
Some servers offer read-only tools, others offer tools that create or modify records; check the specific server's documentation.
It is illustrative of the general shape, connect a server by name with a command that starts it.
Exact flags can vary by Claude Code version and by the server itself, so check current docs before relying on precise syntax.
This page is a basic-level preview.
The mcp-core-concepts section covers the underlying protocol in depth, and the building-mcp-servers section covers building one yourself.
Yes, multiple servers can be connected, and all of their tools become available alongside Claude Code's built-in tools for that session.
A tool call to that server will fail or the server won't appear as connected.
Verifying the connection with a status or list command after adding a server catches this before it disrupts a task.
Connecting is typically a one-time setup step for a project, not something repeated every session.
Once connected, the server's tools are available in subsequent sessions without reconnecting.
A one-off script works for a single call, but an MCP server gives Claude Code a structured, repeatable tool it can reuse across prompts and sessions without you writing a new script each time.
No, building a server is covered separately in the building-mcp-servers section.
This page only previews connecting to an existing one.
Stack versions: Written against the Claude model lineup current as of ~June 2026 - Claude Fable 5, Claude Opus 4.8, Claude Sonnet 5 (the default), and Claude Haiku 4.5. Model names, pricing, and product features move quickly - verify current specifics at platform.claude.com/docs before relying on them.
Reviewed by Chris St. John·Last updated Jul 16, 2026