mcpField
L
langchain

langchain

Remote
github.com/doc2mcpDeveloper Tools6Updated 13w ago
Repository

About langchain

A hosted MCP server for LangChain documentation, generated from its documentation site by doc2mcp. It lets AI clients retrieve, search, and ask questions about the docs with citations.

Key features

  1. 01List crawled documentation pages
  2. 02Retrieve a page as Markdown
  3. 03Search documentation by headings
  4. 04Read overview or full documentation
  5. 05Ask questions with citations

Use cases

  1. 01Look up LangChain documentation from an AI client
  2. 02Search for a topic across crawled docs
  3. 03Get cited answers about LangChain features

MCP support

Exposes documentation listing, retrieval, search, overview, full-text reading, and cited Q&A tools to MCP clients.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://doc2mcp.site/api/mcp/0cd2635e-0cd5-4712-b33c-13b10c547e42/mcp
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

All endpoints
Streamable HTTPhttps://doc2mcp.site/api/mcp/0cd2635e-0cd5-4712-b33c-13b10c547e42/mcpAuth required

Tools

Details

From the project 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
{
  "mcpServers": {
    "my-docs": {
      "url": "https://doc2mcp.site/api/mcp/{project_id}/mcp",
      "headers": { "Authorization": "Bearer <project-token>" }
    }
  }
}

2) CLI
npm install -g doc2mcp
doc2mcp 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

npm i doc2mcp-sdk
import { Doc2MCP } from "doc2mcp-sdk";

// User PAT from doc2mcp.site / `npx doc2mcp login` — SDK has no auth of its own
const 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

pnpm install
cp .env.example .env.local
pnpm dev
pnpm check
pnpm 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.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.