Langchain MCP Tools

•
29
•

Simplifies the integration of Model Context Protocol (MCP) server tools with LangChain in Python.

This Python utility streamlines the use of Model Context Protocol (MCP) servers with LangChain, enabling access to over 2000 functional components like Google Drive, Slack, and more. It provides the `convert_mcp_to_langchain_tools()` function, which initializes multiple MCP servers in parallel and converts their tools into LangChain-compatible tools, allowing you to easily incorporate a wide range of external resources into your LangChain applications.

Características Principales

01Converts MCP server tools into LangChain-compatible tools
02Supports parallel initialization of multiple MCP servers
03Includes a cleanup function to close MCP server sessions
0418 GitHub stars
05Supports remote MCP servers (SSE and Websocket)
06Allows working directory configuration for local MCP servers

Casos de Uso

01Integrating external tools like Google Drive and Slack into LangChain agents
02Supercharging LangChain with a vast ecosystem of MCP-based functionalities
03Building LangChain applications that interact with a variety of MCP servers