Skip to main content

Documentation Index

Fetch the complete documentation index at: https://nvd-54.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

我们希望让文档尽可能易于访问。我们提供了多种方式,让你可以通过 AI 助手、代码编辑器和直接集成(如模型上下文协议 MCP)来程序化地使用这些文档。

快速访问选项

在我们文档的任何页面上,你都可以在右上角找到一个上下文菜单下拉框: 复制页面浅色模式 其中包括我们的 llms.txt、MCP 服务器连接,以及 ChatGPT 和 Claude 等其他快速访问选项。

使用我们的 MCP 服务器

我们的文档包含一个内置的模型上下文协议 (MCP) 服务器,让 AI 应用可以实时查询最新文档。 LangChain 文档 MCP 服务器地址:
https://docs.langchain.com/mcp
连接后,你可以向 AI 助手询问关于 LangChain、LangGraph 和 LangSmith 的问题,它会搜索我们的文档来提供准确、最新的回答。

通过 Claude Code 连接

如果你使用 Claude Code,在终端中运行以下命令将服务器添加到当前项目:
claude mcp add --transport http docs-langchain https://docs.langchain.com/mcp
项目(本地)作用域上述命令仅将 MCP 服务器添加到当前项目/工作目录。要全局添加 MCP 服务器并在所有项目中访问,请在命令中添加 --scope user
claude mcp add --transport http docs-langchain --scope user https://docs.langchain.com/mcp

通过 Claude Desktop 连接

  1. 打开 Claude Desktop
  2. 进入 设置 > 连接器
  3. 添加我们的 MCP 服务器 URL:https://docs.langchain.com/mcp

通过 Codex CLI 连接

如果你使用 OpenAI Codex CLI,在终端中运行以下命令全局添加服务器:
codex mcp add langchain-docs --url https://docs.langchain.com/mcp

通过 Cursor 连接

将以下内容添加到你的 MCP 设置配置文件中:
{
  "mcpServers": {
    "docs-langchain": {
      "url": "https://docs.langchain.com/mcp"
    }
  }
}

通过 VS Code 连接

将以下内容添加到你的 MCP 设置配置文件中:
{
  "servers": {
    "docs-langchain": {
      "url": "https://docs.langchain.com/mcp"
    }
  }
}

通过 Antigravity 连接

将以下内容添加到你的 MCP 设置配置文件中:
{
  "mcpServers": {
    "docs-langchain": {
      "serverUrl": "https://docs.langchain.com/mcp"
    }
  }
}

了解更多

有关使用 Mintlify MCP 服务器的更多信息,请参阅 Mintlify 官方文档 有问题或反馈?请在我们的社区论坛中告诉我们。