OpenTelemetry
MCP server for OpenTelemetry trace backends (Jaeger, Tempo, Traceloop). Search traces, analyze spans, find errors, track LLM token usage, and compare model performance.
Installation path
Choose Add Server, select Local MCP, use uvx as the command, pass opentelemetry-mcp as the argument, and set BACKEND_TYPE and BACKEND_URL.
Setup steps
- 01
Install uv
Install uv with brew install uv or pipx install uv.
- 02
Open Add Server
Configuration → MCP Registry → Add Server in Cosmos.
- 03
Pick the Local MCP tab
- 04
Set the command
Command
uvx - 05
Add the arguments
Args
opentelemetry-mcp - 06
Set environment variables
Set BACKEND_TYPE (jaeger, tempo, or traceloop) and BACKEND_URL. For Traceloop, add BACKEND_API_KEY.
BACKEND_TYPE
BACKEND_TYPE=jaegerBACKEND_URL
BACKEND_URL=http://localhost:16686BACKEND_API_KEY
BACKEND_API_KEY=your_api_key - 07
Click Add, then enable
Toggle on Cosmos Agent or CLI.
Local command
Suggested name: opentelemetry
uvx opentelemetry-mcpRequires Python 3.11+ and uv (or pipx). Supports Jaeger, Grafana Tempo, and Traceloop backends.
Authentication
Backend-specific. Set BACKEND_TYPE and BACKEND_URL. Traceloop requires BACKEND_API_KEY.
| Variable | Example | Required |
|---|---|---|
| BACKEND_TYPE | jaeger | Yes |
| BACKEND_URL | http://localhost:16686 | Yes |
| BACKEND_API_KEY | your_api_key | Yes |