AI

MCP Server Monitoring

Monitor how AI clients use the MCP server your application exposes

Looking to connect Claude Code, Cursor, or another AI assistant to Monocle? See Monocle MCP. This page is about monitoring 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

Dashboard

  • Overview: tool calls, latency, error rate, users and clients, with charts over time. The error rate counts tools/call requests only.
  • Tools: calls, average and P95 duration, and error rate per tool. Search and sort the table.
  • Clients and users: who calls your MCP server, and how often.
  • Tool page: click a tool to see its metrics and its recent calls. Filter them by status and sort them by time or duration. Each call shows its input, its output (or its error message when it failed), the user and a link to the trace.

A call counts as failed when its span has an error status, when the tool returns an isError result, or when the server answers with a JSON-RPC error.

The Input and Output columns appear only when the instrumentation records them. Enable recordInputs and recordOutputs in the instrumentation options.

Span attributes

@monocle.sh/instrumentation-mcp sets these attributes. Not every attribute is present on every request.

AttributeUsed for
mcp.method.nameJSON-RPC method, e.g. tools/call
mcp.tool.nameTools table and tool page
mcp.client.nameClients table
mcp.request.argument.*Input column (with recordInputs)
mcp.tool.result.0.contentOutput column (with recordOutputs)
mcp.tool.result.is_errorFailed calls: the tool returned an error result
rpc.jsonrpc.error_codeFailed calls: the server answered with an error
rpc.jsonrpc.error_messageError message of a failed call

The instrumentation also records the session ID, request ID, transport, server name and version, client version, protocol version, resource URI and prompt name. It supports SDK v1 and v2, including protocol 2026-07-28. Legacy connections send the client identity only in the initialize handshake, so later stateless HTTP requests have no client name.

Setup

Search documentation

Search pages and sections of the Monocle documentation