Skip to Content

9. Model Context Protocol (MCP)

Connect to an existing MCP server (filesystem or GitHub) and exercise a tool through a supported client. Same mental model as tool calling — just with a client–server boundary.

Architecture

Understand the components:

ComponentRole
MCP HostYour application
MCP ClientManages connections
MCP ServerExposes tools and resources
Transport Layerstdio or HTTP/SSE

Build at least one MCP server that wraps a capability your agent needs.

!!! tip “When to use MCP” MCP makes sense when tools need to be shared across multiple agents or clients. For a single system, in-process tools are simpler.

Resources

MCP docs · Claude MCP · MCP specification