Langchain MCP Tools icon

Langchain MCP Tools

22

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.

主要功能

  • 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

使用案例

  • 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
Craft Better Prompts with AnyPrompt
Sponsored