Documentation

AI

MCP Server Monitoring

Monitor how AI clients use the MCP server your application exposes

If your application exposes an MCP server, Monocle provides a dedicated dashboard for tracking how AI tools interact with it. See which tools are called, by whom, and how they perform.

MCP Monitoring dashboard with tool calls, response time, clients, and users

This page is about monitoring the MCP server your application exposes. To let your own AI assistant query Monocle, see Monocle MCP instead.

What Monocle tracks

  • Overview stats: total tool calls, average and P95 latency, error rate, unique users and clients
  • Calls and duration charts: time-series showing success/error distribution and latency trends
  • Clients table: which MCP clients are making calls, with volume and timing data
  • Users table: which users are using the MCP server
  • Tools table: breakdown by tool with call count, latency percentiles, and error rate. Click any tool to see its detailed metrics and recent calls with links to full traces.

Span attributes

Since there is no official OpenTelemetry semconv for MCP yet, attributes use the mcp.* namespace. All MCP instrumentations must emit these attributes for the dashboard to work correctly.

Core attributes

AttributeDescription
mcp.method.nameJSON-RPC method (e.g., tools/call)
mcp.request.idJSON-RPC request ID
mcp.session.idTransport session ID
mcp.transportTransport class name

Identity attributes

AttributeDescription
mcp.server.nameServer name
mcp.server.versionServer version
mcp.client.nameClient name (from initialize request)
mcp.client.versionClient version
mcp.protocol.versionNegotiated protocol version

Target attributes

AttributeWhen
mcp.tool.nametools/call requests
mcp.resource.uriresources/* requests
mcp.prompt.nameprompts/get requests

Monocle attributes

AttributeDashboard Feature
mcp.tool.nameTool breakdown table, per-tool detail page
mcp.client.nameClients table
mcp.tool.result.is_errorError rate calculations

Error attributes

These follow the RPC Semantic Conventions:

AttributeDescription
rpc.jsonrpc.error_codeJSON-RPC error code
rpc.jsonrpc.error_messageJSON-RPC error message

Setup

Search documentation

Search pages and sections of the Monocle documentation