MCP To LangChain Tools Conversion Utility / TypeScript
@hideya
About MCP To LangChain Tools Conversion Utility / TypeScript
MCP to LangChain Tools Conversion Utility / TypeScript
Basic information
Config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryTools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is MCP To LangChain Tools Conversion Utility / TypeScript?
A lightweight TypeScript library that converts MCP (Model Context Protocol) server tools into LangChain-compatible StructuredTool objects. It allows developers to integrate any MCP server—local or remote—into LangChain agents and chains with minimal configuration.
How to use MCP To LangChain Tools Conversion Utility / TypeScript?
Install via npm i @h1deya/langchain-mcp-tools, then call convertMcpToLangchainTools() with an McpServersConfig object that mirrors the mcpServers structure from Claude for Desktop. The function returns an array of LangChain tools and a cleanup callback. Use the tools with LangChain models and always invoke cleanup() when done.
Key features of MCP To LangChain Tools Conversion Utility / TypeScript
- Converts multiple MCP servers into LangChain tools in parallel
- LLM provider-specific schema transformations (Gemini, OpenAI, etc.)
- Supports local stdio and remote HTTP, SSE, and WebSocket MCP servers
- Automatic transport selection and explicit configuration
- Stderr redirection and working directory control for local servers
- Concurrent cleanup with error handling
Use cases of MCP To LangChain Tools Conversion Utility / TypeScript
- Integrate filesystem, fetch, and search MCP tools into a LangChain agent
- Combine public and private MCP servers (Brave Search, GitHub, Notion) in one application
- Quickly experiment with custom MCP servers in a LangChain prototype
- Access the growing ecosystem of 2000+ MCP servers from LangChain
FAQ from MCP To LangChain Tools Conversion Utility / TypeScript
What are the prerequisites?
Node.js 18+. Optional: npm 7+ for Node.js-based local MCP servers, and uv (uvx) for Python-based local MCP servers.
Does it support remote MCP servers?
Yes. It supports Streamable HTTP, SSE, and WebSocket transports. Transport is auto-detected or can be set explicitly via a type or transport field.
What are the known limitations?
Only text results of tool calls are supported—image or other content types are filtered out. Only the MCP Tools feature is implemented; Resources, Prompts, and Sampling are not supported.
How does the library handle schema compatibility?
When the llmProvider option is specified, the library performs provider-specific JSON schema transformations to prevent compatibility issues (e.g., for Google Gemini or OpenAI). Set it if you encounter schema-related warnings or errors.
How does cleanup work?
The cleanup function closes all MCP server connections concurrently and logs any failures. It continues cleanup of remaining servers even if some fail. Always call it in a finally block after using the tools.
More AI & Agents MCP servers
Intervals.icu MCP Server
mvilanovaModel Context Protocol (MCP) server for connecting Claude and ChatGPT with the Intervals.icu API.
Gemini MCP Server
aliargunMCP server implementation for Google's Gemini API
欢迎来到 智言平台
Shy2593666979AgentChat 是一个基于 LLM 的智能体交流平台,内置默认 Agent 并支持用户自定义 Agent。通过多轮对话和任务协作,Agent 可以理解并协助完成复杂任务。项目集成 LangChain、Function Call、MCP 协议、RAG、Memory、HITL、Skill、Milvus 和 ElasticSearch 等技术,实现高效的知识检索与工具调用,使用 FastAPI 构建高性能后端服务。
Just Prompt - A lightweight MCP server for LLM providers
dislerjust-prompt is an MCP server that provides a unified interface to top LLM providers (OpenAI, Anthropic, Google Gemini, Groq, DeepSeek, and Ollama)
🛡️ A.I.G(AI-Infra-Guard)
TencentA full-stack AI Red Teaming platform securing AI ecosystems via OpenClaw Security Scan, Agent Scan, Skills Scan, MCP scan, AI Infra scan and LLM jailbreak evaluation.
Comments