Deploys the MCP server on Cloudflare's edge network for global distribution, leveraging Workers, D1 Database, R2 Storage, and Durable Objects
Extracts API endpoints and structure from Django web applications
Analyzes Express.js applications to document API endpoints and routes
Detects and documents API endpoints from FastAPI projects
Discovers and documents API endpoints from Flask applications
Integrates with Git repositories for project analysis and documentation generation
Allows analysis of GitHub repositories to extract project structure, dependencies, and codebase metrics
Discovers and documents API endpoints from Spring framework applications
š Document Automation MCP Server
A powerful Model Context Protocol (MCP) server that provides intelligent codebase analysis, comprehensive documentation generation, and multi-format export capabilities. Built for seamless integration with Claude and other AI assistants.
⨠Features
š Intelligent Codebase Analysis
AST Parsing: Deep analysis of Python and JavaScript code structures
Framework Detection: Automatically identifies frameworks (React, Flask, Django, FastAPI, etc.)
Database Schema Analysis: Extracts and visualizes database relationships
API Endpoint Discovery: Maps REST endpoints with methods and parameters
Security Scanning: Identifies potential vulnerabilities and best practices
Dependency Tracking: Analyzes project dependencies and versions
š Professional Documentation Generation
Multiple Formats: Markdown, HTML, PDF, DOCX, Confluence, Notion, JSON, EPUB
Interactive Documentation: Search, navigation, syntax highlighting
Mermaid Diagrams: Architecture, database ER, API flows, dependency graphs
Multi-language Support: Built-in internationalization
Custom Themes: Modern, minimal, dark, corporate, and more
Accessibility Compliant: WCAG 2.1 AA standards
š Advanced Capabilities
Pagination Support: Handles large repositories efficiently
Background Processing: Async analysis for better performance
Smart Chunking: Token-aware content splitting
Concurrent Analysis: Parallel file processing
Export Automation: Batch export to multiple formats
Archive Generation: ZIP, TAR, TAR.GZ support
Related MCP server: JSON Resume MCP Server
š Table of Contents
š Installation
Prerequisites
Python 3.8 or higher
Git
Claude Desktop or MCP-compatible client
Using pip
Using uv (Recommended)
šÆ Quick Start
1. Configure Claude Desktop
Add the following to your Claude Desktop configuration file:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
2. Start the Server
3. Use in Claude
Once configured, Claude can analyze codebases and generate documentation:
āļø Configuration
Environment Variables
Create a .env file in the project root:
MCP Server Configuration
The server can be configured via wrangler.toml for Cloudflare Workers deployment:
š Usage Examples
Analyze a Local Codebase
Analyze a GitHub Repository
Generate Documentation
Export to Multiple Formats
š API Reference
Core Tools
analyze_codebase
Comprehensive codebase analysis with built-in features.
Parameters:
path(str): Local path or GitHub URLsource_type(str): "local" or "github"include_ast_analysis(bool): Enable AST parsinginclude_framework_detection(bool): Detect frameworksinclude_database_analysis(bool): Analyze database schemasinclude_mermaid_diagrams(bool): Generate diagramsinclude_api_endpoints(bool): Extract API routesinclude_security_analysis(bool): Security scanningmax_files(int): Maximum files to analyze (default: 1000)pagination_strategy(str): "auto", "file_by_file", "chunk_by_chunk", "smart"
Returns:
generate_documentation
Generate professional documentation with all features built-in.
Parameters:
analysis_id(str): ID from previous analysisformat(str): "markdown", "html", "pdf", "interactive", etc.theme(str): "modern", "minimal", "dark", "corporate", etc.include_toc(bool): Table of contentsinclude_search(bool): Search functionalityinclude_navigation(bool): Navigation sidebarauto_export_formats(list): Additional export formats
Returns:
export_documentation
Export to multiple formats with advanced features.
Parameters:
analysis_id(str): ID from previous analysisformats(list): Export formatstheme(str): Documentation themeaccessibility_compliance(bool): WCAG 2.1 AA compliancearchive_formats(list): Archive types ["zip", "tar", "tar.gz"]
š Project Structure
šļø Architecture
System Overview
Component Interaction
š ļø Development
Setup Development Environment
Running Tests
Code Quality
š¤ Contributing
Contributions are welcome! Please follow these guidelines:
Fork the repository
Create a feature branch:
git checkout -b feature/amazing-featureCommit your changes:
git commit -m 'Add amazing feature'Push to the branch:
git push origin feature/amazing-featureOpen a Pull Request
Contribution Guidelines
Follow PEP 8 style guide
Add tests for new features
Update documentation
Ensure all tests pass
Keep commits atomic and well-described
š Performance
Benchmarks
Operation | Small Repo (<100 files) | Medium Repo (100-1000 files) | Large Repo (>1000 files) |
Analysis | ~5 seconds | ~30 seconds | ~2-5 minutes |
Doc Generation | ~2 seconds | ~10 seconds | ~30 seconds |
Export (all formats) | ~3 seconds | ~15 seconds | ~45 seconds |
Optimization Tips
Use
pagination_strategy="smart"for large repositoriesEnable
include_security_analysis=Falseif not neededLimit
max_filesfor faster analysisUse concurrent processing for multiple projects
š Troubleshooting
Common Issues
Issue: ModuleNotFoundError: No module named 'src'
Issue: GitHub rate limiting
Issue: Memory errors with large repositories
š License
This project is licensed under the MIT License - see the LICENSE file for details.
š Acknowledgments
Built with the Model Context Protocol
Powered by Claude
Diagram generation using Mermaid
š® Contact
Vedant Parmar - @vedantparmar12
Project Link: https://github.com/vedantparmar12/Document-Automation
šŗļø Roadmap
Support for more programming languages (Go, Rust, Java)
Real-time collaboration features
Cloud storage integration (S3, GCS)
API documentation auto-generation from OpenAPI specs
Enhanced security scanning with CVE database
Performance profiling and optimization suggestions
Custom template support
CLI tool for standalone use
ā Star History
If you find this project useful, please consider giving it a star! ā
Made with ā¤ļø by Vedant Parmar