Provides tools for interacting with the Notion API to access the CompText Codex, enabling capabilities such as searching the database, retrieving specific modules, fetching full page content, and filtering entries by tags or types.
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., "@CompText MCP Serversearch the codex for docker deployment modules"
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.
🚀 CompText MCP Server
Ein hochperformanter MCP (Model Context Protocol) Server für CompText DSL mit REST API Wrapper - deployed auf Render.com.
📋 Features
✅ CompText DSL Support - Vollständiger Zugriff auf den CompText Codex
✅ MCP Protocol - Native MCP-Server-Implementierung für Claude Desktop
✅ REST API - FastAPI HTTP Wrapper für universellen Zugriff
✅ Caching & Performance - LRU-Cache mit automatischem Retry-Mechanismus
✅ Type Safety - Vollständige Type Hints und Validierung
✅ Error Handling - Exponential Backoff und umfassende Fehlerbehandlung
✅ Security - Input-Validierung und Sanitization
✅ Production Ready - Docker, Health Checks, Monitoring
🏗️ Architektur
🔧 Installation & Verwendung
Voraussetzungen
Python 3.10+
Notion API Token
CompText Database ID
Lokale Entwicklung
MCP Server (für Claude Desktop)
Konfiguration in Claude Desktop (claude_desktop_config.json):
REST API Server
Server läuft auf http://localhost:8000
📊 API Endpoints
REST API
Endpoint | Methode | Beschreibung |
| GET | API Info |
| GET | Health Check mit Notion-Status |
| GET | Alle Module mit Statistiken |
| GET | Spezifisches Modul (A-M) |
| GET | Suche im Codex |
| GET | Vollständiger Seiteninhalt |
| GET | Filter nach Tag |
| GET | Filter nach Typ |
| GET | Codex Statistiken |
| POST | Cache leeren |
| GET | Interaktive API Dokumentation |
MCP Tools
Der MCP Server bietet folgende Tools:
list_modules- Liste aller Module (A-M)get_module- Lade spezifisches Modulget_command- Lade Seiteninhaltsearch- Durchsuche Codexget_by_tag- Filter nach Tagget_by_type- Filter nach Typget_statistics- Codex Statistiken
🐳 Docker Deployment
🚀 Deployment auf Render.com
Automatisches Deployment
Push zu GitHub
Gehe zu render.com/deploy
Verbinde Repository
Render erkennt automatisch
render.yamlSetze Environment Variables:
NOTION_API_TOKENCOMPTEXT_DATABASE_ID(optional)
Click "Apply" → Fertig! ✅
Nach dem Deployment
Du erhältst eine URL wie: https://comptext-mcp.onrender.com
API Docs: https://comptext-mcp.onrender.com/docs
🔑 Umgebungsvariablen
📖 Verwendungsbeispiele
Python Client
REST API
JavaScript/TypeScript
🧪 Testing
⚡ Performance-Hinweise
Caching:
get_all_modules()ist gecached (LRU, 128 Einträge)Retry-Logik: Automatische Wiederholung bei API-Fehlern (3x, exponential backoff)
Free Tier Sleep: Render.com schläft nach 15 Min Inaktivität
Erste Anfrage nach Pause: ~30 Sek (Cold Start)
Lösung: Verwende Render's Cron Jobs für Keep-Alive Pings
🛡️ Security Features
✅ Input-Validierung für alle User-Eingaben
✅ Page ID Format-Validierung
✅ Query String Sanitization
✅ Text Output Sanitization
✅ CORS-Konfiguration
✅ Error Message Sanitization
🔧 Entwicklung
📚 Module Übersicht
Modul | Beschreibung |
A | Allgemeine Befehle |
B | Programmierung |
C | Visualisierung |
D | KI-Steuerung |
E | Datenanalyse & ML |
F | Dokumentation |
G | Testing & QA |
H | Database & Data Modeling |
I | Security & Compliance |
J | DevOps & Deployment |
K | Frontend & UI |
L | Data Pipelines & ETL |
M | MCP Integration |
🤝 Contributing
Siehe CONTRIBUTING.md für Richtlinien.
📄 Lizenz
MIT License - siehe LICENSE für Details.