1:1 mentoring with Big Tech AI engineers
RAG & MCP

MCP Architecture

MCP architecture deep dive: client-server model, protocol layers, message types, and connection lifecycle.

Last updated

4.1 — MCP Architecture & Components

Host-Client-Server: The Three-Role Pattern

Role What It Is Examples
Host The LLM application the user interacts with. Contains one or more MCP clients Claude Desktop, VS Code, Cursor, your custom app
Client A connector within the host that maintains a 1:1 stateful session with a single MCP server One client per connected MCP server. Handles capability negotiation
Server A service that exposes tools, resources, and prompts. Wraps databases, APIs, file systems Your CRM server, your Jira server, a DB query server

What MCP Handles vs. What You Handle

Related

More in RAG & MCP

Get full access to all 87+ sections with code examples, diagrams, and interactive animations.

Unlock Premium