🗓️ 21032026 2100

MODEL CONTEXT PROTOCOL

A universal open protocol that standardizes how LLM applications connect to external data sources and tools — the "USB-C for AI"

What Is MCP?

The Model Context Protocol (MCP) provides a standardized way for AI applications to connect to external tools, data sources, and services. Instead of building custom integrations for each tool, developers implement one protocol and gain access to a growing ecosystem of MCP servers.

Analogy: just as USB-C gives you one port that works with many peripherals, MCP gives your AI application one protocol that works with many tool servers.

Architecture

┌─────────────────────────────────────────────┐
│ MCP Host │
│ (Claude Desktop, IDE, AI application) │
│ │
│ ┌────────────┐ ┌────────────┐ │
│ │ MCP Client │ │ MCP Client │ ... │
│ └─────┬──────┘ └─────┬──────┘ │
└─────────┼───────────────┼───────────────────┘
│ │
┌─────▼──────┐ ┌─────▼──────┐
│ MCP Server │ │ MCP Server │
│ (GitHub) │ │ (Postgres) │
└─────┬──────┘ └─────┬──────┘
│ │
Local/Remote Local/Remote
Data Source Data Source
  • Host: the AI application that wants to access external data/tools
  • Client: maintains a 1:1 connection with a specific server
  • Server: exposes tools, resources, and prompts via the MCP protocol

Transport Protocols

TransportUse CaseHow It Works
stdioLocal servers, CLI toolsHost spawns server as subprocess; communicates via stdin/stdout
Streamable HTTPRemote servers, shared deploymentsServer exposes HTTP endpoint; supports SSE for streaming

Core Primitives

PrimitiveDescriptionControlExample
ToolsFunctions the LLM can invokeModel-controlled (LLM decides when to call)search_files, run_query
ResourcesData the client can readApplication-controlled (client decides when to fetch)file://config.json, db://users
PromptsReusable prompt templatesUser-controlled (user selects which to use)"Summarize this PR", "Explain this error"

Relation to Agentic Patterns

MCP acts as the infrastructure layer that enables llm_tool_use at scale. Instead of hardcoding tool definitions per agent, agents connect to MCP servers that expose capabilities dynamically. This is especially powerful for:


References