Skip to main content
Glama
otel-analyzer-mcp

otel-analyzer-mcp

by jsamuel1

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

Related MCP server: otel-mcp

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

Available Tools

8 tools
analyze_errsC

Analyze trace errors: error spans, exceptions, failure context.

Inputs: trace_id (required). Returns: result

analyze_perfB

Analyze trace performance: latency breakdown, slow spans, critical path.

Inputs: trace_id (required), slow_threshold_ms. Returns: result

deep_analyzeC

Use MCP sampling for LLM-assisted trace analysis.

Inputs: trace_id (required), question. Returns: result

list_tracesA

List all loaded traces with summaries.

Inputs: no named parameters. Returns: result

load_traceA

Load a trace from file, string, X-Ray, or CloudWatch. Auto-detects format.

Args: path: File path to trace JSON data: Raw JSON string trace_id: Trace ID to fetch from X-Ray or CloudWatch source: Source for trace_id lookup: 'xray' or 'cloudwatch' (default: xray) profile: AWS profile name region: AWS region

Inputs: path, data, trace_id, source, +2 more. Returns: result

search_genai_tracesA

Search CloudWatch aws/spans for GenAI traces from Bedrock AgentCore.

Args: filter_query: CloudWatch Logs Insights filter (e.g., 'name like /bedrock/') start_time: ISO format start time end_time: ISO format end time limit: Max results (default: 20) profile: AWS profile name region: AWS region

Returns GenAI traces with model info, token usage, and latency.

Inputs: filter_query, start_time, end_time, limit, +2 more. Returns: result

search_xrayC

Search X-Ray for traces matching filter expression.

Inputs: filter_expression, start_time, end_time, limit, +2 more. Returns: result

summarize_traceD

High-level trace overview.

Inputs: trace_id (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool targets a distinct aspect of trace management and analysis. No two tools have overlapping purposes; descriptions clearly differentiate ingestion, listing, summarizing, error analysis, performance analysis, LLM-assisted analysis, and searching by source.

    Naming Consistency4/5

    Tool names follow a consistent verb_noun snake_case pattern (e.g., load_trace, list_traces, summarize_trace). Minor deviations: analyze_errs and analyze_perf use abbreviations (errs, perf) and deep_analyze uses an adjective prefix, but these are still readable and fit the general pattern.

    Tool Count5/5

    With 8 tools, the server provides a comprehensive but focused set of operations for trace analysis: ingestion, listing, summarization, error analysis, performance analysis, LLM-assisted analysis, and source-specific searches. Each tool earns its place without redundancy.

    Completeness4/5

    The tool set covers the main lifecycle of trace analysis: loading, listing, summarizing, error and performance analysis, and advanced LLM analysis. It also includes source-specific search. A minor gap is the lack of a query/filter capability on loaded traces beyond the static listing, but overall the surface is well-rounded for typical observability tasks.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      D
      maintenance
      An MCP server for the Uptrace observability platform that enables querying traces, spans, logs, and metrics through natural language. It provides tools for error analysis, service discovery, and trace visualization within MCP-compatible clients.
      11
      2
      -
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that emits OpenTelemetry traces, metrics, and logs to OTLP endpoints in various formats. It includes tool-mimicry profiles to generate realistic traffic resembling common tools like nginx, postgres, and AWS Lambda for testing and demonstration purposes.
      11
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Unified MCP server for observability and monitoring, providing tools to query metrics, logs, and traces through Prometheus, Grafana, Loki, and Jaeger.
      2
      Mozilla Public 2.0
    • A
      license
      A
      quality
      D
      maintenance
      MCP server that gives AI agents access to your application's OpenTelemetry traces for querying, analysis, and debugging.
      5
      11 npm
      2
      MIT