Langchain Mcp

io.github.baixianger由 GitHub 账号 baixianger 发布v2.0.0更新于 Oct 24, 2026

LangChain/LangGraph/DeepAgents knowledge + LangGraph agent debugging (Polly-like)

已验证STDIO仅桌面知识与记忆开发者工具

概览

AI 生成的概览

本地 MCP 服务器,让助手搜索 LangChain、LangGraph、LangSmith 与 DeepAgents 的文档和源码,并查看本地 LangGraph 智能体的运行记录。

可以做什么
搜索 LangChain、LangGraph、LangSmith 与 DeepAgents 的文档和教程,以及 LangChain、LangGraph、DeepAgents 的源码(需登录)。调试本地 LangGraph 智能体:列出线程、运行与追踪,读取线程详情、状态和检查点。分析某次运行为何失败,并给出改进智能体提示词的建议。
适用场景
适合在使用 LangChain、LangGraph 或 DeepAgents 开发时,让助手直接查文档和源码;也适合调试运行在本地 langgraph dev 服务器上的 LangGraph 智能体。
运行要求
以 npm 全局安装的本地包形式运行,通过 stdio 注册到助手。搜索工具需先执行登录命令;调试工具需本地运行 langgraph dev 服务器,默认连接 localhost:2024。仅支持桌面端。
安装前请注意
搜索工具需要账号登录并消耗付费额度(含约 5 美元免费额度);调试工具标注为免费。服务器会读取本地 LangGraph 智能体的状态、运行和追踪数据,其中可能包含敏感的提示词或数据内容。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Langchain Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

langchain-mcp

Give Claude superpowers for LangChain development

[npm version] [License: MIT]

Website · GitHub · Sponsor


Features

Knowledge Search

Search LangChain, LangGraph, LangSmith & DeepAgents documentation and source code instantly from Claude.

LangGraph Agent Debugging (New in v2!)

Debug your LangGraph agents like Polly - connect to your local langgraph dev server and:

  • List threads, runs, and traces
  • Inspect agent state and checkpoints
  • Ask "Why did this fail?" and get AI-powered analysis
  • Get suggestions to improve your agent's prompts

Install

bash
npm i -g langchain-mcplangchain-mcp loginclaude mcp add langchain-mcp -- langchain-mcp
Claude Desktop config

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

json
{  "mcpServers": {    "langchain-mcp": {      "command": "langchain-mcp"    }  }}

Tools

Search (requires login)

ToolDescription
search_docsSearch documentation and tutorials
search_langchain_codeSearch LangChain source code
search_langgraph_codeSearch LangGraph source code
search_deepagents_codeSearch DeepAgents source code

Debug LangGraph Agents (free, no login)

ToolDescription
langgraph_list_threadsList threads from local server
langgraph_get_threadGet thread details
langgraph_get_thread_stateGet state/checkpoint
langgraph_list_runsList runs for a thread
langgraph_get_runGet run trace details

Debug Your Agents

bash
# Start your LangGraph serverlanggraph dev

Then ask Claude:

  • "List my LangGraph threads"
  • "What went wrong with thread abc123?"
  • "Summarize the last run"
  • "How can I improve this agent?"

Connects to localhost:2024 by default.


Pricing

FeatureCost
Doc/Code Search$5 free credits (~2000 searches)
LangGraph DebuggingFree forever

License

MIT

来源:packages/mcp-server/README.md,提交 78521ea

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v2.0.0最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。