MCP (Model Context Protocol) server for generating technical documentation with diagrams.
📢 Status: Serwer MCP jest obecnie testowany w pracy.
Language / Język: English | Polski
📢 Status: The MCP server is currently being tested in production at work.
# 1. Start Docker containers
docker compose up -d
# 2. Use MCP client with your own prompt
python3 scripts/mcp_client.py -f examples/prompts/prompt.txt
# 3. Or use in Cursor - open conversation and use MCP toolsYou can install and run the server directly via npx without cloning the repository:
# Latest version from main branch
npx github:lukaszzychal/mcp-doc-generator
# Specific version (tag)
npx github:lukaszzychal/mcp-doc-generator#v0.1.3
# Specific branch
npx github:lukaszzychal/mcp-doc-generator#feat/test-npx-installationRequirements:
- Node.js >= 14.0.0 (for npx)
- Docker and Docker Compose (automatically managed by wrapper)
- Docker daemon must be running
No local Python, Graphviz, Pandoc, or other tools required! Everything runs in Docker containers.
For detailed instructions, see NPX_INSTALLATION.md.
Latest stable version: v0.1.3
For production use, we recommend using a tagged release:
# Clone specific version
git clone --branch v0.1.3 https://github.com/lukaszzychal/mcp-doc-generator.git
# Or checkout tag in existing repo
git checkout v0.1.3Available releases:
- v0.1.3 - npx installation support, Cursor rules
- v0.1.2 - CI/CD optimizations, Docker caching improvements
- v0.1.1 - Previous stable release
- v0.1.0 - Initial release
Note: The
mainbranch contains the latest development version. For production, use a tagged release.
For a smaller, more secure image (~300-500MB smaller):
docker compose -f docker-compose.distroless.yml up -dSee DOCKER_BUILD_OPTIMIZATION.md for details.
- USAGE_GUIDE.md - Complete usage guide (locally and with Cursor)
- QUICKSTART.md - Quick start in 5 minutes
- CURSOR_NPX_SETUP.md - Cursor configuration guide (npx and Docker)
- NPX_INSTALLATION.md - Installation via npx
- PROJECT_STRUCTURE.md - Project structure
- TEST_RESULTS_MCP.md - Test results for all tools
- DOCKER_CONTAINERS_EXPLAINED.md - Docker containers usage explained
- generate_c4_diagram - C4 architecture diagrams (context, container, component, code)
- generate_uml_diagram - UML diagrams (class, component, deployment, package, activity, usecase)
- generate_sequence_diagram - PlantUML sequence diagrams
- generate_flowchart - Mermaid flowcharts
- generate_mermaid_sequence - Mermaid sequence diagrams
- generate_gantt - Gantt charts
- generate_dependency_graph - Graphviz dependency graphs
- generate_cloud_diagram - draw.io cloud architecture diagrams
- export_to_pdf - Markdown to PDF export
- export_to_docx - Markdown to DOCX export
- create_document_from_template - Documents from templates (ADR, API Spec, C4, Microservices)
MCPServer/
├── src/ # MCP server source code
├── scripts/ # Helper scripts (mcp_client.py, install.sh, generate_examples.py)
├── tests/ # Tests and test files
├── docs/ # Project documentation
├── examples/ # Usage examples
└── output/ # Output directory (mounted in Docker)
Details: PROJECT_STRUCTURE.md
# From file
python3 scripts/mcp_client.py -f examples/prompts/prompt.txt
# From command line
python3 scripts/mcp_client.py -p "Generate C4 context diagram for e-commerce. Save as output/diagram.png"
# From stdin
cat prompt.txt | python3 scripts/mcp_client.pyTwo installation methods are available:
- Start containers:
docker compose up -d - Configure Cursor MCP settings:
{ "mcpServers": { "Documentation": { "command": "docker", "args": [ "exec", "-i", "mcp-documentation-server", "sh", "-c", "cd /app/src && PYTHONPATH=/app/src python server.py" ], "env": { "PYTHONPATH": "/app/src" } } } } - Restart Cursor
- Use MCP tools in conversation, e.g.:
- "Generate C4 Context Diagram for e-commerce system"
- "Create UML Class Diagram with User and Order classes"
- Make sure Docker is installed and running
- Configure Cursor MCP settings:
{ "mcpServers": { "mcp-doc-generator": { "command": "npx", "args": [ "github:lukaszzychal/mcp-doc-generator#v0.1.3" ] } } } - Restart Cursor
- The wrapper automatically manages Docker containers - no manual setup needed!
- Use MCP tools in conversation
See CURSOR_NPX_SETUP.md for detailed configuration instructions.
# Tests for all MCP tools
python3 tests/test_mcp_local.py
# Cursor integration test
./tests/test_mcp_cursor_integration.sh- Usage guide - Detailed instructions
- Quick start - Installation and configuration
- Test results - Status of all tools
- Examples - Usage examples for each tool
- Node.js >= 14.0.0 (for npx)
- Docker and Docker Compose (automatically managed)
- Docker daemon must be running
- Docker and Docker Compose
- Manual container management
- Cursor (for IDE integration)
See LICENSE
MCP (Model Context Protocol) server do generowania dokumentacji technicznej z diagramami.
📢 Status: Serwer MCP jest obecnie testowany w pracy.
# 1. Uruchom kontenery Docker
docker compose up -d
# 2. Użyj klienta MCP z własnym promptem
python3 scripts/mcp_client.py -f examples/prompts/prompt.txt
# 3. Lub użyj w Cursor - otwórz konwersację i użyj narzędzi MCPMożesz zainstalować i uruchomić serwer bezpośrednio przez npx bez klonowania repozytorium:
# Najnowsza wersja z gałęzi main
npx github:lukaszzychal/mcp-doc-generator
# Konkretna wersja (tag)
npx github:lukaszzychal/mcp-doc-generator#v0.1.3
# Konkretna gałąź
npx github:lukaszzychal/mcp-doc-generator#feat/test-npx-installationWymagania:
- Node.js >= 14.0.0 (dla npx)
- Docker i Docker Compose (automatycznie zarządzane przez wrapper)
- Docker demon musi być uruchomiony
Nie trzeba instalować Pythona, Graphviz, Pandoc ani innych narzędzi lokalnie! Wszystko działa w kontenerach Docker.
Szczegółowe instrukcje: NPX_INSTALLATION.md.
Najnowsza stabilna wersja: v0.1.3
Do użycia produkcyjnego zalecamy użycie tagowanej wersji:
# Sklonuj konkretną wersję
git clone --branch v0.1.3 https://github.com/lukaszzychal/mcp-doc-generator.git
# Lub przełącz się na tag w istniejącym repo
git checkout v0.1.3Dostępne wydania:
- v0.1.3 - Wsparcie instalacji npx, reguły Cursor
- v0.1.2 - Optymalizacje CI/CD, ulepszenia cache Docker
- v0.1.1 - Poprzednia stabilna wersja
- v0.1.0 - Wersja początkowa
Uwaga: Branch
mainzawiera najnowszą wersję deweloperską. Do produkcji używaj tagowanej wersji.
Dla mniejszego, bardziej bezpiecznego obrazu (~300-500MB mniej):
docker compose -f docker-compose.distroless.yml up -dZobacz DOCKER_BUILD_OPTIMIZATION.md dla szczegółów.
- USAGE_GUIDE.md - Kompletny przewodnik użycia (lokalnie i z Cursor)
- QUICKSTART.md - Szybki start w 5 minut
- CURSOR_NPX_SETUP.md - Przewodnik konfiguracji Cursor (npx i Docker)
- NPX_INSTALLATION.md - Instalacja przez npx
- PROJECT_STRUCTURE.md - Struktura projektu
- TEST_RESULTS_MCP.md - Wyniki testów wszystkich narzędzi
- generate_c4_diagram - Diagramy architektury C4 (context, container, component, code)
- generate_uml_diagram - Diagramy UML (class, component, deployment, package, activity, usecase)
- generate_sequence_diagram - Diagramy sekwencji PlantUML
- generate_flowchart - Flowchart Mermaid
- generate_mermaid_sequence - Diagramy sekwencji Mermaid
- generate_gantt - Wykresy Gantta
- generate_dependency_graph - Grafy zależności Graphviz
- generate_cloud_diagram - Diagramy architektury chmurowej draw.io
- export_to_pdf - Eksport markdown do PDF
- export_to_docx - Eksport markdown do DOCX
- create_document_from_template - Dokumenty z szablonów (ADR, API Spec, C4, Microservices)
MCPServer/
├── src/ # Kod źródłowy serwera MCP
├── scripts/ # Skrypty pomocnicze (mcp_client.py, install.sh)
├── tests/ # Testy i pliki testowe
├── docs/ # Dokumentacja projektu
├── examples/ # Przykłady użycia
└── output/ # Katalog wyjściowy (zmountowany w Docker)
Szczegóły: PROJECT_STRUCTURE.md
# Z pliku
python3 scripts/mcp_client.py -f examples/prompts/prompt.txt
# Z linii komend
python3 scripts/mcp_client.py -p "Generate C4 context diagram for e-commerce. Save as output/diagram.png"
# Z stdin
cat prompt.txt | python3 scripts/mcp_client.pyDostępne są dwie metody instalacji:
- Uruchom kontenery:
docker compose up -d - Skonfiguruj ustawienia MCP w Cursor:
{ "mcpServers": { "Documentation": { "command": "docker", "args": [ "exec", "-i", "mcp-documentation-server", "sh", "-c", "cd /app/src && PYTHONPATH=/app/src python server.py" ], "env": { "PYTHONPATH": "/app/src" } } } } - Zrestartuj Cursor
- Użyj narzędzi MCP w konwersacji, np.:
- "Wygeneruj C4 Context Diagram dla systemu e-commerce"
- "Utwórz UML Class Diagram z klasami User i Order"
- Upewnij się, że Docker jest zainstalowany i uruchomiony
- Skonfiguruj ustawienia MCP w Cursor:
{ "mcpServers": { "mcp-doc-generator": { "command": "npx", "args": [ "github:lukaszzychal/mcp-doc-generator#v0.1.3" ] } } } - Zrestartuj Cursor
- Wrapper automatycznie zarządza kontenerami Docker - brak ręcznej konfiguracji!
- Użyj narzędzi MCP w konwersacji
Zobacz CURSOR_NPX_SETUP.md dla szczegółowych instrukcji konfiguracji.
# Testy wszystkich narzędzi MCP
python3 tests/test_mcp_local.py
# Test integracji z Cursor
./tests/test_mcp_cursor_integration.sh
# Podstawowe testy systemu
./scripts/test.sh- Przewodnik użycia - Szczegółowe instrukcje
- Szybki start - Instalacja i konfiguracja
- Wyniki testów - Status wszystkich narzędzi
- Przykłady - Przykłady użycia każdego narzędzia
- Node.js >= 14.0.0 (dla npx)
- Docker i Docker Compose (automatycznie zarządzane)
- Docker demon musi być uruchomiony
- Docker i Docker Compose
- Ręczne zarządzanie kontenerami
- Cursor (dla integracji z IDE)
Zobacz LICENSE