OpenTelemetry

v1.0.0Monitoring & Observabilitystable

Unified MCP server for querying OpenTelemetry traces across multiple backends (Jaeger, Tempo, Traceloop, etc.), enabling AI agents to analyze distributed traces for automated debugging and observability.

opentelemetrymcpai-integration
Share:
187
Stars
0
Downloads
0
Weekly
0/5

What is OpenTelemetry?

OpenTelemetry is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to unified mcp server for querying opentelemetry traces across multiple backends (jaeger, tempo, traceloop, etc.), enabling ai agents to analyze distributed traces for automated debugging and observabili...

Unified MCP server for querying OpenTelemetry traces across multiple backends (Jaeger, Tempo, Traceloop, etc.), enabling AI agents to analyze distributed traces for automated debugging and observability.

This server falls under the Monitoring & Observability category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Unified MCP server for querying OpenTelemetry traces across

Use Cases

Query distributed traces across Jaeger, Tempo, Traceloop backends.
Analyze performance issues and latency with AI.
Automate debugging of microservices through trace analysis.
traceloop

Maintainer

LicenseApache-2.0
Languagepython
Versionv1.0.0
UpdatedMay 4, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx opentelemetry

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use OpenTelemetry

The OpenTelemetry MCP server lets AI agents query distributed traces from multiple observability backends — Jaeger, Grafana Tempo, and Traceloop — through a unified interface, enabling natural language debugging of microservices, latency analysis, and LLM token usage tracking. It exposes 10 specialized tools covering trace search, span analysis, error detection, and LLM-specific metrics, so engineers can ask questions like 'why is the checkout service slow today?' and get grounded answers from real trace data without switching to a separate dashboard.

Prerequisites

  • Python 3.10 or newer with pipx or uvx installed
  • A running OpenTelemetry-compatible backend: Jaeger (port 16686), Grafana Tempo, or a Traceloop account with API key
  • Services already instrumented with OpenTelemetry SDKs sending traces to your backend
  • Claude Desktop or another MCP-capable client
1

Confirm your observability backend is accessible

Verify that your Jaeger, Tempo, or Traceloop backend is reachable from the machine running the MCP server. For local Jaeger, the default UI and API URL is http://localhost:16686.

curl http://localhost:16686/api/services
2

Test the server with pipx

Run the server once with pipx to confirm connectivity to your backend before adding it to your MCP client.

pipx run opentelemetry-mcp --backend jaeger --url http://localhost:16686
3

Add the server to your MCP client configuration using environment variables

Edit claude_desktop_config.json to launch the OpenTelemetry MCP server with your backend type and URL. For Traceloop, also add BACKEND_API_KEY.

{
  "mcpServers": {
    "opentelemetry": {
      "command": "uvx",
      "args": ["opentelemetry-mcp"],
      "env": {
        "BACKEND_TYPE": "jaeger",
        "BACKEND_URL": "http://localhost:16686",
        "LOG_LEVEL": "INFO",
        "MAX_TRACES_PER_QUERY": "100"
      }
    }
  }
}
4

For Traceloop backend, add the API key

If using Traceloop as your backend, add BACKEND_API_KEY to the env section with your Traceloop API key.

{
  "mcpServers": {
    "opentelemetry": {
      "command": "uvx",
      "args": ["opentelemetry-mcp"],
      "env": {
        "BACKEND_TYPE": "traceloop",
        "BACKEND_URL": "https://api.traceloop.com",
        "BACKEND_API_KEY": "your_traceloop_api_key"
      }
    }
  }
}
5

Restart your MCP client and start debugging

Restart Claude Desktop, then ask it to list services in your traces to confirm the connection is working.

OpenTelemetry Examples

Client configuration

Complete claude_desktop_config.json entry for the OpenTelemetry MCP server connecting to a local Jaeger instance.

{
  "mcpServers": {
    "opentelemetry": {
      "command": "uvx",
      "args": ["opentelemetry-mcp"],
      "env": {
        "BACKEND_TYPE": "jaeger",
        "BACKEND_URL": "http://localhost:16686",
        "MAX_TRACES_PER_QUERY": "100",
        "BACKEND_TIMEOUT": "30"
      }
    }
  }
}

Prompts to try

These prompts use the 10 tools exposed by the OpenTelemetry MCP server for trace analysis, error detection, and LLM usage monitoring.

- "List all services that have sent traces in the last hour"
- "Show me traces with errors from the checkout service in the last 30 minutes"
- "Find the slowest traces for the payment service today"
- "How many tokens did we use for each LLM model in the last 24 hours?"
- "Which requests used the most tokens today?"
- "Compare the performance of GPT-4 vs Claude across our traces this week"

Troubleshooting OpenTelemetry

Connection refused or timeout when querying the backend

Verify the BACKEND_URL is accessible from the machine running the MCP server. For Jaeger running in Docker, use the host machine's IP or Docker bridge IP instead of localhost if the MCP server runs outside Docker. Increase BACKEND_TIMEOUT if the backend is slow to respond.

list_services returns an empty list

No services appear if no traces have been ingested recently. Confirm your applications are instrumented with OpenTelemetry and are actively sending traces to the backend. Generate some test traffic, then retry.

uvx command not found

Install uv with 'curl -LsSf https://astral.sh/uv/install.sh | sh', which includes uvx. Alternatively, install with pip: 'pip install uv'. Then open a new shell before running the MCP client.

Frequently Asked Questions about OpenTelemetry

What is OpenTelemetry?

OpenTelemetry is a Model Context Protocol (MCP) server that unified mcp server for querying opentelemetry traces across multiple backends (jaeger, tempo, traceloop, etc.), enabling ai agents to analyze distributed traces for automated debugging and observability. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install OpenTelemetry?

Follow the installation instructions on the OpenTelemetry GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with OpenTelemetry?

OpenTelemetry works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is OpenTelemetry free to use?

Yes, OpenTelemetry is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.

Browse More Monitoring & Observability MCP Servers

Explore all monitoring & observability servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "opentelemetry": { "command": "npx", "args": ["-y", "opentelemetry"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use OpenTelemetry?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides