The Model Context Protocol (MCP) is an open standard and open-source protocol introduced by Anthropic in November 2024 that standardizes how large language model (LLM) applications connect to and interact with external data sources, tools, and systems. It is often described as a "USB-C port for AI applications" — providing a universal, standardized interface for AI systems to access the context they need.
Overview
MCP addresses a fundamental limitation of frontier AI models: even the most sophisticated models are constrained by their isolation from data, which is often trapped behind information silos and legacy systems. Before MCP, every new data source required its own custom integration, making truly connected systems difficult to scale. MCP replaces these fragmented, one-off integrations with a single, open protocol.
The protocol is hosted by The Linux Foundation and is available as an open-source project on GitHub under the modelcontextprotocol organization.
Architecture
MCP uses a client-server architecture built on JSON-RPC 2.0 messages over stateful connections. The architecture consists of three primary components:
- Hosts: LLM applications (e.g., Claude Desktop, ChatGPT) that initiate connections.
- Clients: Connectors within the host application that communicate with servers.
- Servers: Services that provide context, data, tools, and capabilities to AI systems.
The protocol draws inspiration from the Language Server Protocol (LSP), which standardized how development tools add support for programming languages. MCP similarly standardizes how AI applications integrate with external context and tools.
Core Features
Server Features
Servers can offer any combination of the following:
- Resources: Context and data for the user or AI model to use (e.g., files, database records, API responses).
- Prompts: Templated messages and workflows for users.
- Tools: Functions that the AI model can execute (e.g., search engines, calculators, APIs).
Client Features
Clients may offer the following to servers:
- Sampling: Server-initiated agentic behaviors and recursive LLM interactions.
- Roots: Server-initiated inquiries into URI or filesystem boundaries.
- Elicitation: Server-initiated requests for additional information from users.
Additional Utilities
- Configuration management
- Progress tracking
- Cancellation support
- Error reporting
- Logging
Security and Trust
MCP enables powerful capabilities through arbitrary data access and code execution, which brings important security considerations:
- User Consent and Control: Users must explicitly consent to and understand all data access and operations.
- Data Privacy: Hosts must obtain explicit user consent before exposing user data to servers.
- Tool Safety: Tools represent arbitrary code execution and must be treated with caution. Hosts must obtain explicit user consent before invoking any tool.
- LLM Sampling Controls: Users must explicitly approve any LLM sampling requests.
SDKs and Implementations
Anthropic and the open-source community maintain official SDKs for multiple programming languages:
| Language | SDK |
|---|---|
| TypeScript | Official TypeScript SDK |
| Python | Official Python SDK |
| Java | Official Java SDK |
| Kotlin | Official Kotlin SDK |
| C# | Official C# SDK (maintained with Microsoft) |
| Go | Official Go SDK |
| PHP | Official PHP SDK (maintained with The PHP Foundation) |
| Ruby | Official Ruby SDK |
| Rust | Official Rust SDK |
| Swift | Official Swift SDK |
Ecosystem and Adoption
MCP has broad ecosystem support across a wide range of clients and servers:
- AI Assistants: Claude, ChatGPT
- Development Tools: Visual Studio Code, Cursor, Zed, Replit, Codeium, Sourcegraph
- Enterprise Systems: Pre-built MCP servers for Google Drive, Slack, GitHub, Git, Postgres, Puppeteer
- Early Adopters: Block (Square), Apollo
What MCP Enables
- Personalized AI Assistants: Agents can access calendars, Notion, email, and other personal tools.
- Code Generation: Tools like Claude Code can generate entire web applications from design files (e.g., Figma).
- Enterprise Chatbots: Connect to multiple databases across an organization for data analysis via chat.
- Physical World Integration: AI models can create 3D designs in Blender and interface with hardware like 3D printers.
Benefits
- For Developers: Reduces development time and complexity when building or integrating with AI applications.
- For AI Applications: Provides access to an ecosystem of data sources, tools, and apps, enhancing capabilities.
- For End-Users: Results in more capable AI applications that can access data and take actions on behalf of users.
History
MCP was created at Anthropic by David Soria Parra and Justin Spahr-Summers. It was announced and open-sourced on November 25, 2024. The protocol continues to evolve as a collaborative, open-source project with contributions from the broader community.