Skip to main content
Monocle supports the Model Context Protocol (MCP), enabling AI assistants like Claude Code, Cursor, and others to interact directly with your observability data. Let your AI tools help you debug issues, analyze traces, and explore your application’s telemetry.

Authentication

Monocle uses OAuth 2.1 to authenticate MCP connections. Your MCP client handles the full authorization flow — you just approve access in your browser. OAuth users are not tied to a single application. You can navigate between organizations, applications, and environments using the list_apps and list_environments tools.

Getting Started

This works with any MCP client that supports OAuth (Claude Code, Claude Desktop, Cursor, etc.).

Start Asking Questions

Once connected, you can ask your AI assistant questions about your application:
  • “What exceptions occurred in the last hour?”
  • “Show me the slowest API endpoints”
  • “Find traces with errors from the checkout service”
  • “What’s the P95 latency for the /api/users endpoint?”

Available Tools

Your AI assistant has access to the following tools:

Traces

Logs

Exceptions

Metrics

Endpoints

Database Queries

Background Jobs

Cache

External Calls

Custom Dashboards

Build and manage custom dashboards with metric widgets directly from your AI assistant. Dashboards use a 12-column grid layout.
Dashboard tools that create or modify data (create_dashboard, update_dashboard, delete_dashboard, add_widget, update_widget, remove_widget) require the mcp:write scope.

Example Queries

  • What exceptions occurred in the last hour?
  • What’s the P95 latency for POST /api/orders?
  • Search logs for “payment failed”
  • Which database queries are the slowest?
  • Create an issue for the recurring TypeError in checkout
  • Create a dashboard with charts for request latency and error rate