langchain-mcp-adapters
Make Anthropic Model Context Protocol (MCP) tools compatible with LangChain and LangGraph agents.
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, installs with low friction, and solves a clear integration problem between two widely-used frameworks. Use it if you have MCP tools and want to use them in LangChain or LangGraph agents.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; MCP server must be running or accessible at the specified path/URL.
- Low install friction with a pure Python wheel.
- Active maintenance: released 8 days ago with 3628 repository stars and ongoing commits.
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal obligations—suitable for commercial and proprietary projects.
last release 2026-08-06 (8 days) · last repo commit 2026-08-06 · 3,628 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 7,996,429 downloads/mo, #1,673 on PyPI
Alternatives
Verify before relying
pip install langchain-mcp-adapters
from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client
from langchain_mcp_adapters.tools import load_mcp_tools
server_params = StdioServerParameters(command="python", args=["/path/to/server.py"])
async with stdio_client(server_params) as (read, write):
async with ClientSession(read, write) as session:
await session.initialize()
tools = await load_mcp_tools(session)- Whether the library handles all MCP transport types (stdio, http, streamable-http, sse) equally well or if some have known limitations
- Performance characteristics when connecting to many MCP servers simultaneously
- Compatibility guarantees with specific versions of langchain-core and mcp
What it is and what it does
This library bridges Anthropic's Model Context Protocol (MCP) and LangChain by wrapping MCP tools so they work with LangChain agents and LangGraph workflows. It provides two main entry points: a tool loader that converts a single MCP session's tools into LangChain-compatible objects, and a multi-server client that manages connections to multiple MCP servers and aggregates their tools. The library handles both stdio and HTTP transports, supports custom headers for authentication, and distinguishes between tool execution errors (which it returns as error messages to the agent) and protocol failures.
Typical usage involves creating an MCP server with decorated functions, then on the client side instantiating either a direct session or a MultiServerMCPClient, loading tools from it, and passing those tools to a LangChain agent or LangGraph workflow. The library is actively maintained and requires Python 3.10 or later, with dependencies on langchain-core, mcp, and typing-extensions.
Use it for
- Build LangGraph agents that call external MCP-based tools (e.g., math operations, weather lookups) as part of agentic workflows
- Aggregate tools from multiple MCP servers and expose them to a single LangChain agent without managing individual connections
- Add authentication headers to MCP server connections for secure tool access in production environments
- Convert existing MCP tool definitions into LangChain tool objects for use with OpenAI or other LLM-based agents
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, installs with low friction, and solves a clear integration problem between two widely-used frameworks. Use it if you have MCP tools and want to use them in LangChain or LangGraph agents.
Install
langchain-mcp-adapters on PyPI
Before you install
Low install friction with a pure Python wheel. Active maintenance: released 8 days ago with 3628 repository stars and ongoing commits. Requires Python 3.10 or later.
Requires Python 3.10 or later; MCP server must be running or accessible at the specified path/URL.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal obligations—suitable for commercial and proprietary projects.
Quickstart
pip install langchain-mcp-adapters
from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client
from langchain_mcp_adapters.tools import load_mcp_tools
server_params = StdioServerParameters(command="python", args=["/path/to/server.py"])
async with stdio_client(server_params) as (read, write):
async with ClientSession(read, write) as session:
await session.initialize()
tools = await load_mcp_tools(session)
Verify before relying
- Whether the library handles all MCP transport types (stdio, http, streamable-http, sse) equally well or if some have known limitations
- Performance characteristics when connecting to many MCP servers simultaneously
- Compatibility guarantees with specific versions of langchain-core and mcp
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packageslangchain-coremcptyping-extensions |
| Maintenance | Actively maintained 8 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 7,996,429 / month, #1,673 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: langchain_mcp_adapters-0.3.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “mcp tools langchain integration”
- langchain-mcp-adaptersConverts Anthropic Model Context Protocol (MCP) tools into…
- mcpadaptAdapts MCP (Model Context Protocol) servers into tools for agentic…
- mcp-proxy-for-awsBridges MCP clients to AWS-hosted MCP servers using AWS IAM…
Give your agent the search over MCP, or paste the wish link into any chat.
More Application Frameworks packages
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.
Install it if you're developing CLI tools, dashboards, or interactive terminal applications.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.
Install it if you need to build or connect to servers.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
See also langchain · mcpadapt · mcp-use · langchain-protocol · composio-langchain · nvidia-nat-mcp · langchain-cli · mcp-types · fastmcp