Does LangGraph support MCP tools?
Yes, through LangChain. MCPAdapter in the langchain.mcp namespace connects to an MCP server and returns its tools as LangChain tools, which create_agent, built on LangGraph, can call. It needs langchain[mcp] 1.4.0 or later and is in beta, so its API may change. It replaces the standalone langchain-mcp-adapters package, whose README says it is no longer actively maintained.
Error handling is fixed. A tool result marked isError, which is how MCP says a failed tool should report, reaches the model as a tool message with status error carrying the server’s text. A transport failure raises instead, and by default LangGraph’s tool node stops the run on a raised exception.
Two limits. The tools are async-only: a synchronous call raises NotImplementedError. And MCP prompts and resources are not wrapped yet.
published
sources
- LangChain docs: Model Context Protocol (MCP) fetched
- LangChain docs: Migrate from langchain-mcp-adapters fetched
- langchain-mcp-adapters README (repository no longer actively maintained) fetched
- langchain 1.5.0, mcp/tools.py and agents/factory.py (source at commit 980e4a8) fetched
- langchain-core 1.8.0, tools/structured.py (StructuredTool sync invocation) fetched