documentation-assistant
Automatically analyzes Python codebases and generates professional documentation including README, API docs, and setup guides.
README
Documentation Assistant
A comprehensive MCP (Model Context Protocol) server that automatically analyzes Python codebases and generates professional documentation.
Features
- Repository Scanning: Automatically discovers and analyzes Python files
- Documentation Generation: Creates README, API docs, and setup guides
- Interactive Help: Explains specific functions and classes
- Dependency Tracking: Identifies all imports and packages
- MCP Integration: Works seamlessly with Claude Desktop
Quick Start
Installation
- Clone the repository:
git clone https://github.com/YOUR_USERNAME/documentation-assistant.git
cd documentation-assistant
- Create virtual environment:
python -m venv venv
# On Windows:
venv\Scripts\activate
# On Mac/Linux:
source venv/bin/activate
- Install dependencies:
pip install -r requirements.txt
Configuration
Add to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"documentation-assistant": {
"command": "python",
"args": ["/absolute/path/to/doc_assistant_mcp.py"]
}
}
}
Available Tools
scan_repository- Analyze Python files in a directorygenerate_readme- Create comprehensive READMEgenerate_api_docs- Generate API documentationgenerate_setup_guide- Create setup instructionsexplain_code- Explain specific functions/classeslist_dependencies- Show all project dependencies
Documentation
- Integration Guide - Complete setup instructions
- API Documentation - Generated example docs
- Setup Guide - Installation and configuration
- Conversation Logs - Usage examples
- Project Summary - Technical details
Testing
Run the test suite:
python test_client.py
Requirements
- Python 3.8+
- MCP SDK
- Dependencies listed in requirements.txt
License
MIT License
Contributing
Contributions welcome! Please read the contributing guidelines first.
Support
For issues or questions, please open an issue on GitHub.
Author
Lubaina - lubainahumayoun@gmail.com
Acknowledgments
- Built with MCP (Model Context Protocol)
- Uses Python AST for code analysis
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.