Connect to Claude
Langchain Mcp Tools Ts icon

Langchain Mcp Tools Ts

Createdhideya

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

About

This package provides a utility function, `convertMcpToLangchainTools()`, that simplifies the process of utilizing Model Context Protocol (MCP) server tools within LangChain projects using TypeScript. By initializing multiple MCP servers in parallel, it converts their available tools into an array of LangChain-compatible tools, enabling seamless integration with over 1500 functional components available as MCP servers. The utility also includes a cleanup function to properly close MCP server sessions after use, enhancing the functionality and scope of LangChain applications by leveraging external tools and resources.

Key Features

  • Facilitates the use of external tools and resources within LangChain applications.
  • Converts MCP server tools into LangChain-compatible tools.
  • 17 GitHub stars
  • Initializes multiple MCP servers in parallel for efficient integration.
  • Provides a cleanup function to close MCP server sessions.
  • Supports integration with over 1500 functional components available as MCP servers.

Use Cases

  • Automating workflows by integrating various MCP server tools.
  • Extending LangChain's capabilities with external tools and resources.
  • Building LangChain applications that leverage a wide range of data sources and services.