MCP.so
登录

MCP Langchain Ts Client

@isaacwasserman

基本信息

分类

AI 与智能体

最近更新

传输方式

stdio

作者

isaacwasserman

关于 MCP Langchain Ts Client

LangChain.js client for Model Context Protocol.

MCP Langchain Ts Client 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

MCP Langchain Ts Client 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is mcp-langchain-ts-client?

It is a LangChain.js client for the Model Context Protocol (MCP), ported from the Python library rectalogic/langchain-mcp to the JavaScript/TypeScript ecosystem.

How to use mcp-langchain-ts-client?

Install via npm install mcp-langchain-ts-client. Create an MCPToolkit instance with server parameters (command and args), call await toolkit.initialize(), then access toolkit.tools to retrieve LangChain.js‑compatible tools. The tools can be passed directly to LangChain agents, for example using createReactAgent from @langchain/langgraph/prebuilt.

Key features of mcp-langchain-ts-client

  • LangChain.js integration for Model Context Protocol tools.
  • MCPToolkit class to spawn and manage MCP servers.
  • Extracts MCP tools as LangChain.js StructuredTool instances.
  • Supports any MCP server runnable via command line.
  • Simple initialization and tool retrieval workflow.

Use cases of mcp-langchain-ts-client

  • Connect a LangChain agent to MCP‑compatible tools (e.g., @modelcontextprotocol/server-everything).
  • Build LangGraph workflows that leverage MCP server resources.
  • Port Python‑based MCP‑LangChain integrations to JavaScript/TypeScript projects.

常见问题

1

What is the relationship to rectalogic/langchain-mcp?

This package is a port of the Python library `rectalogic/langchain-mcp` to the JavaScript/TypeScript LangChain and MCP APIs.

2

What runtime does it require?

It requires Node.js (implied by npm installation and use of `npx` to launch MCP servers).

3

How do I obtain LangChain‑compatible tools from an MCP server?

Create an `MCPToolkit` instance with the server’s command and arguments, call `initialize()`, then access the `tools` property.

4

Does it work with any MCP server?

It works with any MCP server that can be launched as a subprocess using a `command` and `args` (e.g., `@modelcontextprotocol/server-everything`).

评论

AI 与智能体 分类下的更多 MCP 服务器