Jump to content

Model Context Protocol

From Open Lakehouse Wiki
Model Context Protocol
Developer Agentic AI Foundation (Linux Foundation); created by Anthropic
Initial release 2024
Latest release Specification 2026-07-28
(2026-07-28)
Type Protocol for connecting AI applications to data and tools
License Apache License 2.0 for new contributions (transitioning from MIT)
Website modelcontextprotocol.io
Repository github.com/modelcontextprotocol/modelcontextprotocol
Related Agentic lakehouse, Data catalog, Spark Declarative Pipelines
Last verified 22 November 2026 against the Model Context Protocol specification revision 2026-07-28 on modelcontextprotocol.io and its GitHub release.

The Model Context Protocol (MCP) is an open protocol that connects applications built on large language models (LLMs) to external data sources and tools. MCP defines a standard way for an application to share context with a model, expose tools that the model can call, and build workflows from several integrations.[1] In an agentic lakehouse, MCP is one way for an AI agent to look up tables in a data catalog, run queries and check pipelines through tools that a server exposes.

Architecture

MCP uses a client-host-server architecture. The host is the LLM application; it creates and manages clients, enforces security policy and consent, and coordinates the model. Each client lives inside the host and talks to exactly one server. A server provides context and capabilities, and can run as a local process or as a remote service.[2]

The MCP design keeps servers isolated. A server receives only the context it needs, the full conversation stays with the host, and a server cannot see into other servers; the host controls any interaction between them.[2]

Base protocol

MCP messages use JSON-RPC 2.0.[1] In revision 2026-07-28, MCP is stateless: every request carries its own protocol version and client capabilities in its _meta field, and servers advertise their capabilities in response to a server/discover request.[2] Revisions up to 2025-11-25 instead opened a session with an initialize handshake. A server or client may support both styles, and the specification gives rules for detecting which style the other side uses.[3]

Server features

Servers offer three primitives, each controlled by a different party.[4]

Primitive Controlled by Purpose
Tools The model Functions the model can call to take actions or retrieve information
Resources The application Structured data or content attached as context
Prompts The user Templates or instructions the user invokes, such as slash commands

A client lists a server's tools with tools/list and calls one with tools/call. Each tool has a name, a description and an input schema written in JSON Schema, and may declare an output schema for structured results.[5]

Client features

Clients may offer elicitation, through which a server asks the user for more information.[1] In revision 2026-07-28, such requests arrive inside a server's reply as an InputRequiredResult. Sampling and roots are deprecated as of that revision.[2]

Transports

The specification defines two standard transports. With stdio, the client launches the server as a subprocess and exchanges newline-delimited JSON-RPC messages over standard input and output. With Streamable HTTP, each message is an HTTP POST to one MCP endpoint, and replies come back as a JSON object or a server-sent events stream for that request. Custom transports are allowed if they keep the JSON-RPC format and message patterns.[6]

Extensions

Optional extensions add functionality beyond the core protocol and must be supported by both sides. Examples named in the specification include Tasks, for long-running asynchronous operations, and MCP Apps, for interactive interface elements.[1]

Use in an open lakehouse

In an open lakehouse, an MCP server can stand between an agent and lakehouse systems, so that the agent acts through a defined set of tools whose inputs the server validates and whose access the server controls.[5] Examples of such tools include the following.

  • Catalog lookups. A server can expose tools or resources that list catalogs, schemas and tables in a data catalog such as Unity Catalog or Apache Polaris, or return a table's schema, before the agent writes a query.
  • Running a query. A tool can take SQL as an argument, run it on an engine such as Apache Spark, Trino or DuckDB, and return rows as structured content that matches the tool's output schema.[5]
  • Dry-running a pipeline. A tool can wrap spark-pipelines dry-run from Spark Declarative Pipelines, which checks a pipeline for syntax, analysis and graph errors without reading or writing data.[7] The agent can then fix errors before a real run spends compute.

The following request calls a hypothetical run_query tool. As in the specification's own examples, the required _meta fields are left out for brevity.[5]

{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "run_query",
    "arguments": {
      "sql": "SELECT region, count(*) FROM sales.orders GROUP BY region"
    }
  }
}

The openlakehouse.io agentic lakehouse guide covers how agents, catalogs and pipelines fit together in more depth.

History

Anthropic announced and open sourced the Model Context Protocol on 25 November 2024. The announcement included the specification and software development kits (SDKs), local MCP server support in the Claude Desktop apps, and a repository of open source servers.[8]

On 9 December 2025, Anthropic donated MCP to the newly formed Agentic AI Foundation, a directed fund under the Linux Foundation, where MCP became a founding project.[9]

Specification revisions are named by date. Published revisions include 2024-11-05, 2025-03-26, 2025-06-18, 2025-11-25 and 2026-07-28.[10] The project is moving its license from MIT to the Apache License 2.0; new code and specification contributions are licensed under Apache 2.0.[11]

Limitations

MCP does not enforce security at the protocol level. The specification states that tools represent arbitrary code execution, that hosts must obtain user consent before invoking a tool, and that implementors should build their own consent, authorization and access controls.[1] It recommends a human in the loop who can deny tool calls, and clients must treat tool annotations as untrusted unless they come from a trusted server.[5]

Revision 2026-07-28 changed how sessions work. Clients that only use the older initialize handshake cannot talk to servers that only implement the newer revision.[3] Tool names are unique only within one server, so a host that combines several servers should handle name collisions, for example by adding a server prefix.[5]

Because MCP has no protocol-level session in revision 2026-07-28, a server that keeps state across calls, such as an open database transaction, must return an explicit handle and receive it on later calls.[5]

See also

References

  1. ↑ 1.0 1.1 1.2 1.3 1.4 Specification. Model Context Protocol.Retrieved 2026-11-22.
  2. ↑ 2.0 2.1 2.2 2.3 Architecture. Model Context Protocol.Retrieved 2026-11-22.
  3. ↑ 3.0 3.1 Versioning and Compatibility. Model Context Protocol.Retrieved 2026-11-22.
  4. ↑ Server Features: Overview. Model Context Protocol.Retrieved 2026-11-22.
  5. ↑ 5.0 5.1 5.2 5.3 5.4 5.5 5.6 Tools. Model Context Protocol.Retrieved 2026-11-22.
  6. ↑ Transports: Overview. Model Context Protocol.Retrieved 2026-11-22.
  7. ↑ Spark Declarative Pipelines Programming Guide. Apache Software Foundation.Retrieved 2026-11-22.
  8. ↑ Introducing the Model Context Protocol. Anthropic, 2024-11-25.Retrieved 2026-11-22.
  9. ↑ MCP joins the Agentic AI Foundation. Model Context Protocol blog, 2025-12-09.Retrieved 2026-11-22.
  10. ↑ Releases. GitHub.Retrieved 2026-11-22.
  11. ↑ LICENSE. GitHub.Retrieved 2026-11-22.