MCP Server Monitoring and Observability: Best Practices for 2026

A model context protocol (MCP) server can appear to be working perfectly, even when a tool fails or accesses data using the wrong permissions. Standard server logs show when a request was made and how long it took, but often miss who accessed the data and whether the tool completed its task. This happens because traditional monitoring tools can see the HTTP request but not what happens inside MCP’s JSON-RPC messages, such as tool errors and returned results. MCP server monitoring and observability provides that visibility, helping teams investigate failures, audit data access, and understand token usage.

At a glance: MCP server monitoring and observability tracks tool operations, user permissions, errors, and token costs. Since tool errors can return HTTP 200, standard monitoring may miss failures. OpenTelemetry now has MCP tracing and metrics conventions, still in development, while the July 2026 MCP specification deprecated protocol logging in favor of stderr or OpenTelemetry.

What is MCP server monitoring and observability?

Monitoring MCP servers requires tracking requests, tool calls, errors, user activity, and costs. This includes operations like tools/list, tools/call, and resources/read, as well as initialize for servers using MCP versions before July 28, 2026.

Monitoring helps detect known issues, such as server downtime or high error rates. Observability helps investigate unexpected problems and understand their causes. OpenTelemetry, a framework for collecting monitoring data, helps capture details such as which tool was called, the MCP version used, and what happened during the request. Effective monitoring should let you trace every agent tool call, including who initiated it, which tool was used, what data it accessed, how long it took, and how many tokens it consumed.

Why MCP servers fail silently and how that differs from traditional server monitoring

Traditional server monitoring tools track server health, uptime, and HTTP errors, while MCP handles errors differently.

MCP distinguishes between two types of errors. Protocol errors like malformed requests or calls to unknown tools, return a JSON-RPC error. Tool execution errors, such as API failures, invalid inputs, or business logic issues, can return a successful protocol response with isError set to true. As a result, monitoring tools that rely only on HTTP status codes may miss these failures.

An agent may successfully retrieve sensitive information without sufficient logs to identify which user initiated the request. OWASP identifies this risk as MCP08, Lack of Audit and Telemetry, highlighting how missing activity records make security investigations and incident response difficult.

Local servers using standard input/output (stdio) should write logs to stderr, since writing them to stdout can interfere with protocol communication. Remote servers using Streamable HTTP need centralized logging or tools like OpenTelemetry to collect activity records.

As organizations begin managing multiple MCP servers, collecting and reviewing these logs becomes essential for tracking failures and data access.

The three layers of MCP server observability

A centralized gateway, as described in CData’s guide to deploying MCP servers in 2026, provides a common point for collecting this information.

Layer

Key signals

Primary consumer

Failure it catches

Tool-call tracing

p50/p95/p99 latency per tool, isError rate, retries, mcp.server.operation.duration

Production operators

Slow or failing tools hidden behind HTTP 200s

Data-access audit logging

User identity, client and agent ID, tool name, target source, result status

Governance architects

Data access nobody can tie to a person

Token and cost telemetry

Input and output tokens per request and per agent, model name, duration

AI platform leads

Spend climbing with no visible cause

Tool-call tracing: Latency, error rates, and trace spans across systems

Each trace should record the MCP method (mcp.method.name) and tool name, plus the session ID on servers that still use sessions. Linking agent and server activity shows the full request and where it went wrong.

Monitor how long each tool takes to respond and how often it retries. Tracking these matters most in multi-agent MCP deployments, where several agents share the same servers.

Also check when tools return no records. That could mean the requested data does not exist, or the user’s access has changed, and both look like successful calls. Track the number of records returned, and when a tool that normally returns rows starts returning none, check the source permissions.

Data-access audit logging: Linking every AI query to a user

Every tool call must be linked to a specific user or service account. An MCP server protected by open authorization (OAuth) 2.1 can use the validated access token to identify the user or service account behind each request and record that identity in its audit logs.

Query attribution means linking every AI generated request or tool call to the authenticated user, client, and agent that triggered it, so auditors can answer who accessed what, and when. Our guide to MCP server security best practices covers the access controls underneath it, and our guide to least privilege and audit trails for MCP agents sets out the fields an auditor expects for SOC 2, GDPR, and CCPA.

Token and cost telemetry: Tracking consumption per request and per agent

Use OpenTelemetry’s GenAI conventions to track input and output tokens for each request and agent. By default, these conventions collect details such as model names, token counts, and response times without recording prompts or tool arguments. To inspect prompts for debugging, use a separate process with restricted access.

How to instrument MCP servers with OpenTelemetry and SIEM-ready audit logs

Four steps to capture MCP activity using OpenTelemetry.

  1. Create a span for each MCP operation using {mcp.method.name} {target}, such as tools/call get-invoice, to identify the tool being called.

  2. Set error.type when a tool fails, including when it returns isError: true, so the failure appears in monitoring reports.

  3. Extract the incoming trace information and link it to the server span to track the complete request.

  4. Send traces through the OpenTelemetry protocol (OTLP) to a Collector that forwards them to your monitoring system, following CData’s enterprise MCP security best practices for access controls.

For local servers using stdio, trace information can be passed through the MCP _meta field using traceparent, tracestate, and baggage.

Keep audit records separate from traces because security audits require additional details about user identity, permissions, and data access.

Field

Example

Why auditors need it

timestamp

2026-11-12T09:14:22Z, synced with Network Time Protocol (NTP)

Lines events up with other systems in the Security Information and Event Management (SIEM) platform

user_id

[email protected], from the OAuth token subject

Ties each data access to an accountable person

client_id / agent_id

claude-desktop / finance-reporting-agent

Separates a person acting directly from an agent acting for them

tool_name + target source

get_opportunities, Salesforce

Shows what ran and which system it reached

result_status

success, isError, denied

Distinguishes a refusal from a failure from a completed read

Remove or mask sensitive information, including passwords, tokens, and personal data, from tool logs, and follow the National Institute of Standards and Technology (NIST) SP 800-92 guidance when setting retention periods.

CData Connect AI retains log files for seven days. For longer audit retention, forward events to a SIEM (an option available on the Business tier) and configure the required retention period there. Our enterprise MCP security playbook covers routing those logs into Splunk or Microsoft Sentinel.

Self-hosted vs. managed MCP server monitoring: Cost, coverage, and shadow AI risk

Each self-hosted MCP server has its own authentication, logging, and data retention settings, making consistent monitoring harder as more servers are added. OWASP recommends keeping detailed, tamper-resistant audit logs of tool calls, context changes, and interactions between users and agents.

IBM’s 2025 cost of a data breach report found that one in five organizations reported a breach involving shadow AI, and organizations with high levels of shadow AI faced approximately $670,000 in additional breach costs. Among organizations that experienced an AI-related breach, 97% lacked proper AI access controls.

Dimension

Self-hosted MCP servers

AI gateway

Audit coverage

Per server, with gaps wherever instrumentation was skipped

One log stream across every connected source

User identity attribution

Custom identity plumbing on each server

Carried on every request by passthrough authentication

Token and cost visibility

Counted per server, if at all

Measured at one point for every agent through Connect AI Gateway, currently in early access

Time to production

4 to 6 months of in-house build, per CData’s estimate

Days, with logging built in

Unapproved MCP servers create security risks similar to shadow IT, and OWASP identifies them as MCP09. Organizations should maintain a list of approved servers and monitor unauthorized connections, because unregistered servers go unlogged. CData’s comparison of managed and self-hosted MCP servers covers the differences in security, monitoring, and maintenance.

Get centralized, governed MCP observability with CData Connect AI

CData Connect AI provides a centralized layer for managing and governing AI access to hundreds of data sources. Instead of monitoring multiple MCP servers separately, organizations can track tool activity through a single platform and forward audit logs to their SIEM system.

With support for OAuth and security assertion markup language (SAML) passthrough, Connect AI preserves user identity and permissions when accessing data, and its audit logs record the requesting user, data source, request, and timestamp.

Connect AI also reduces token usage through query pushdown, which processes filters and joins at the data source. In CData’s internal benchmark involving Salesforce, Zendesk, and Snowflake, Connect AI reduced tool calls by 70% and token usage by 85%, as reported in its MCP token consumption analysis. Another CData study on reducing Claude API costs reported 20% to 60% lower inference costs across multiple systems. Connect AI Gateway, currently in early access, also provides cost tracking by team, agent, model, and tool.

You can connect one agent through Connect AI, check whether the audit log answers who ran what, against which system, and when, and compare its tool calls and token use against your current setup. Start a free trial to run that comparison on your own systems.

Frequently asked questions

What is MCP server observability, and how is it different from standard server monitoring?

Standard monitoring tells you the server is up. MCP observability shows which user triggered a tool call, what data it touched, whether it succeeded, and what it cost.

What are MCP servers used for AI systems?

They give AI clients a standard way to discover and call tools, read resources, and reach systems such as a CRM or a warehouse without custom integrations.

Which metrics matter most for MCP server monitoring and observability?

Request rate, isError rate and p95 latency per tool, and token use per request and per agent. Server averages hide a single slow tool.

How do you handle audit logging and compliance for MCP server AI data access?

Resolve each tool call to an authenticated identity, log the user, client, tool, source, and result, keep audit records separate from debug logs, and export them to your SIEM.

Can standard APM and network monitoring tools monitor an MCP server, or do you need something different?

They cover the host and the transport, not the protocol, so they have no built-in view of which tool the agent chose, whether the result carried an error, or how many retries it took.

How do you test and validate MCP server observability before going to production?

Inject failures on purpose, such as a tool error, a revoked permission, and a timeout, then confirm each one appears in your traces, error rates, and audit log.

What’s the difference between self-hosted MCP server monitoring and a managed MCP platform?

Self-hosted means instrumenting, authenticating, and retaining logs on every server you run. A managed platform routes every call through one logged, identity-aware layer, so the audit trail comes from one place.

Explore CData Connect AI today

See how Connect AI excels at streamlining AI and business processes for real-time insights and action. 

Get the trial