These docs are for the v1.0 alpha release of LangGraph. For the latest stable docs, please see the old sites: LangGraph Python | LangGraph JavaScript
langchain-mcp-adapters
library.

langchain-mcp-adapters
library to use MCP tools in LangGraph:
Use MCP tools
Thelangchain-mcp-adapters
package enables agents to use tools defined across one or more MCP servers.
- In an agent
- In a workflow
Custom MCP servers
To create your own MCP servers, you can use themcp
library. This library provides a simple way to define tools and run them as servers.
Install the MCP library:
Example Math Server (stdio transport)
Example Weather Server (Streamable HTTP transport)