WIPIVERSE All articles

Maricet Espinosa

Model Context Protocol (MCP) is an open standard and open-source framework introduced by Anthropic in November 2024 that provides a standardized way for artificial intelligence (AI) applications, particularly large language models (LLMs), to connect with external data sources, tools, and systems. It is often described as a "USB-C port for AI applications" — a universal interface that replaces fragmented, custom integrations with a single protocol.

Overview

MCP was created by Anthropic engineers David Soria Parra and Justin Spahr-Summers, and was open-sourced on November 25, 2024. In March 2025, Anthropic donated the protocol to the Agentic AI Foundation (AAIF), a directed fund under the Linux Foundation, co-founded by Anthropic, Block, and OpenAI, with support from Google, Microsoft, Amazon Web Services, Cloudflare, and Bloomberg.

The protocol is designed to address the problem of AI models being "trapped behind information silos and legacy systems." Before MCP, each new data source required its own custom implementation, making it difficult to build connected AI systems at scale.

Architecture

MCP follows a client-server architecture with three key participants:

  • MCP Host: An AI application (e.g., Claude Desktop, Visual Studio Code, Cursor) that initiates and manages connections to one or more MCP servers.
  • MCP Client: A component within the host that maintains a dedicated connection to a specific MCP server.
  • MCP Server: A program that provides context, data, and capabilities to clients.

The architecture consists of two layers:

  1. Data Layer: Defines a JSON-RPC 2.0-based protocol for client-server communication, including lifecycle management and core primitives.
  2. Transport Layer: Manages communication channels, supporting two transport mechanisms:
    • Stdio transport: Uses standard input/output streams for local process-to-process communication.
    • Streamable HTTP transport: Uses HTTP POST with optional Server-Sent Events (SSE) for remote server communication, supporting OAuth and other authentication methods.

Core Primitives

MCP defines three core primitives that servers can expose:

  1. Tools: Executable functions that AI applications can invoke to perform actions (e.g., file operations, API calls, database queries). Tools are model-controlled — the language model can discover and invoke them automatically based on context. Each tool has a unique name, description, and JSON Schema defining its input parameters.

  2. Resources: Data sources that provide contextual information to AI applications (e.g., file contents, database records, API responses). Resources are identified by URIs and can be fetched or subscribed to for updates.

  3. Prompts: Reusable templates that help structure interactions with language models (e.g., system prompts, few-shot examples). Prompts can be dynamically generated by servers.

Clients can also expose primitives to servers:

  • Sampling: Allows servers to request LLM completions from the client's host application.
  • Roots: Server-initiated inquiries into URI or filesystem boundaries.
  • Elicitation: Server-initiated requests for additional information from users.

Key Features

  • Stateful connections with capability negotiation during initialization
  • Pagination support for listing tools, resources, and prompts
  • Notifications for real-time updates (e.g., when the list of available tools changes)
  • Progress tracking for long-running operations
  • Cancellation support
  • Error reporting with structured error handling
  • Logging capabilities

Security and Trust

MCP emphasizes several security principles:

  • User consent and control: Users must explicitly consent to 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 require appropriate caution. Descriptions of tool behavior (annotations) should be considered untrusted unless from a trusted server.
  • LLM sampling controls: Users must explicitly approve any LLM sampling requests.

Ecosystem and Adoption

MCP has broad ecosystem support. AI assistants like Claude and ChatGPT, development tools like Visual Studio Code, Cursor, Zed, Replit, Codeium, and Sourcegraph all support MCP. Pre-built MCP servers are available for popular enterprise systems including Google Drive, Slack, GitHub, Git, Postgres, and Puppeteer.

Early adopters include Block (Square) and Apollo. The protocol is maintained through the official GitHub repository at github.com/modelcontextprotocol, which contains the specification, schema definitions, SDKs, and reference server implementations.

Relationship to Other Standards

MCP takes inspiration from the Language Server Protocol (LSP), which standardized how development tools add support for programming languages. Similarly, MCP aims to standardize how AI applications integrate with external context and tools across the entire AI ecosystem.

Browse

More topics to explore

    Browse all articles