ai-docs-mcp
0
AI Docs MCP Server is a Model Context Protocol server providing documentation access to AI assistants. It offers categorized tools for efficient documentation management and retrieval, supporting technologies like Flutter and various code guidelines.
AI Docs MCP Server
MCP server for providing documentation to Claude and other AI assistants through the Model Context Protocol (MCP).
Features
- Serves documentation through a standardized MCP interface
- Provides categorized documentation tools:
list-documentation
: Lists all available documentation filesget-documentation
: Retrieves documentation by category and nameflutter
: Returns Flutter-related documentationtesting
: Returns testing documentation across technologiescode-guidelines
: Returns code guidelines documentationservice-docs
: Returns service documentation
Installation
Global Installation
npm install -g ai-docs-mcp-server
Local Installation
npm install ai-docs-mcp-server
Usage
As a Command Line Tool
When installed globally:
ai-docs-mcp
With Claude CLI
# Add the MCP server
claude mcp add ai-docs -- ai-docs-mcp
Programmatic Usage
import { configureServer } from 'ai-docs-mcp-server';
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
// Create server
const server = new McpServer({
name: "AI-Docs",
version: "0.1.0",
description: "MCP server for AI documentation tools",
capabilities: { tools: {} }
});
// Configure the server with tools
configureServer(server);
// Connect to transport
const transport = new StdioServerTransport();
server.connect(transport);
Documentation Structure
Place your documentation in the docs
directory with the following structure:
/docs
├── code_guidelines/ # Code guidelines documentation
│ ├── flutter/ # Flutter guidelines
│ ├── git/ # Git guidelines
│ ├── nestjs/ # NestJS guidelines
│ └── react/ # React guidelines
└── service-docs/ # Service documentation
Requirements
- Node.js >= 20.0.0
License
MIT