Documentation MCP Server
Analyzes CodeIgniter 3/4 projects to detect controllers, models, MVC patterns, routes, and middleware for documentation generation.
Generates React-based documentation structures, creates pages, builds static sites, and provides live preview for Docusaurus projects.
Performs AST-based deep code analysis using TypeScript Compiler API to extract classes, functions, interfaces, JSDoc comments, and module dependencies from JavaScript projects.
Analyzes Laravel projects to detect Illuminate components, attributes-based routes, middleware, and framework-specific patterns for documentation generation.
Creates and edits Markdown-based documentation pages with support for multiple documentation frameworks.
Performs AST-based analysis of PHP 8+ projects using nikic/php-parser to extract namespaces, classes, methods, enums, traits, attributes, PHPDoc comments, routes, and middleware with framework detection.
Performs native AST-based code analysis to extract classes, functions, docstrings, and module dependencies from Python projects for documentation generation.
Supports documentation generation using React-based Docusaurus framework with various templates.
Generates Python-based documentation structures, creates pages, builds static sites, and provides live preview for Sphinx projects.
Auto-generates OpenAPI 3.0/Swagger specifications from PHP code by converting routes to paths, middleware to security schemes, with JSON and YAML format support.
Analyzes Symfony projects to detect Symfony components, attribute-based routes, IsGranted middleware, and framework-specific patterns for documentation generation.
Performs AST-based deep code analysis using TypeScript Compiler API to extract classes, interfaces, functions, type aliases, JSDoc comments, and module dependencies from TypeScript projects.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Documentation MCP Serveranalyze my TypeScript project and generate API docs for Docusaurus"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ Documentation MCP Server
Ein Model Context Protocol (MCP) Server zum Generieren professioneller Dokumentationen mit Unterstรผtzung fรผr mehrere Frameworks.
โจ Features
๐ Deep Code Analysis - AST-basierte Multi-Language Analysis
TypeScript/JavaScript: TypeScript Compiler API
Python: Native Python AST module
Go: Go parser & AST
PHP: Regex-basierte Analyse + PHP 8+ Features
Extrahiert Klassen, Funktionen, Interfaces, Methoden, Properties
PHP 8+: Enums, Traits, Attributes
Erfasst JSDoc/Docstrings/Go Doc/PHPDoc und berechnet Dokumentations-Coverage
Analysiert Imports/Exports und Module-Dependencies
๐ Multi-Language Projects - Automatische Erkennung und parallele Analyse mehrerer Sprachen
๐ Projekt-Analyse - Automatische Code-Analyse fรผr TypeScript, JavaScript, Python, Go, PHP
๐๏ธ Struktur-Generierung - Erstellt komplette Dokumentations-Gerรผste
โ๏ธ Seiten-Editor - Erstellt und bearbeitet einzelne Dokumentationsseiten
๐ API-Dokumentation - Generiert API-Docs aus Code-Kommentaren
๐ Static Site Builder - Baut statische Websites fรผr Hosting
๐ PDF-Export - Konvertiert Dokumentation zu PDF
๐ Live-Preview - Lokaler Entwicklungsserver
๐ ๏ธ Unterstรผtzte Frameworks
Docusaurus (React-basiert, modern, verschiedene Templates)
MkDocs (Python-basiert, Markdown-fokussiert, einfach)
Sphinx (Python, sehr mรคchtig, fรผr komplexe Projekte)
๐ Quick Start
Verzeichnisse erstellen:
mkdir src mkdir src\toolsDependencies installieren:
npm installBuild:
npm run buildMCP Server in Claude Desktop konfigurieren (siehe SETUP.md)
๐ฆ Tools
docs_analyze_project
Analysiert Projekt-Struktur und fรผhrt Deep Code Analysis durch.
Parameter:
projectPath(string, required) - Pfad zum Projektlanguage(enum, optional) - Programmiersprache (typescript, javascript, python, go, rust, java, csharp)deep(boolean, optional, default: true) - Aktiviert Deep Code Analysis
Deep Analysis Features:
๐ฆ Extrahiert Classes/Structs, Interfaces, Functions, Enums, Type Aliases
๐ Erfasst Methods, Properties, Constructors mit vollstรคndigen Details
๐ Analysiert JSDoc/Docstrings/Go Doc und berechnet Documentation Coverage
๐ Trackt Imports/Exports und Module Dependencies
๐ Generiert Zusammenfassungs-Statistiken
๐ฏ Multi-Language Support:
โ TypeScript/JavaScript (TypeScript Compiler API)
โ Python (Native Python AST)
โ Go (go/parser & go/ast)
โ PHP v2 (nikic/php-parser AST) - Neu! 100% genau
Namespaces & Use-Statements
Union/Intersection/Nullable Types
Enums, Traits, Attributes (PHP 8+)
Framework Detection:
CodeIgniter 3/4 (Controller, Model)
Laravel (Illuminate*)
Symfony (Symfony*)
MVC Pattern Recognition
Route Detection: ๐
Convention-based:
/controller/method/{param}Attribute-based:
#[Get('/')],#[Post('/')]HTTP Methods: GET, POST, PUT, PATCH, DELETE
Parameter Types & Required/Optional Status
Middleware Detection: ๐
Laravel:
#[Middleware('auth')]Symfony:
#[IsGranted('ROLE_ADMIN')]CodeIgniter 4:
#[Filter('auth')]CodeIgniter 3:
@middleware(Docblocks)Class-Level & Method-Level
Middleware Parameters
OpenAPI 3.0 Export: ๐
Auto-generates Swagger/OpenAPI specs
Routes โ Paths conversion
Middleware โ Security Schemes
JSON & YAML format support
โ PHP v1 (Regex-based) - Fallback
๐ Automatische Multi-Language-Erkennung
๐ Rust, Java, C# (in Planung)
Beispiel-Rรผckgabe:
{
"deepAnalysis": {
"summary": {
"totalFiles": 11,
"totalClasses": 2,
"totalInterfaces": 23,
"totalFunctions": 16,
"overallDocCoverage": 3.17
}
}
}docs_generate_structure
Generiert Dokumentations-Gerรผst.
Parameter:
projectPath(string, required) - Pfad zum Projektframework(enum, required) - docusaurus | mkdocs | sphinxtemplate(string, optional) - Template-NameoutputPath(string, optional) - Ausgabepfad (default: ./docs)
docs_create_page
Erstellt oder bearbeitet Dokumentationsseite.
Parameter:
docsPath(string, required) - Pfad zur DokupagePath(string, required) - Relativer Pfad zur Seitetitle(string, required) - Seitentitelcontent(string, required) - Markdown-Inhalt
docs_generate_api
Generiert API-Dokumentation aus Code.
Parameter:
projectPath(string, required) - Pfad zum QuellcodeoutputPath(string, required) - Ausgabepfadlanguage(enum, required) - Programmiersprache
docs_build_static
Baut statische Website.
Parameter:
docsPath(string, required) - Pfad zur Dokuframework(enum, required) - FrameworkoutputPath(string, optional) - Ausgabepfad (default: ./build)
docs_export_pdf
Exportiert Dokumentation als PDF.
Parameter:
docsPath(string, required) - Pfad zur DokuoutputPath(string, required) - PDF-AusgabepfadincludePages(array, optional) - Spezifische Seiten
docs_preview
Startet lokalen Dev-Server.
Parameter:
docsPath(string, required) - Pfad zur Dokuframework(enum, required) - Frameworkport(number, optional) - Port (default: 3000/8000)
docs_generate_openapi
Generiert OpenAPI 3.0 Spezifikation aus PHP-Code.
Parameter:
projectPath(string, required) - PHP-Projekt PfadoutputPath(string, optional) - Ausgabepfad (default: ./openapi.json)format(enum, optional) - json | yaml (default: json)title(string, optional) - API-Titelversion(string, optional) - API-VersionserverUrl(string, optional) - API Server URL
docs_generate_sales_docs ๐ฏ NEU!
Generiert professionelle, verkaufsfertige Dokumentation fรผr CodeCanyon, ThemeForest, etc.
Parameter:
projectPath(string, required) - PHP-Projekt PfadoutputDir(string, optional) - Ausgabe-Verzeichnis (default: ./sales-docs)productName(string, required) - ProduktnameproductVersion(string, optional) - Version (default: 1.0.0)author(string, required) - Autor/Firmadescription(string, required) - Produktbeschreibungprice(string, optional) - Preis (z.B., "$49")demoUrl(string, optional) - Live-Demo URLsupportEmail(string, optional) - Support E-Mailfeatures(array, optional) - Liste der Key Features
Generierte Dateien:
README.md (2.5 KB) - Produkt-รbersicht mit Features, Statistiken, Requirements
INSTALLATION.md (3.2 KB) - Schritt-fรผr-Schritt Setup-Guide
API_REFERENCE.md (24.2 KB) - Komplette API-Dokumentation
CONFIGURATION.md (2.1 KB) - Umgebungsvariablen, Security
EXAMPLES.md (4.0 KB) - Code-Beispiele (JS, PHP, Python)
FAQ.md (2.2 KB) - Hรคufig gestellte Fragen
CHANGELOG.md (0.9 KB) - Versionshistorie
COMPLETE_DOCUMENTATION.md (39.0 KB) - All-in-One fรผr PDF
Gesamt: ~78 KB professionelle Dokumentation!
๐๏ธ Architektur
src/
โโโ index.ts # MCP Server Hauptdatei
โโโ core/ # Kern-Module fรผr Deep Analysis
โ โโโ types.ts # Type-Definitionen fรผr alle Sprachen
โ โโโ analyzer.ts # Abstract Base Class & Factory
โโโ analyzers/ # Sprachspezifische Analyzer
โ โโโ typescript.ts # TypeScript/JavaScript (TS Compiler API)
โ โโโ python.ts # Python Wrapper (subprocess)
โ โโโ go.ts # Go Wrapper (subprocess)
โ โโโ helpers/ # Native Language Parsers
โ โโโ python_analyzer.py # Python AST Parser
โ โโโ go_analyzer.go # Go AST Parser
โโโ tools/ # MCP Tool-Implementierungen
โโโ analyzeProject.ts # Deep Analysis Integration
โโโ generateStructure.ts
โโโ createPage.ts
โโโ generateApi.ts
โโโ buildStatic.ts
โโโ exportPdf.ts
โโโ preview.ts๐ฌ Deep Analysis Pipeline
File Scanning - Durchsucht Projekt-Verzeichnis
Language Detection - Erkennt dominante Programmiersprache
Analyzer Selection - Wรคhlt passenden AST-Parser (Factory Pattern)
AST Parsing - Parst Code-Dateien mit sprachspezifischem Parser
TypeScript: TS Compiler API (in-process)
Python: Python AST module (subprocess)
Go: go/parser & go/ast (subprocess)
Symbol Extraction - Extrahiert alle Code-Symbole (Classes, Functions, etc.)
Documentation Analysis - Erfasst Dokumentations-Kommentare
Summary Generation - Berechnet Statistiken und Coverage
๐ Lizenz
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/LiL-Loco/documentation-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server