lightfield

io.github.doc2mcp由 GitHub 账号 doc2mcp 发布v1.0.1780875164更新于 Oct 24, 2026

MCP server for lightfield documentation, generated by doc2mcp.

已验证Streamable HTTP可网页运行网页搜索与抓取知识与记忆

概览

AI 生成的概览

托管型 MCP 服务器,把已抓取的 lightfield 文档站点以可搜索、可阅读的工具提供给 AI 助手。

可以做什么
列出所有已抓取的文档页面,并获取带索引的文档集摘要。读取单个页面或全部页面合并后的完整 Markdown 内容。按标题结构搜索文档。就文档提问并获得带引用的回答。
适用场景
当希望助手依据 lightfield 文档回答问题或编写代码、又不想把页面内容粘贴进对话,并且可以接受托管端点时使用。
运行要求
需要访问 doc2mcp.site 上的远程 streamable HTTP 端点。需要在 Authorization 请求头中提供 bearer 令牌,该令牌取自项目的 Connect 标签页。需要能访问该托管服务的网络。
安装前请注意
Authorization 中的 bearer 令牌属于项目凭据,应像密码一样保管,避免出现在共享配置和日志中。文档内容由第三方 doc2mcp 服务抓取并提供,查询和页面请求都会发送给该服务商。

安装

在 SourceWeft 中

  1. 打开 控制台中的 lightfield,将其添加到工作区。
  2. 连接 Authorization token 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.doc2mcp%2Flightfield/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "lightfield": {
      "type": "http",
      "url": "https://doc2mcp.site/api/mcp/24fd8d23-16a6-4eb9-bee0-f8080a6b31b2/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.1780875164最新Sep 16, 2026

评分

已满足适用检查项的 60%

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

  • 近 30 天内可连通必需25 分

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

  • 已声明认证方式必需10 分
  • 已列出工具15 分

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

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