mcp-doc-agent
Generates and maintains Markdown documentation files for the codebase.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP-DOC-AGENT
MCP-DOC-AGENT is a developer tool that enables Agentic AI to automatically generate and maintain GitBook-style documentation for codebases. It is designed to help developers and teams keep their documentation up-to-date and comprehensive with minimal manual effort.
Overview
Under the hood, MCP-DOC-AGENT performs the following steps:
Retrieves repository information and generates a repository tree to understand the structure.
Ignores development folders and files (e.g., node_modules, .env, and other irrelevant files).
Scans all important files to generate context for documentation.
Sequentially generates key markdown files for the project.
Uses Docsify to create and serve GitBook-style documentation.
Allows ongoing maintenance and updates to the generated docs.
It leverages a powerful stack including:
uv: For fast Python package management and execution.
fastmcp and mcp: For agent orchestration and server management.
cursor: For code navigation and analysis.
Agentic AI: For intelligent code understanding and documentation generation.
Docsify: For rendering and maintaining beautiful, interactive documentation sites.
Related MCP server: autowiki-mcp
Features
GitBook-Style Documentation: Automatically generates and maintains documentation in a familiar, interactive format.
Repository Analysis: Provides detailed information about repository structure, files, and content.
Smart File Selection: Ignores unnecessary dev files and folders, focusing on what matters.
Contextual Scanning: Scans and analyzes important files to generate rich documentation context.
Custom Tools: Includes utilities for file content extraction, repository details, and more.
Extensible Architecture: Easily add new tools or extend existing ones for custom workflows.
Project Structure
app/
main.py # Main entry point for the application
server.py # Server logic for running the agent
deepwiki/
deepwiki_extractor.py # Core logic for extracting documentation
prompt/
prompt.txt # Prompt templates for extraction
tools/
client.py # Client utilities
file_content.py # File content extraction logic
file_info.py # File metadata utilities
repository_details.py# Repository details extraction
repository_tree.py # Repository tree structure logicGetting Started
Clone the repository:
git clone <repo-url> cd mcp-doc-agentInstall dependencies:
pip install -r requirements.txtOr, if using Poetry:
poetry installIntegrate with MCP Agent:
Add this server as a tool in your MCP agent configuration. Example configuration:
{ "mcpServers": { "mcp-doc-agent": { "command": "uv", "args": [ "--directory", "/path/to/mcp-doc-agent/app", "run", "main.py" ] } } }This will run the server using the correct command and arguments for integration with your MCP agent.
Requirements
Python 3.12+
See
pyproject.tomlfor dependencies
Usage
Once integrated, your Agentic AI agent will use this server to:
Analyze your codebase and generate a repository tree
Ignore dev files/folders and focus on important code
Generate markdown documentation files for your project
Use Docsify to serve and maintain a GitBook-style documentation site
You can customize prompts and tools as needed for your workflow.
License
See the LICENCE file for license information.
Contributing
Contributions are welcome! Please open issues or submit pull requests for improvements or bug fixes.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Serves your design system and coding standards to coding agents, so they stop guessing.
Shared project docs, task planning and GitHub evidence for people and their AI agents.
Project memory, documentation and controlled secret access for AI coding agents.
Versioned documentation registry and semantic search for AI tools and coding assistants.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAutomatically generates and maintains living documentation for codebases by creating hierarchical hivemind.md files and flowchart diagrams at every directory level, enabling AI navigation and real-time or retroactive documentation of code structure, requirements, and dependencies.10 PyPIMIT
- AlicenseNot gradedqualityDmaintenanceAutomatically generates comprehensive wiki documentation from any codebase, including Mermaid diagrams, source code citations, and automated quality checks.3MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to run automated daily code reviews, retrieve Markdown reports, and curate a project knowledge base across any Git repository.AGPL 3.0
- AlicenseNot gradedqualityCmaintenanceEnables onboarding a codebase for AI-agent-assisted development by scanning projects, collecting human-only answers, and maintaining traceable living documentation under .ai/ for both humans and AI coding agents.MIT