mcp-server-dev-docs

mcp-server-dev-docs

Provides live, clean, LLM-ready markdown documentation for popular fullstack technologies and custom URLs, with built-in presets for React, Next.js, TypeScript, and more.

Category
访问服务器

README

mcp-server-dev-docs

An MCP server that provides live, clean, LLM-ready markdown documentation for popular fullstack technologies — and any custom documentation URL.

It fetches pages through https://r.jina.ai/ under the hood to strip navigation, ads, and boilerplate, returning clean markdown. No API key or authentication required.

Features

  • Built-in presets for React 19, Next.js, TypeScript, Tailwind CSS, Zustand, TanStack Query v5, Node.js, Prisma, and Express.
  • Fetch any arbitrary documentation URL as clean markdown.
  • Find documentation website URLs by technology (and optional version) via DuckDuckGo HTML, then return clean markdown for the top results through Jina Reader.
  • Detect dependency versions from the current project's package.json.
  • Automatic truncation of very large pages (> 25,000 characters) to keep responses LLM-friendly.
  • Zero configuration and no API keys.

Tools

list_supported_presets

Lists the built-in preset keys, their target URLs, and descriptions. Takes no arguments.

get_fullstack_docs

Fetches clean markdown documentation. Provide exactly one of:

Argument Type Description
preset string A built-in preset key (see below), e.g. react.
customUrl string Any documentation URL to fetch as clean markdown.

detect_project_versions

Reads package.json from the current working directory (process.cwd()) and returns a JSON summary of dependencies and devDependencies with their declared versions. Takes no arguments.

find_docs_urls

Finds documentation website URLs for a technology via DuckDuckGo HTML, then returns clean markdown for up to the top 2 results (fetched in parallel via Jina Reader).

Argument Type Required Description
query string yes Terms used to find docs URLs, e.g. useActionState.
technology string yes Technology name, e.g. react, nextjs, tailwind.
version string no Optional version scope, e.g. 19 or 15.

URL discovery behavior:

  1. Primary query (when the technology has a known docs domain):
    site:<domain> <technology> <version?> <query>
    Example: site:react.dev react 19 useActionState
  2. Fallback if the primary query returns no links:
    <technology> <version?> docs <query>
  3. Extract up to two result URLs, fetch markdown for both with Promise.all, and return them as:
--- Result 1: <url> ---

...

--- Result 2: <url> ---

...

Mapped domains include reactreact.dev, nextjs/nextnextjs.org, tailwind/tailwindcsstailwindcss.com, and zustandzustand-demo.pmnd.rs.

Note: DuckDuckGo HTML may rate-limit or challenge automated searches after many requests. If URL discovery fails intermittently, wait and retry, or use get_fullstack_docs with a preset/customUrl.

Supported presets

Key Documentation
react React 19 reference
nextjs Next.js docs (App Router, rendering, routing)
typescript TypeScript handbook
tailwind Tailwind CSS docs
zustand Zustand state management
tanstack-query TanStack Query v5 (React)
nodejs Node.js API
prisma Prisma ORM
express Express 4.x API reference

Installation & Usage

The server runs over stdio and is intended to be launched by an MCP client. The easiest way is via npx (no global install needed):

npx mcp-server-dev-docs

Cursor

Add the server to your Cursor MCP config at ~/.cursor/mcp.json (global) or .cursor/mcp.json (per-project):

{
  "mcpServers": {
    "dev-docs": {
      "command": "npx",
      "args": ["-y", "mcp-server-dev-docs"]
    }
  }
}

Then reload Cursor. The tools list_supported_presets, get_fullstack_docs, detect_project_versions, and find_docs_urls will be available to the agent.

Claude Desktop

Add the server to claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "dev-docs": {
      "command": "npx",
      "args": ["-y", "mcp-server-dev-docs"]
    }
  }
}

Restart Claude Desktop to load the server.

Local Development

Requires Node.js >= 18 and Yarn.

git clone https://github.com/Orel-Toledano/mcp-server-dev-docs.git
cd mcp-server-dev-docs
yarn install
yarn build      # compiles TypeScript to ./build and marks the entry executable
yarn start      # runs the compiled server over stdio

To point an MCP client at your local build, use an absolute path:

{
  "mcpServers": {
    "dev-docs": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-server-dev-docs/build/index.js"]
    }
  }
}

Smoke test

You can exercise the JSON-RPC handshake without a full client:

printf '%s\n' \
  '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0.0"}}}' \
  '{"jsonrpc":"2.0","method":"notifications/initialized"}' \
  '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}' \
  | node build/index.js

Or use the MCP Inspector:

npx @modelcontextprotocol/inspector node build/index.js

Publishing

This package builds automatically before publish via the prepare script.

# Inspect the tarball contents first (dry run)
yarn pack

# Authenticate with the npm registry
yarn login

# Publish (public access for unscoped/public packages)
yarn publish --access public

Only the compiled build/ directory is published (see the files field in package.json).

How it works

  • get_fullstack_docs resolves a target URL (from a preset or customUrl) and requests https://r.jina.ai/<target-url> with X-Return-Format: markdown.
  • find_docs_urls discovers candidate documentation URLs via DuckDuckGo HTML, then fetches each through the same Jina Reader path.
  • Large pages are truncated at 25,000 characters to keep responses LLM-friendly.

Project structure

src/
  index.ts                 # MCP server entry (stdio)
  presets.ts               # Built-in documentation presets
  fetchDocs.ts             # Jina Reader fetch + truncation
  search.ts                # Domain map, DDG query/parse helpers
  tools/
    index.ts               # Registers all tools
    listSupportedPresets.ts
    getFullstackDocs.ts
    detectProjectVersions.ts
    findDocsUrls.ts

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选