$npx skillfedfor your agent

opentelemetry-instrumentation-mcp

OpenTelemetry mcp instrumentation

With conditionsPyPI MonitoringReleased Aug 20266.7M downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — opentelemetry_instrumentation_mcp-0.62.3-py3-none-any.whl
v0.62.3 · released 2026-08-10 · Python <4,>=3.10 · 4 runtime deps: opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions-ai, opentelemetry-semantic-conventions

Yes, if you are building or running MCP-based agentic workflows and need observability. The package is actively maintained, has no known vulnerabilities, and integrates cleanly into the OpenTelemetry ecosystem. Install it when you want to trace tool calls and LLM interactions; skip it if you have no observability infrastructure or are not using the MCP framework.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later; requires an OpenTelemetry SDK and exporter already configured in your application.
  • Low friction install with four runtime dependencies on the OpenTelemetry ecosystem.
  • Active maintenance with a recent release (4 days old) and an established repository.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions; you must include a copy of the license and note material changes.

last release 2026-08-10 (4 days) · last repo commit 2026-08-10 · 7,377 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 6,716,888 downloads/mo, #1,865 on PyPI

Verify before relying

pip install opentelemetry-instrumentation-mcp

from opentelemetry.instrumentation.mcp import McpInstrumentor

McpInstrumentor().instrument()
  • Whether this instrumentation works with all MCP framework versions or has specific version constraints beyond what the fact sheet shows.
  • What span attributes are captured beyond prompts, completions, and embeddings.
  • Performance overhead of instrumentation on typical agentic workflows.
Same gist for agents: .md · .json

What it is and what it does

This package integrates the MCP Python SDK with OpenTelemetry to emit distributed traces from agentic workflows. When you call `McpInstrumentor().instrument()`, it hooks into MCP framework calls to generate spans that track tool invocations, prompts sent to LLMs, and completions received—giving you visibility into how your agent is using tools and interacting with language models.

By default, the instrumentation logs the actual content of prompts, completions, and embeddings to span attributes, which helps with debugging and evaluation but may expose sensitive user data. You can disable this by setting `TRACELOOP_TRACE_CONTENT=false` to reduce trace size and protect privacy. The package depends on the OpenTelemetry API and instrumentation base libraries, plus semantic convention definitions for AI workloads.

Use it for

  • Debug agentic workflows by viewing the full trace of tool calls, prompts, and LLM responses in your observability backend.
  • Monitor production MCP applications to detect tool call failures, latency spikes, or unexpected LLM behavior.
  • Evaluate agent performance by analyzing spans to understand which tools are called most frequently and how long each step takes.
  • Reduce trace volume in privacy-sensitive environments by disabling content logging while keeping structural tracing intact.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are building or running MCP-based agentic workflows and need observability.

The package is actively maintained, has no known vulnerabilities, and integrates cleanly into the OpenTelemetry ecosystem. Install it when you want to trace tool calls and LLM interactions; skip it if you have no observability infrastructure or are not using the MCP framework.

Install

opentelemetry-instrumentation-mcp on PyPI

Before you install

Low friction install with four runtime dependencies on the OpenTelemetry ecosystem. Active maintenance with a recent release (4 days old) and an established repository.

Requires Python 3.10 or later; requires an OpenTelemetry SDK and exporter already configured in your application.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions; you must include a copy of the license and note material changes.

Quickstart

pip install opentelemetry-instrumentation-mcp

from opentelemetry.instrumentation.mcp import McpInstrumentor

McpInstrumentor().instrument()

Verify before relying

  • Whether this instrumentation works with all MCP framework versions or has specific version constraints beyond what the fact sheet shows.
  • What span attributes are captured beyond prompts, completions, and embeddings.
  • Performance overhead of instrumentation on typical agentic workflows.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release <4,>=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
4 packages
opentelemetry-apiopentelemetry-instrumentationopentelemetry-semantic-conventions-aiopentelemetry-semantic-conventions
MaintenanceActively maintained 4 days since the last release
Last repo commit
First released
Downloads6,716,888 / month, #1,865 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: opentelemetry_instrumentation_mcp-0.62.3-py3-none-any.whl

Tags

Capabilities
opentelemetry mcp instrumentationtrace mcp tool callsagentic workflow tracingmcp framework observabilityllm tool usage tracingmcp span instrumentation
Topics
observabilitymcp-instrumentationagentic-ai

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “opentelemetry mcp instrumentation”

Give your agent the search over MCP, or paste the wish link into any chat.

More Monitoring packages

tqdm Worth it
PyPI · Libraries · released Jul 2026

Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.

copyleftpure Python · 3.8+
648.6Mdownloads / mo
opentelemetry-semantic-conventions Worth it
PyPI · Monitoring · released Jul 2026

Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.

Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.

Apache-2.0pure Python · 3.10+
542.9Mdownloads / mo
opentelemetry-sdk Worth it
PyPI · Monitoring · released Jul 2026

Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.

Apache-2.0pure Python · 3.10+
521.8Mdownloads / mo
opentelemetry-api With conditions
PyPI · Monitoring · released Jul 2026

Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.

Apache-2.0pure Python · 3.10+
463.8Mdownloads / mo
opentelemetry-exporter-otlp-proto-http Worth it
PyPI · Monitoring · released Jul 2026

Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.

Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.

Apache-2.0pure Python · 3.10+
409.9Mdownloads / mo
opentelemetry-instrumentation Worth it
PyPI · Monitoring · released Jul 2026

Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.

Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.

Apache-2.0pure Python · 3.10+
393.5Mdownloads / mo

See also opentelemetry-instrumentation-openai-agents · opentelemetry-instrumentation-bedrock · opentelemetry-instrumentation-haystack · opentelemetry-instrumentation-crewai · openinference-instrumentation-mcp · opentelemetry-instrumentation-django · opentelemetry-instrumentation-groq · opentelemetry-instrumentation-ollama · opencensus-ext-logging · oneagent-sdk