drio
Open app

MCP To LangChain Tools Conversion Utility / TypeScript

Source

Package intended to simplify the use of MCP server tools within LangChain

Catalog onlyCatalog onlySTDIO

Overview

MCP To LangChain Tools Conversion Utility is a TypeScript package designed to simplify the integration of Model Context Protocol (MCP) server tools with LangChain, enabling users to leverage over 800 functional components from MCP servers.

To use this utility, install it via npm and utilize the convertMcpToLangchainTools() function to convert MCP server configurations into LangChain-compatible tools.

  • Simplifies the use of MCP server tools within LangChain. - Supports parallel initialization of multiple MCP servers. - Converts MCP tools into an array of LangChain-compatible tools.
  1. Integrating various external tools like Google Drive and Slack into LangChain applications.
  2. Enabling developers to access and utilize a wide range of MCP servers seamlessly.
  3. Facilitating the development of applications that require complex tool interactions.

Add to your AI client

Use these steps to connect MCP To LangChain Tools Conversion Utility / TypeScript in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "langchain-mcp-tools-ts-hideya": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-langchain-mcp-tools-ts-hideya"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "langchain-mcp-tools-ts-hideya": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-langchain-mcp-tools-ts-hideya"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "langchain-mcp-tools-ts-hideya": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-langchain-mcp-tools-ts-hideya"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "langchain-mcp-tools-ts-hideya": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-langchain-mcp-tools-ts-hideya"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "langchain-mcp-tools-ts-hideya": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-langchain-mcp-tools-ts-hideya"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "langchain-mcp-tools-ts-hideya": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-langchain-mcp-tools-ts-hideya"
      ]
    }
  }
}

FAQ

What is Model Context Protocol (MCP)?

MCP is an open-source technology that allows for the integration of external tools and resources with large language models.

How do I install the utility?

You can install it using npm with the command: `npm i @h1deya/langchain-mcp-tools`.

What are the prerequisites for using this utility?

You need Node.js version 16 or higher to use this package.