{"repo":"langchain-ai/langchain-mcp-adapters","free":true,"listed":false,"github":"https://github.com/langchain-ai/langchain-mcp-adapters","clone":"git clone https://github.com/langchain-ai/langchain-mcp-adapters.git","description":"LangChain 🔌 MCP","language":"Python","stars":3630,"topics":["langchain","langgraph","mcp","python","tools"],"license":"MIT","category":"mcp-servers","readme_excerpt":"LangChain MCP Adapters This library provides a lightweight wrapper that makes Anthropic Model Context Protocol (MCP) tools compatible with LangChain and LangGraph. [!note] A JavaScript/TypeScript version of this library is also available at langchainjs. Features - 🛠️ Convert MCP tools into LangChain tools that can be used with LangGraph agents - 📦 A client implementation that allows you to connect to multiple MCP servers and load tools from them Installation Quickstart Here is a simple example of using the MCP tools with a LangGraph agent. Server First, let's create an MCP server that can add and multiply numbers. Client Multiple MCP Servers The library also allows you to connect to multiple MCP servers and load tools from them: Server Client [!note] Example above will start a new MCP ClientSession for each tool invocation. If you would like to explicitly start a session for a given server, you can do: Streamable HTTP MCP now supports streamable HTTP transport. To start an example streamable HTTP server, run the following: Alternatively, you can use FastMCP directly (as in the examples above). To use it with Python MCP SDK streamablehttp client : Use it with MultiServerMCPClient : Passing runtime headers When connecting to MCP servers, you can include custom headers (e.g., for authentication or tracing) using the headers field in the connection configuration. This is supported for the following transports: - sse - http (or streamable http ) Example: passing headers with Mul","default_branch":null,"files":null,"tree":[],"storefront":"/r/langchain-ai","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/langchain-ai/langchain-mcp-adapters/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}