finds.dev

langchain-ai/langchain-mcp-adapters

LangChain 🔌 MCP

View on GitHubHomepage ↗

★ 3,588PythonMITupdated Jun 2026

// the take

A thin adapter layer that converts MCP tools into LangChain-compatible tools, letting you plug any MCP server into a LangGraph agent without writing your own marshaling code. Maintained by the LangChain team itself, so it tracks protocol changes. Primarily useful if you're already on LangChain/LangGraph and want to consume the growing MCP server ecosystem.

The MultiServerMCPClient handles stdio, SSE, and streamable HTTP transports in a single unified API — you swap a config key, not your integration code. Tool error handling is thoughtfully split: MCP execution errors (isError=True) surface as ToolMessages the model can reason about, while transport failures still raise, which is the right distinction. The library is small enough (six source files) that you can actually read it when something breaks, and the test suite runs real MCP servers rather than mocking the protocol. First-party ownership means it won't lag behind MCP spec changes the way community adapters do.

By default, MultiServerMCPClient opens a fresh ClientSession per tool invocation — that's a new subprocess or HTTP handshake every time a tool fires, which gets expensive fast in anything beyond a demo. The README buries this in a note rather than leading with it. The stdio transport spawning subprocesses in a web server context is genuinely dangerous and the README only adds a weak advisory comment rather than blocking or warning loudly. Resource and prompt support (the other two MCP primitives) are in the library but completely absent from the README, so most users won't know they exist. No built-in connection pooling or health checking for HTTP transports.

We read the README, the directory tree and a key source file in June 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
3,588
Forks
450
Language
Python
License
MIT
Last commit
23 Jun 2026

// nearby

If langchain-mcp-adapters isn't quite it.

All repos →