Langchain MCP Tools
Simplifies the integration of Model Context Protocol (MCP) server tools with LangChain in Python.
Acerca de
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
- Converts MCP server tools into LangChain-compatible tools
- Supports parallel initialization of multiple MCP servers
- Includes a cleanup function to close MCP server sessions
- 18 GitHub stars
- Supports remote MCP servers (SSE and Websocket)
- Allows working directory configuration for local MCP servers
Casos de Uso
- Integrating external tools like Google Drive and Slack into LangChain agents
- Supercharging LangChain with a vast ecosystem of MCP-based functionalities
- Building LangChain applications that interact with a variety of MCP servers