04.18.2025
Tracing For MCP Client Server Applications
openinference-instrumentation-mcp β seamless OTEL context propagation for MCP clients and servers.Whatβs New?
This release introduces automatic distributed tracing for Anthropicβs Model Context Protocol (MCP). Using OpenTelemetry, you can now:- Propagate context across MCP client-server boundaries
- Generate end-to-end traces of your AI system across services and languages
- Gain full visibility into how models access and use external context
openinference-instrumentation-mcp package handles this for you by:- Creating spans for MCP client operations
- Injecting trace context into MCP requests
- Extracting and continuing the trace context on the server
- Associating the context with OTEL spans on the server side
Set up
- Instrument both MCP client and server with OpenTelemetry.
- Add the
openinference-instrumentation-mcppackage. - Spans will propagate across services, appearing as a single connected trace in Phoenix.
phoenix/tutorials/mcp/tracing_between_mcp_client_and_server at main Β· Arize-ai/phoenix
GitHub

