langchain

io.github.doc2mcp由 GitHub 帳號 doc2mcp 發布v1.0.1781396655更新於 Oct 25, 2026

MCP server for langchain documentation, generated by doc2mcp.

已驗證Streamable HTTP可網頁執行知識與記憶開發者工具

概覽

AI 產生的概覽

一個託管式 MCP 伺服器,提供已擷取的 LangChain 文件,讓助理搜尋、閱讀並就文件提問。

可以做什麼
列出並讀取文件頁面,包括單頁完整 Markdown 以及專案已擷取文件站點的全部頁面合併內容(list_documentation_pages、get_documentation_page、read_full_documentation)。依標題進行文件搜尋(search_documentation)。取得文件摘要與索引(get_documentation_overview)。就文件提問並取得附引用的回答(ask_documentation)。
適用情境
適合助理需要回答 LangChain 相關問題或查閱官方文件中的 API 細節、又不想自行擷取網頁的情境,尤其是在 Cursor、Claude、VS Code 或 LangChain/LangGraph 代理中使用時。
執行需求
遠端端點位於 doc2mcp.site,無需本機執行環境或安裝套件。需要在 Authorization 標頭中提供 bearer 權杖,該權杖來自 doc2mcp.site 專案的 Connect 分頁。需要能存取該端點的網路。
安裝前請注意
Authorization 中的 bearer 權杖屬於專案憑證,應像密碼一樣保管,避免出現在共用設定與日誌中。查詢與請求會傳送到第三方 doc2mcp 服務,由該服務託管並提供擷取的文件。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 langchain,將其新增到工作區。
  2. 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.doc2mcp%2Flangchain/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "langchain": {
      "type": "http",
      "url": "https://doc2mcp.site/api/mcp/0cd2635e-0cd5-4712-b33c-13b10c547e42/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

doc2mcp

Documentation infrastructure for AI agents

Paste any docs URL → get a hosted, Cursor-ready MCP server in under 60 seconds.

Live · Docs · SDK · Marketplace · Open Source

[MCP Registry] [npm CLI] [npm SDK] [License: MIT] [GitHub stars]

⭐ Star this repo — it helps developers discover doc2mcp on GitHub and the MCP Registry.


Three ways to use doc2mcp

[Web · CLI · SDK]

SurfaceBest forStart here
WebInstant convert in the browserdoc2mcp.site
CLITerminal + one-shot install into Cursornpm i -g doc2mcp
SDKCode, CI, LangChain / LangGraph / agentsdoc2mcp-sdk

API keys always come from doc2mcp.site (User PAT + project token). The SDK has no separate login.


The pipeline

[The doc2mcp pipeline]

Docs URL → crawl → analyze → MCP tools → hosted endpoint → Cursor / Claude / LangChain / LangGraph.


1) Web (normal)

  1. Sign in at doc2mcp.site/login
  2. Paste a docs URL (Stripe, LangChain, Mintlify, GitHub…)
  3. Copy the hosted MCP URL + Bearer token into Cursor / Claude / VS Code
json
{  "mcpServers": {    "my-docs": {      "url": "https://doc2mcp.site/api/mcp/{project_id}/mcp",      "headers": { "Authorization": "Bearer <project-token>" }    }  }}

2) CLI

bash
npm install -g doc2mcpdoc2mcp login                 # creates User PAT (d2mcp_pat_…)doc2mcp https://docs.example.com

Lists the same projects as the dashboard. Install helpers for Cursor / VS Code / Claude / Windsurf.


3) SDK (doc2mcp-sdk)

[SDK architecture]

bash
npm i doc2mcp-sdk
ts
import { Doc2MCP } from "doc2mcp-sdk";
// User PAT from doc2mcp.site / `npx doc2mcp login` — SDK has no auth of its ownconst client = new Doc2MCP({ token: process.env.DOC2MCP_API_TOKEN! }); // Settings → d2mcp_usr_…
const ready = await client.convertAndWait({  sourceUrl: "https://js.langchain.com/docs",});
const answer = await client.callToolText({  mcpUrl: ready.mcp.url,  mcpToken: ready.mcp.token, // project token d2mcp_…  name: "search_documentation",  arguments: { query: "how do runnables work?" },});

Full handbook (API keys, Cursor, Claude, LangChain, LangGraph, LangSmith, OpenAI, Vercel AI SDK, CrewAI, AutoGen, Mastra):

doc2mcp/doc2mcp-sdk → docs/

Product docs page: doc2mcp.site/docs/sdk


MCP tools generated per project

ToolWhat it does
list_documentation_pagesEvery crawled page
get_documentation_pageFull markdown of one page
search_documentationHeading-aware search
get_documentation_overviewSummary + index
read_full_documentationAll pages combined
ask_documentationQ&A with citations

Repos

RepoPurpose
doc2mcp/doc2mcp (this)Next.js app, CLI, pipeline, MCP runtime
doc2mcp/doc2mcp-sdkProgrammatic JS/TS SDK + framework examples
doc2mcp/doc2mcp-registryMCP Registry gateway manifest

Contribute

  1. Read CONTRIBUTING.md and CODE_OF_CONDUCT.md
  2. Branch from staging → open PR → staging
  3. AI review (Gemini PR review) fails the check on must-fix — fix blockers before merge
  4. Coupon opensourcedoc2mcp → Starter free for 12 months on Pricing

More: doc2mcp.site/open-source

Local development

bash
pnpm installcp .env.example .env.localpnpm dev
bash
pnpm checkpnpm exec tsc --noEmit --skipLibCheck

CI / CD

Feature → staging (preview) → main → v* tag deploys production on Vercel.

PR checks: Biome/Ultracite, TypeScript, Next build, CLI build, Gemini AI review (must-fix → failed check).

License

MIT — see LICENSE.

來源:README.md,提交 4fe7ee7

工具

0
該伺服器需要 API 金鑰等憑證,因此 SourceWeft 無法在沒有憑證的情況下讀取其工具,也未收錄。

版本歷史

1
  1. v1.0.1781396655最新Sep 16, 2026

評分

已滿足適用檢查項的 60%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分