---
title: "MCP in LangChain: Stateless Protocol, Elicitation, and More!"
description: "LangChain has moved MCP support into the main package as `langchain.mcp`, rebuilt on FastMCP to match the July 2026 stateless MCP spec, which drops sessions so remote servers no longer need sticky routing or a shared session store."
url: "https://swe.quest/articles/mcp-in-langchain-stateless-protocol-elicitation-and-more-3388dd33c4368371"
canonical: "https://www.langchain.com/blog/mcp-in-langchain-stateless-protocol-elicitation-and-more"
source: "LangChain"
published: "2026-10-13"
difficulty: "medium"
kind: "Release"
reading_minutes: 5
tags: ["ai-agents","python","api-design","caching"]
---

# MCP in LangChain: Stateless Protocol, Elicitation, and More!

A post on [LangChain](https://swe.quest/sources/langchain.md), published 2026-10-13, 5 min read, Release. Original: [https://www.langchain.com/blog/mcp-in-langchain-stateless-protocol-elicitation-and-more](https://www.langchain.com/blog/mcp-in-langchain-stateless-protocol-elicitation-and-more)

## Summary

LangChain has moved MCP support into the main package as \`langchain.mcp\`, rebuilt on FastMCP to match the July 2026 stateless MCP spec, which drops sessions so remote servers no longer need sticky routing or a shared session store. \`MultiServerMCPClient\` is replaced by a single \`MCPAdapter\`. FastMCP negotiates per connection between the new protocol and the legacy handshake, and a \`ClientGroup\` gives each server its own era, auth and server-prefixed tool names. Mid-call elicitation surfaces as a LangGraph interrupt that resumes via a checkpointer, and tool lists can be cached client-side according to server-provided TTLs. The namespace is in beta (Python first, TypeScript to follow) and requires \`langchain\[mcp\]\>=1.4.0\`.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Python](https://swe.quest/tags/python.md) (Languages)
- [API design](https://swe.quest/tags/api-design.md) (Backend & APIs)
- [Caching](https://swe.quest/tags/caching.md) (Backend & APIs)

## Prerequisites

- Model Context Protocol basics
- LangChain agents ([easy posts on AI agents](https://swe.quest/tags/ai-agents.md?difficulty=easy))
- Python async ([easy posts on Python](https://swe.quest/tags/python.md?difficulty=easy))

## Keywords

Model Context Protocol, LangChain, FastMCP, LangGraph, MCPAdapter, OAuth 2.1, deepagents

## Related posts

- [What’s MCP all about? Comparing MCP with LLM function calling](https://swe.quest/articles/what-s-mcp-all-about-comparing-mcp-with-llm-function-calling-fcce1ee01a7d0aed.md): Neon · 2025-03-12 · Medium · 5 min read · AI agents, LLMs, TypeScript
  The Model Context Protocol (MCP) builds on LLM function calling by moving tool definitions and execution out of individual LLM applications into standalone servers that any MCP-compatible client can discover and invoke.
- [You are Doing MCP Wrong: 3 Big Misconceptions](https://swe.quest/articles/you-are-doing-mcp-wrong-3-big-misconceptions-4ed8974e9536c439.md): Docker · 2025-09-03 · Medium · 4 min read · AI agents, LLMs, API design, Observability
  MCP is a model-facing protocol for LLM tool use and context exchange, not a replacement for REST or gRPC.
- [Using MCP Servers: From Quick Tools to Multi-Agent Systems](https://swe.quest/articles/using-mcp-servers-from-quick-tools-to-multi-agent-systems-25a421c78bb6b492.md): Docker · 2026-01-22 · Easy · 6 min read · AI agents, Containers, LLMs
  Containerizing MCP servers addresses three practical problems: language runtime sprawl, secret injection, and N×N client-to-server wiring.
- [How to Build an MCP Server with Gradio](https://swe.quest/articles/how-to-build-an-mcp-server-with-gradio-76a4960460af5603.md): Hugging Face · 2025-04-30 · Medium · 10 min read · AI agents, Python, LLMs
  Gradio apps become Model Context Protocol servers by passing mcp\_server=True to launch(), which auto-converts each Python function into an MCP tool, using its docstring and type hints to build the description and input schema.
- [How we built the Microsoft Learn MCP Server](https://swe.quest/articles/how-we-built-the-microsoft-learn-mcp-server-0014fb713a8036c2.md): Engineering@Microsoft · 2026-02-11 · Medium · 5 min read · AI agents, API design, RAG & retrieval, .NET
  Microsoft Learn's MCP Server is a remote Model Context Protocol endpoint, built with the official C# MCP SDK on Azure App Service, that exposes three agent tools (docs search, docs fetch, code sample search) over Streamable HTTP.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
