Optional integration for running external vector databases like ChromaDB and Qdrant to support the documentation system
Supports indexing and searching through codebases, enabling documentation generation based on source code repositories
Required runtime environment for the MCP server, with support for Node.js 20.11.24+
Can be used as an embedding provider for generating vector embeddings with models like bge-m3, supporting the semantic search capabilities of the documentation system
DocuMCP
π€ A comprehensive MCP system for intelligent code documentation generation with RAG capabilities and multi-agent orchestration
DocuMCP consists of two complementary MCP servers:
DocuMCP Server: Core documentation generation with vector embeddings and semantic search
DocuMCP Manager: Agent orchestration for parallel documentation workflows using multiple Claude Code sub-agents
Together, they enable Claude to generate, search, and manage documentation for your codebase at any scale, from single files to entire enterprise applications.
β¨ Features
Core Documentation Features
π Generate and update documentation based on your codebase
π Semantic search across code, documentation, and diagrams
π Create and merge architectural diagrams
π Generate user guides
πΎ Support for multiple vector databases (LanceDB, ChromaDB, Qdrant)
π§ Flexible embedding providers (built-in or Ollama)
Multi-Agent Orchestration (Manager Server)
π€ Spawn multiple Claude Code sub-agents for parallel processing
π Monitor agent status and retrieve results
π Shared vector database across all agents
β‘ Scale documentation generation for large codebases
π° Track costs and performance metrics
Related MCP server: Claude AI Documentation Assistant
π Quick Start
Installation via NPX (Recommended)
The easiest way to use DocuMCP is to configure Claude Desktop with the published npm package:
Add the following to your Claude Desktop configuration:
MacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%/Claude/claude_desktop_config.json
For Core DocuMCP Server:
For DocuMCP Manager (Agent Orchestration):
Restart Claude Desktop and both servers will be available.
Alternative Installation Methods
Using Smithery CLI
Install the server via Smithery CLI:
π Manual Start
1. Clone and Install
2. Build the Servers
3. Advanced Configuration
Add the following to your Claude Desktop configuration:
MacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%/Claude/claude_desktop_config.json
Configuration for Both Servers:
Important: Both servers should use the same vector database configuration to enable shared access.
4. Start Required Services (if using external providers)
For Qdrant:
For ChromaDB:
5. Restart Claude Desktop
Restart Claude Desktop to load the new configuration.
π οΈ Configuration Options
Vector Database Providers
Provider | Description | Configuration |
LanceDB | File-based local database (default) |
|
ChromaDB | Simple vector database with web UI |
|
Qdrant | Production-grade vector database |
|
Embedding Providers
Provider | Description | Configuration |
Built-in | Uses all-MiniLM-L6-v2 model (default) |
|
Ollama | Use any Ollama model |
|
π§ Available Tools
DocuMCP Server Tools
π File Operations:
read_file,write_file,create_directory,read_directoryπ Search Tools:
search_codebase,search_documentation,search_diagram,search_user_guideπ Documentation:
generate_documentation,generate_user_guide,explain_codeπ Diagrams:
generate_diagram,merge_diagramποΈ Indexing:
index_file,index_directoryπ Merging:
merge_documentation
DocuMCP Manager Tools (includes all above plus):
π€ Agent Orchestration:
spawn_agent: Create Claude Code sub-agents for documentation tasksmanage_agent: Monitor, control, and retrieve results from agents
π Requirements
Node.js 20.11.24+
Claude Desktop
(Optional) Docker for running external vector databases
π€ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Made with β€οΈ