OTEL MCP Server
Enables querying and analyzing distributed traces from Jaeger, including service discovery, trace inspection, and performance analysis, through MCP tools.
README
OTEL MCP Server
Agentic: An MCP-native observability surface that lets agents query their own execution history.
Human Centric: Query and analyze distributed traces with AI assistance for debugging and performance optimization.
Features
- Service Discovery: List services and operations in your Jaeger instance
- Trace Inspection: Search, filter, and inspect traces with full span details
- Performance Analysis: Find slow traces, get latency percentiles, error rates
- REST API: FastAPI endpoints with OpenAPI documentation at
/docs - Self-Telemetry: The server traces itself to Jaeger for debugging
Installation
Using uvx (Recommended)
Run directly without installing:
# Run MCP server
uvx otel-mcp
# Run REST API
uvx --from otel-mcp otel-mcp-api
Using pip
pip install otel-mcp
# Then run
otel-mcp # MCP server
otel-mcp-api # REST API
From Source
git clone https://github.com/ryanm101/otel-mcp.git
cd otel-mcp
uv sync
uv run otel-mcp
Quick Start
1. Start Jaeger
docker-compose up -d
# Jaeger UI at http://localhost:16686
2. Run the MCP Server
uvx otel-mcp
# Or with environment variables:
JAEGER_URL=http://jaeger:16686 uvx otel-mcp
3. Or Run the REST API
uvx --from otel-mcp otel-mcp-api
# OpenAPI docs at http://localhost:8000/docs
MCP Client Configuration
Add to your MCP client config (e.g., Claude Desktop claude_desktop_config.json):
{
"mcpServers": {
"otel-mcp": {
"command": "uvx",
"args": ["otel-mcp"],
"env": {
"JAEGER_URL": "http://localhost:16686"
}
}
}
}
Configuration
Create a .env file (see .env.example):
JAEGER_URL=http://localhost:16686
JAEGER_TIMEOUT=30
LOG_LEVEL=INFO
# Self-telemetry (optional)
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317
OTEL_SERVICE_NAME=otel-mcp
# OTEL_SDK_DISABLED=true # Disable self-telemetry
MCP Tools
Service Discovery
| Tool | Description |
|---|---|
list_services |
List all services in Jaeger |
list_operations |
List operations for a service |
Trace Inspection
| Tool | Description |
|---|---|
search_traces |
Search traces with filters (service, operation, duration, errors) |
get_trace |
Get complete trace by ID with all spans |
find_errors |
Find traces containing errors |
Performance Analysis
| Tool | Description |
|---|---|
get_slow_traces |
Find slowest traces |
get_operation_stats |
Get latency percentiles (p50/p95/p99) and error rates |
REST API Endpoints
| Endpoint | Method | Description |
|---|---|---|
/health |
GET | Health check |
/services |
GET | List services |
/services/{name}/operations |
GET | List operations |
/traces |
GET | Search traces |
/traces/{trace_id} |
GET | Get trace by ID |
/traces/errors |
GET | Find error traces |
/traces/slow |
GET | Find slow traces |
Development
Run Tests
uv run pytest tests/ -v
Run with Coverage
uv run pytest tests/ --cov=otel_mcp --cov-report=term-missing
Lint and Type Check
uv run ruff check src/
uv run mypy src/
Adding a New Backend
- Create
backends/tempo.pyimplementingBaseBackend - Add backend type to
config.py - Update
_create_backend()inserver.pyandapi.py
License
Apache-2.0
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.