v0.7.0: MCP Server to expose Orbit telemetry
-
MCP Server (
python manage.py orbit_mcp): Expose Orbit telemetry as an
MCP (Model Context Protocol) server so AI
assistants like Claude, Cursor, and Copilot can query your app's observability
data directly.Tools available to the AI:
get_recent_requests— last N HTTP requests with status, path, durationget_slow_queries— SQL queries above the slow-query threshold, sorted by durationget_exceptions— exceptions in a given time window with full tracebackget_n1_patterns— requests where N+1 duplicate queries were detectedsearch_entries— keyword search across all entry typesget_request_detail— every event (queries, logs, exceptions) for one request viafamily_hashget_stats_summary— error rate, avg response time, cache hit rate, top error paths
-
New optional dependency:
pip install django-orbit[mcp]installs themcp>=1.0package.
The core package remains dependency-free.
Configuration
ORBIT_CONFIG = {
'MCP_ENABLED': True, # default
}