docusaurus-plugin-mcp-server
MCPDocusaurus plugin that exposes an MCP server endpoint for AI agents to search and retrieve documentation.
npx -y docusaurus-plugin-mcp-serverA Docusaurus plugin that exposes an MCP (Model Context Protocol) server endpoint, allowing AI agents like Claude, Cursor, and other MCP-compatible tools to search and retrieve your documentation.
The MCP server runs on any web-standard serverless or edge runtime — Cloudflare Workers, modern Netlify functions, Vercel Edge, Deno, Bun. Import the build artifacts and pass them to `createWebRequestHandler`, which returns a standard `(request: Request) => Promise `. (These runtimes can't read the filesystem, so the data is imported as modules rather than loaded from disk.)
The `export default { fetch }` form works on Cloudflare Workers, Deno, and Bun. Other runtimes use their own entry convention (e.g. modern Netlify functions `export default async (request) => Response`) — the handler is identical, only the export wrapper differs.
The handler is unauthenticated and allows all origins (`Access-Control-Allow-Origin: *`) by default, since a docs MCP endpoint is meant to be public — pass `corsOrigin` to restrict it.
- Source
- community
- Known advisories
- 0
- Maintenance
- active
- License
- MIT
- Age
- 6 months