langchain-mcp-adapters

langchain-mcp-adapters

LangChain MCP adapter that makes MCP tools compatible with LangChain and LangGraph.

MCPDevOpen source
Type
MCP
Open source
Yes
GitHub Stars
★ 3.6k
Source
mcp-github

Overview

The LangChain MCP adapter is a lightweight library that converts Anthropic Model Context Protocol (MCP) tools into LangChain tools for use in LangGraph agents. The library also provides a client implementation that can connect to multiple MCP servers and load tools from them. With this adapter, developers can easily integrate MCP tools into LangChain projects, extending the capabilities of AI agents. Suitable for developers who need to use MCP tools within LangChain or LangGraph.

Capabilities

  • Convert MCP tools into LangChain tools
  • Support connecting to multiple MCP servers
  • Support multiple transport protocols (stdio, http)

Use cases

Use MCP tools in LangChain projectsExtend the functionality of LangGraph agentsIntegrate tools from multiple MCP servers

Setup

Requires: API KeyNode 环境
pip install langchain-mcp-adapters

This information was compiled by AI from public sources and may contain inaccuracies — please refer to the source.

FAQ

How to install langchain-mcp-adapters?

Install using pip install langchain-mcp-adapters.

What transport protocols are supported?

Supports stdio and http transport protocols.

Related skills