langchain-mcp-adapters
library.
langchain-mcp-adapters
library to use MCP tools in LangGraph:
langchain-mcp-adapters
enables agents to use tools defined across one or more MCP server.
MultiServerMCPClient
is stateless by default. Each tool invocation creates a fresh MCP ClientSession
, executes the tool, and then cleans up.mcp
library. This library provides a simple way to define tools and run them as servers.
to_fastmcp
function. This allows you to make your LangChain tools available to any MCP client.
client.session()
to create a persistent ClientSession
.