Intermediate 1 concept to know first · leads to 1

MCP

The Model Context Protocol connects Claude Code to outside tools and data, such as an issue tracker, a database or Figma, through servers that hand Claude new tools to call.

The animation needs JavaScript; every step is described below.

0:15

Know these first

1 concept · basics first
  1. Context

    The context window is everything Claude can see in a session: your messages, the files it reads, tool output and auto-loaded instructions. It fills as you work, and Claude Code compacts it when it gets full.

  2. MCP · you are here

Out of the box, Claude Code can read files, edit them and run commands. Anything outside your machine, like a ticket in your issue tracker, rows in a database or a Figma design, it only knows if you paste it in. MCP, the Model Context Protocol, is the open standard that fixes that: you connect an MCP server, and Claude can read from and act on that system directly.

A good rule from the docs: connect a server when you notice yourself copying data from another tool into chat.

How it works

An MCP server is a small program that speaks the protocol. Mostly it offers tools: actions with a name and an input schema, like create_issue or query. Claude calls them the same way it calls its built-in tools (see tool use): it picks one, sends arguments, and the result comes back into the conversation.

Servers can also offer resources, which you mention with @ like a file (@github:issue://123), and prompts, which show up as commands such as /mcp__github__list_prs.

A server either runs locally as a process on your machine (stdio) or remotely at a URL (HTTP).

How you connect one

claude mcp add --transport http notion https://mcp.notion.com/mcp
claude mcp add --transport stdio airtable -- npx -y airtable-mcp-server

The first adds a remote server; the second launches a local one (everything after -- is the command). Each server is saved at a scope:

  • Local (the default): just you, just this project, stored in ~/.claude.json.
  • Project: written to .mcp.json at the repo root, so your team shares it. In an interactive session, Claude Code asks before using them.
  • User: just you, in every project.

Inside a session, /mcp shows each server’s status and handles OAuth sign-in. Plugins can bundle MCP servers too.

The catch

Connecting a server means trusting it: Claude acts on what it returns, and a server that fetches outside content can expose you to prompt injection. Connect only servers you trust.

Tools also cost context. By default Claude Code uses tool search: only tool names load at the start, and full definitions are fetched when Claude needs one, so adding servers barely touches your context. Large tool results are capped too (25,000 tokens by default). The MCP docs cover the limits.

Where it sits

Before this

Context
MCP

Leads to

Plugins

The ideas underneath · Field Guide

Sources

  1. Connect Claude Code to tools via MCP . Claude Code docs: claude mcp add, transports, scopes, resources, tool search

Verified against the official Claude Code docs on October 1, 2026 · next review by January 1, 2027. Claude Code changes quickly; the docs are the source of truth.