Skip to content

Your First Server

Everything so far has been files: knowledge the agent reads. MCP (Model Context Protocol) adds connections: typed tools and live data from systems outside the agent. The signal that you need one is catching yourself copy-pasting data from another tool into the chat. Skills carry knowledge; MCP carries capability. They compose, and this part ends with skills that build MCP servers.

From your shell (not inside a session):

Terminal window
claude mcp add --transport http claude-code-docs https://code.claude.com/docs/mcp

Anatomy: add · transport (http for remote URLs) · a name you pick · the URL.

Terminal window
claude mcp list

Five statuses: ✓ Connected · ! Needs authentication · ✗ Failed to connect · ✗ Connection error · ⏸ Pending approval.

> Use the claude-code-docs server to look up what MCP_TIMEOUT does.

First tool use prompts for permission; tool calls are labeled with the server name.