AI Tools Developer Tools

MCP LangChain Support: Stateless Protocol, Elicitation, and Caching Explained

MCP LangChain support moves into the core package, adding a stateless protocol, interrupt-based elicitation, and cached tool lists.

Abstract diagram representing MCP LangChain support connecting agents to tools through a stateless protocol
AI-generated editorial illustration.

LangChain has released updated MCP LangChain support, moving Model Context Protocol integration into the core langchain package and rebuilding it around the newer, stateless version of the spec. The change, described in a LangChain blog post by Sydney Runkle, replaces the separate langchain-mcp-adapters install with a first-class langchain.mcp module built on FastMCP, the client library that handles transport, authentication, and protocol negotiation underneath.

Why the Old Session Model Became a Bottleneck

LangChain’s post explains that the original MCP spec was built around sessions: a client and server would handshake, the server would issue a session ID, and every subsequent call had to carry that ID. That tied a client to the specific server instance that created the session, which meant operators running MCP servers at scale needed sticky routing and a shared session store just to keep connections alive. A redeploy could kill active sessions outright.

The Model Context Protocol’s July 2026 revision, the largest rewrite since the protocol launched according to LangChain’s account, introduced a stateless core. LangChain describes this as one of the most requested changes from developers seeking better reliability and scalability. With no session to pin a client to a specific server instance, redeploying no longer disrupts active calls, since there is nothing tied to a single running process.

What Moved Into langchain.mcp

MCP support now installs as an extra on the main package with pip install "langchain[mcp]" rather than a standalone adapter package. The previous MultiServerMCPClient class collapses into a single MCPAdapter, and LangChain points teams migrating from the older package to its migration guide for a feature-by-feature mapping.

Once connected, an MCPAdapter exposes ordinary LangChain tools through list_tools(), so they can be passed directly into create_deep_agent, create_agent, or a custom graph. Each connection can also be scoped through FastMCP’s ClientGroup, which lets a team give different servers different protocol versions and credentials. LangChain’s example shows a billing server pinned to the older handshake-based protocol with OAuth 2.1, alongside a docs server negotiating the newest protocol version with a bearer token. Tool names get prefixed by server, so a search tool on each system arrives distinctly named, such as billing_search and docs_search.

FastMCP Handles the Protocol Split

Because MCP now effectively has two eras, older handshake-based servers and newer stateless ones, the client needs to negotiate whichever protocol a given server supports. LangChain’s post states that FastMCP does this per connection automatically, attempting the newer protocol first and falling back to the older handshake when a server has not upgraded, without requiring changes to application code.

FastMCP’s client surface is exposed directly to developers building with langchain.mcp, covering authentication methods including bearer tokens, full OAuth 2.1 flows, and machine-to-machine credentials, along with transport options like streamable HTTP, stdio, and in-memory connections. LangChain also notes that a FastMCP server instance can serve as a valid adapter target on its own, letting an agent run against a real MCP server in-process without a subprocess or socket, which is aimed at simplifying testing.

Elicitation as a LangGraph Interrupt

Elicitation is MCP’s mechanism for human-in-the-loop tool calls, cases where a tool cannot complete without asking the caller a question, such as confirming a delete or supplying a missing parameter. LangChain’s post explains that the stateless spec turned elicitation into a retryable request-response round rather than a connection held open while waiting, which mapped naturally onto the interrupt primitive already used in LangGraph.

In practice, an agent run pauses, a human reviewer supplies an answer through a Command with a resume payload, and the run continues from where it stopped. LangChain notes this requires no additional setup beyond a checkpointer to hold the paused state. Documentation referenced in the post covers declining an elicitation request and gating destructive tool actions behind the same approval step.

Cached Tool Lists Reduce Startup Overhead

Every agent run has historically needed a round trip to discover which tools a server exposes before the model can act. Under the new spec, servers can declare how long their tool list remains valid, and LangChain’s implementation adds a cache=True option on the FastMCP client that respects those freshness hints. Calling list_tools(cache_mode="use") serves a cached catalog while the server’s stated TTL holds, storing fresh results as they are fetched. LangChain specifies that the cache is scoped per client, so one client instance per caller keeps tool catalogs from mixing across different callers.

Rollout Status and Adoption Considerations

LangChain states that the namespace requires langchain[mcp] version 1.4.0 or later and is currently in beta, meaning the API may still change before it stabilizes. Python support is available now, with TypeScript support described as coming later. Because FastMCP negotiates per connection, teams do not need every server they use to have adopted the 2026-07-28 spec at once; older, session-based servers continue to work alongside newer stateless ones through the same adapter.

LangChain’s post cites MCP’s official Tier 1 SDKs approaching half a billion downloads a month, with tool calls from ChatGPT users reportedly up 98x across 2026, as context for why the protocol’s scaling limitations under the session model mattered enough to warrant a rewrite. Those figures come from LangChain’s own account of the announcement, and readers evaluating the migration should check the current langchain.mcp documentation directly, since beta status means interfaces like MCPAdapter and ClientGroup could change before a stable release.

Sources