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.0.tar.gz (87.2 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.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: otel_analyzer_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 87.2 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.0.tar.gz
Algorithm Hash digest
SHA256 cc1eed5cb67c952f73d249d2b1eaf07234241c608887a55b39b5da230725d33e
MD5 d7db304d64065993ca55f1dde881439f
BLAKE2b-256 42c14f11112db018890745286449adb75baa03f01ed0c75a46f0d4f054c95af9

See more details on using hashes here.

Provenance

The following attestation bundles were made for otel_analyzer_mcp-0.1.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for otel_analyzer_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34e3882c687885bd687f50e7c1415826ef051bfcaa5be89268ee2df6ffa37590
MD5 2a23aa18847d3abfe6fb312ea1225d0c
BLAKE2b-256 a1e1efd7cf0781b5378f1450780df15e87aee4644efac6d34936d05bbf1474a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for otel_analyzer_mcp-0.1.0-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