mcp-doc-generator
Verified Safeby lukaszzychal
Overview
Generates technical documentation and various diagrams (architecture, UML, sequence, flowchart, Gantt, dependency, cloud) from code or natural language prompts, supporting Polish, and exports to PDF/DOCX. Includes optional AI image generation.
Installation
npx github:lukaszzychal/mcp-doc-generatorEnvironment Variables
- PLANTUML_SERVER
- OPENAI_API_KEY
Security Notes
The server uses subprocess execution for Graphviz, Pandoc, and Mermaid CLI, but input content is generally written to temporary files and output paths are carefully constructed with absolute paths within a dedicated output volume, mitigating direct command injection risks. OpenAI and Mermaid.ink API calls are made via `aiohttp`, reducing direct shell interaction. Environment variables are used for API keys. Designed to run in Docker, providing isolation. The `_enhance_prompt_for_no_text` function handles user prompts before passing to DALL-E, but the parsing in `mcp_client.py` (client-side) could lead to unexpected arguments if not handled carefully, though server-side tools have input validation.
Similar Servers
mcp-mermaid
Generate Mermaid diagrams and charts from textual syntax, primarily for AI models or documentation platforms to visualize information dynamically.
diagram-mcp-server
Generates infrastructure diagrams from Python code or Infrastructure-as-Code (IaC) files across various cloud providers and on-premises environments.
sailor
AI-powered generation, validation, rendering, and manipulation of Mermaid diagrams for documentation, design, and analysis tasks.
DAUT
AI-powered tool to automatically generate and maintain documentation for codebases using LLMs and RAG.