mcp-docs-server
by mnemoverse
Overview
A universal template for creating Model Context Protocol (MCP) servers that provide AI agents with documentation access.
Installation
npx @mcp-x/mcp-docs-serverSecurity Notes
CRITICAL Path Traversal Vulnerability: The `getDocument` function in `src/lib/DocumentManager.ts` uses `path.join(this.docsPath, documentPath)` to resolve document paths. If `documentPath` is provided by an AI agent (or other user input) as an absolute path (e.g., `/etc/passwd` or `C:/Windows/System32/drivers/etc/hosts`), `path.join` will resolve to this absolute path, ignoring the intended `docsPath`. This allows arbitrary file reading outside the designated documentation directory. The server also executes shell commands in its build/template scripts but these are not runtime risks.
Similar Servers
mcp-server
Provides a Model Context Protocol (MCP) server for AI agents to search and retrieve curated documentation for the Strands Agents framework, facilitating AI coding assistance.
boilerplate-mcp-server
Provides a production-ready foundation for developing custom Model Context Protocol (MCP) servers in TypeScript to connect AI assistants with external APIs and data sources, exemplified by an IP geolocation tool.
mcp-server-nodejs-api-docs
Provides up-to-date Node.js API documentation and release schedule information as a service via the Model Context Protocol.
mcp-typescript-starter
A feature-complete Model Context Protocol (MCP) server template in TypeScript demonstrating all major MCP features for AI assistant interaction.