Skip to main content

MCP server for analyzing OpenTelemetry traces

Project description

OTEL Analyzer MCP Server

MCP server for analyzing OpenTelemetry traces with performance and error diagnosis.

Features

  • Load traces from files, strings, AWS X-Ray, or CloudWatch GenAI observability
  • Auto-detect format (OTLP JSON, Jaeger, Protobuf, X-Ray)
  • Performance analysis: latency breakdown, slow spans, critical path
  • Error analysis: error detection, exception extraction, context
  • GenAI trace analysis: Bedrock AgentCore, token usage, model latency
  • MCP sampling for LLM-assisted deep analysis

Installation

uv tool install otel-analyzer-mcp

Or for development:

uv sync

Usage

Run the server:

otel-analyzer-mcp

Or add to your MCP client config:

{
  "mcpServers": {
    "otel-analyzer-mcp": {
      "command": "otel-analyzer-mcp"
    }
  }
}

Tools

Tool Description
load_trace Load from file, JSON, X-Ray trace ID, or CloudWatch
search_xray Search X-Ray with filter expressions
search_genai_traces Search CloudWatch aws/spans for GenAI traces
list_traces List all loaded traces
analyze_perf Performance analysis (latency, slow spans, critical path)
analyze_errs Error analysis (errors, exceptions, context)
summarize_trace High-level trace overview
deep_analyze LLM-assisted analysis via MCP sampling

Examples

Load a trace file:

load_trace(path="/path/to/trace.json")

Search X-Ray:

search_xray(filter_expression='service("my-api") AND responseTime > 5', region="us-east-1")

Search GenAI traces:

search_genai_traces(filter_query='name like /bedrock/', region="us-east-1")

Load from CloudWatch:

load_trace(trace_id="abc123", source="cloudwatch", region="us-east-1")

Analyze performance:

analyze_perf(trace_id="abc123")

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

otel_analyzer_mcp-0.1.1.tar.gz (115.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

otel_analyzer_mcp-0.1.1-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file otel_analyzer_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: otel_analyzer_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 115.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for otel_analyzer_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f6c35aa3ae3164cab847042ccbd44afee466aa51f0f651584b8a6186cf7c1435
MD5 7b5ea5f8b30ecdc72e5ebc64fd0a064d
BLAKE2b-256 0754ca6af02394422be4734ccd845795faeeadc0e90ae8c6e4127312c3e17367

See more details on using hashes here.

Provenance

The following attestation bundles were made for otel_analyzer_mcp-0.1.1.tar.gz:

Publisher: publish.yml on jsamuel1/otel-analyzer-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file otel_analyzer_mcp-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for otel_analyzer_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a11cabe11d8702d5ba2ca700d67b6418a06f77775e3f9a97bf5ce68c1ac45716
MD5 d3f96a2e37b34d25e9a258b4e712e86c
BLAKE2b-256 1f33c7e53f441702fb34e5473008ab31900e1e25d5fc36db10d4335cd0927065

See more details on using hashes here.

Provenance

The following attestation bundles were made for otel_analyzer_mcp-0.1.1-py3-none-any.whl:

Publisher: publish.yml on jsamuel1/otel-analyzer-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page