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
Agent using tools defined on MCP servers
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)