The Model Context Protocol (MCP) lets AI assistants query your OpsTrails timeline directly. Instead of manually searching for events, ask your AI assistant questions like“what was deployed in the last 2 hours?” or“did the error rate spike after the last deployment?”
MCP is an open protocol that enables AI models to interact with external data sources and tools. When you connect OpsTrails as an MCP server, your AI assistant gains access to 8 tools for querying events, analyzing metrics, and understanding your operational history.
The OpsTrails MCP server is available at:
https://api.opstrails.dev/api/mcp/mcp
Transport: Streamable HTTP
There are two ways to authenticate with the MCP server:
💡 Info
The MCP server exposes 8 tools. See the MCP Tools Reference for full documentation.
get_organization_context — Understand the org's data modelquery_events — Search and filter eventsget_event_summary — High-level activity overviewlist_event_types — Discover tracked event typeslist_event_sources — Discover tracked sourceslist_event_subjects — Discover tracked subjectsget_metrics_around_event — Before/after metric comparisonlist_metric_names — Available metrics