mcp-docs-server

preston176/mcp-docs-server

3.1

If you are the rightful owner of mcp-docs-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

This MCP server fetches live documentation pages from official sources and exposes them to an MCP-compatible client.

Next.js Docs MCP Server (TypeScript / Node.js)

This MCP server fetches live documentation pages from official sources (Next.js, React, TypeScript, Tailwind, Drizzle, Clerk, Vercel, Neon) and exposes them to an MCP-compatible client (e.g., the VS Code MCP client / Cursor).

What this includes

  • Minimal MCP server using model-context-protocol.
  • Live fetch of documentation URLs (no local doc copies).
  • Basic HTML-to-text conversion using cheerio.
  • Simple in-memory caching to avoid refetching the same page repeatedly.

Quick start

  1. Extract the zip and open the folder.
  2. Install dependencies:
    pnpm install
    # or npm install
    
  3. Run the server:
    pnpm dev
    # or npm run dev
    
  4. Register .mcp.json with your MCP-capable client (VS Code MCP client or Cursor).

Usage examples (from your AI assistant)

  • docs.getDocs({ tool: "next" }) → fetches https://nextjs.org/docs
  • docs.getDocs({ tool: "drizzle" }) → fetches Drizzle docs page indicated in src/data/sources.json

Add or edit sources

Edit src/data/sources.json to change or add documentation sources.

Notes

  • This project uses ESM and requires Node.js 18+.
  • The server uses an in-memory cache. For production use, replace with Redis or filesystem cache.
  • The model-context-protocol package is referenced as latest. When integrating with a specific MCP client, ensure compatibility and provide any required runtime flags.