DocuMCP (RAG Documentation Server)

DocuMCP (RAG Documentation Server)

yannicktm

Generates intelligent documentation for codebases using RAG and semantic search, with optional multi-agent orchestration for large-scale documentation workflows.

RAG-enabled documentation server that integrates with vector databases to provide semantic search capabilities for code, documentation, and diagrams without data leaving your environment.

6284 views3Local (stdio)

What it does

  • Generate documentation from codebases automatically
  • Search code and docs using semantic similarity
  • Create and merge architectural diagrams
  • Spawn multiple Claude agents for parallel processing
  • Store embeddings in vector databases locally
  • Track documentation generation costs and metrics

Best for

Developers maintaining large codebasesTeams needing automated documentation workflowsEnterprise applications requiring comprehensive docsProjects wanting semantic code search capabilities
Data stays in your environmentMulti-agent orchestration for scaleMultiple vector database options

About DocuMCP (RAG Documentation Server)

DocuMCP (RAG Documentation Server) is a community-built MCP server published by yannicktm that provides AI assistants with tools and capabilities via the Model Context Protocol. DocuMCP: RAG documentation server with on-prem semantic search for code, docs, and diagrams — integrates vector DBs with It is categorized under ai ml, developer tools.

How to install

You can install DocuMCP (RAG Documentation Server) in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

License

DocuMCP (RAG Documentation Server) is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

DocuMCP

šŸ¤– A comprehensive MCP system for intelligent code documentation generation with RAG capabilities and multi-agent orchestration

DocuMCP consists of two complementary MCP servers:

  1. DocuMCP Server: Core documentation generation with vector embeddings and semantic search
  2. 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

šŸš€ 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.json
  • Windows: %APPDATA%/Claude/claude_desktop_config.json

For Core DocuMCP Server:

{
  "mcpServers": {
    "docu-mcp": {
      "command": "npx",
      "args": ["-y", "@myjungle/docu-mcp-server"]
    }
  }
}

For DocuMCP Manager (Agent Orchestration):

{
  "mcpServers": {
    "docu-mcp-manager": {
      "command": "npx",
      "args": ["-y", "@myjungle/docu-mcp-manager"]
    }
  }
}

Restart Claude Desktop and both servers will be available.

Alternative Installation Methods

Using Smithery CLI

Install the server via Smithery CLI:

# Install Smithery CLI if you don't have it
npm install -g @smithery/cli

# Then install the Docu MCP server
npx -y @smithery/cli@latest install @YannickTM/docu-mcp --client claude

šŸš€ Manual Start

1. Clone and Install

git clone https://github.com/YannickTM/docu-mcp
cd docu-mcp
npm install

2. Build the Servers

# Build DocuMCP Server
cd mcp
npm run build
cd ..

# Build DocuMCP Manager
cd manager
npm run build
cd ..

3. Advanced Configuration

Add the following to your Claude Desktop configuration:

  • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%/Claude/claude_desktop_config.json

Configuration for Both Servers:

{
  "mcpServers": {
    "docu-mcp": {
      "command": "node",
      "env": {
        "VECTOR_DB_PROVIDER": "qdrant",
        "QDRANT_URL": "http://localhost:6333",
        "EMBEDDING_PROVIDER": "ollama",
        "EMBEDDING_MODEL": "bge-m3:latest",
        "EMBEDDING_DIMENSION": "1024",
        "OLLAMA_URL": "http://localhost:11434"
      },
      "args": ["/absolute/path/to/DocuMCP/mcp/dist/index.js"]
    },
    "docu-mcp-manager": {
      "command": "node",
      "env": {
        "VECTOR_DB_PROVIDER": "qdrant",
        "QDRANT_URL": "http://localhost:6333",
        "EMBEDDING_PROVIDER": "ollama",
        "EMBEDDING_MODEL": "bge-m3:latest",
        "EMBEDDING_DIMENSION": "1024",
        "OLLAMA_URL": "http://localhost:11434",
        "SUB_AGENT_MODEL": "claude-3-7-sonnet-latest"
      },
      "args": ["/absolute/path/to/DocuMCP/manager/dist/index.js"]
    }
  }
}

Important: Both servers should use the same vector database configuration to enable shared access.

4. Start Required Services (if using external providers)

For Qdrant:

cd qdrant
npm run start

For ChromaDB:

cd chromadb
npm run start

5. Restart Claude Desktop

Restart Claude Desktop to load the new configuration.

šŸ› ļø Configuration Options

Vector Database Providers

ProviderDescriptionConfiguration
LanceDBFile-based local database (default)VECTOR_DB_PROVIDER=lance
LANCE_PATH=~/lanceDB
ChromaDBSimple vector database with web UIVECTOR_DB_PROVIDER=chroma
CHROMA_URL=http://localhost:8000
QdrantProduction-grade vector databaseVECTOR_DB_PROVIDER=qdrant
QDRANT_URL=http://localhost:6333

Embedding Providers

ProviderDescriptionConfiguration
Built-inUses all-MiniLM-L6-v2 model (default)EMBEDDING_PROVIDER=buildin
EMBEDDING_MODEL=all-MiniLM-L6-v2
EMBEDDING_DIMENSION=384
OllamaUse any Ollama modelEMBEDDING_PROVIDER=ollama
EMBEDDING_MODEL=bge-m3:latest
EMBEDDING_DIMENSION=1024
OLLAMA_URL=http://localhost:11434

šŸ”§ 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 tasks
    • manage_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 ā¤ļø

Alternatives

Related Skills

Browse all skills
ui-design-system

UI design system toolkit for Senior UI Designer including design token generation, component documentation, responsive design calculations, and developer handoff tools. Use for creating design systems, maintaining visual consistency, and facilitating design-dev collaboration.

18
ai-sdk

Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: "AI SDK", "Vercel AI SDK", "generateText", "streamText", "add AI to my app", "build an agent", "tool calling", "structured output", "useChat".

6
api-documenter

Master API documentation with OpenAPI 3.1, AI-powered tools, and modern developer experience practices. Create interactive docs, generate SDKs, and build comprehensive developer portals. Use PROACTIVELY for API documentation or developer portal creation.

4
openai-knowledge

Use when working with the OpenAI API (Responses API) or OpenAI platform features (tools, streaming, Realtime API, auth, models, rate limits, MCP) and you need authoritative, up-to-date documentation (schemas, examples, limits, edge cases). Prefer the OpenAI Developer Documentation MCP server tools when available; otherwise guide the user to enable `openaiDeveloperDocs`.

4
aws-advisor

Expert AWS Cloud Advisor for architecture design, security review, and implementation guidance. Leverages AWS MCP tools for accurate, documentation-backed answers. Use when user asks about AWS architecture, security, service selection, migrations, troubleshooting, or learning AWS. Triggers on AWS, Lambda, S3, EC2, ECS, EKS, DynamoDB, RDS, CloudFormation, CDK, Terraform, Serverless, SAM, IAM, VPC, API Gateway, or any AWS service.

4
audit-prep-assistant

Prepares codebases for security review using Trail of Bits' checklist. Helps set review goals, runs static analysis tools, increases test coverage, removes dead code, ensures accessibility, and generates documentation (flowcharts, user stories, inline comments).

1