Token导航 LogoToken导航TokenDH.com
Langchain MCP logo
开发工具HTTP官方级别未说明来源级核验

Langchain MCP

MCP Server

Model Context Protocol tool support for LangChain

工具数

0

提示词数

0

GitHub Stars

205

资源数

0
LangChainAI代理PythonAI交互

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

rectalogic

提供方

rectalogic

最后核验

2026/5/18 02:17

运行时

Python

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install langchain-mcp\"

详细介绍

langchain mcp

*注意:langchain现在有一个更正式的实现 langchain mcp适配器*

模型上下文协议 LangChain中的工具调用支持。

创建一个 langchain_mcp.MCPToolkit 带着一个 mcp.ClientSession, 然后 await toolkit.initialize()toolkit.get_tools() 获取以下列表 langchain_core.tools.BaseTools

例子:

https://github.com/rectalogic/langchain-mcp/blob/8fa8445a24755bf91789f52718c32361ed916f46/tests/demo.py#L34-143

演示

你可以运行演示 希腊 llama-3.1-8b-instant:

$ export GROQ_API_KEY=xxx
$ uv run tests/demo.py "Read and summarize the file ./LICENSE"
Secure MCP Filesystem Server running on stdio
Allowed directories: [ '/users/aw/projects/rectalogic/langchain-mcp' ]
The file ./LICENSE is a MIT License agreement. It states that the software is provided "as is" without warranty and that the authors and copyright holders are not liable for any claims, damages, or other liability arising from the software or its use.

目录标签

目录标签

LangChainAI代理PythonAI交互developer-tools本地部署MCP工具调用AI集成

接入字段

传输方式(transport,传输协议)

HTTP

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Python

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

HTTPnone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP