Skip to main content

Grafana Tempo logo

Grafana Tempo MCP Server & Agent Plugin

An Agent Plugins v1.0.0 package combining 6 Progressive-Disclosure Agent Skills (skills/) with an 18-Tool / 10-Resource FastMCP Execution Server for Grafana Tempo 2.x/3.x and the Tempo Operator (tempo.grafana.com/v1alpha1).

PyPI Python 3.12+ License MCP Grafana Tempo 2.x / 3.x


Let your AI assistant explore distributed traces in Grafana Tempo: search with TraceQL, find slow or failing spans, compare traces, map service dependencies, and jump from a log line or metric to the trace behind it.

What you get

  • 18 MCP tools (16 read-only) that work against your live Grafana Tempo setup
  • 10 resources your assistant can read for context, under tempo://
  • 6 Agent Skills: step-by-step playbooks that teach your assistant how to use the tools well
  • Safe by default: only read-only tools are loaded until you turn on writes, and changes are previewed or confirmed before they happen

Quick start

You'll need:

  • Python 3.12+ and uv, or Docker
  • A Tempo URL
  • Optional: Prometheus (for service graphs) and Kubernetes access (for the Tempo Operator)

1. Add the server to your MCP client. For Claude Desktop, Cursor, Windsurf, and most other clients, add this to your MCP config file:

{
  "mcpServers": {
    "tempo": {
      "command": "uvx",
      "args": [
        "--from",
        "talkops-tempo-mcp-server",
        "tempo-mcp-server"
      ],
      "env": {
        "TEMPO_URL": "http://localhost:3200"
      }
    }
  }
}

Using Claude Code? Run this instead:

claude mcp add tempo -e TEMPO_URL=http://localhost:3200 -- uvx --from talkops-tempo-mcp-server tempo-mcp-server

uvx downloads talkops-tempo-mcp-server from PyPI and runs it, so there's nothing else to install. Prefer a normal install? Run pip install talkops-tempo-mcp-server and use tempo-mcp-server as the command.

Prefer Docker? Pull talkopsai/tempo-mcp-server from Docker Hub—no Python setup needed:

{
  "mcpServers": {
    "tempo": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MCP_TRANSPORT=stdio",
        "-e",
        "TEMPO_BASE_URL",
        "talkopsai/tempo-mcp-server:latest"
      ],
      "env": {
        "TEMPO_BASE_URL": "http://host.docker.internal:3200"
      }
    }
  }
}

2. Restart your client and try asking:

  • "Show me the slowest traces for checkout in the last hour."
  • "Why did p99 latency for payments jump today?"
  • "Which services does frontend call, and which one is failing?"

Allowing changes

Out of the box the server is read-only. To let your assistant make changes (changing per-tenant overrides and applying Tempo Operator resources), add "--allow-write" to args (or pass -e MCP_ALLOW_WRITE=true to docker run). Even then, changes are previewed first and destructive actions ask for confirmation.

Configuration

Set these as environment variables (the env block in your client config, or -e with docker run) or pass the matching flag.

Variable Flag Default What it does
TEMPO_URL / TEMPO_BASE_URL --tempo-url http://localhost:3200 Your Tempo URL
TEMPO_DEFAULT_TENANT --tenant none Tenant (X-Scope-OrgID) for multi-tenant Tempo
TEMPO_AUTH_HEADER — none Authorization header, e.g. Bearer <token>
PROMETHEUS_URL — none Prometheus for service-graph metrics (optional)
MCP_ALLOW_WRITE --allow-write false Enable tools that change Tempo
MCP_TOOLSETS --toolsets all Limit tools: search, metrics, diagnostics, overrides, operator, readonly
K8S_ENABLED --k8s-enabled false Turn on Tempo Operator (Kubernetes) features
MCP_TRANSPORT --transport stdio stdio or http
MCP_PORT — 8768 Port when using HTTP

Run uvx --from talkops-tempo-mcp-server tempo-mcp-server --help to see every option.

Running over HTTP

To share one server between several clients or run it remotely, start it in HTTP mode with Docker or uvx:

# With Docker (starts in HTTP mode by default)
docker run --rm -p 8768:8768 \
  -e TEMPO_BASE_URL=http://host.docker.internal:3200 \
  talkopsai/tempo-mcp-server:latest

# Or with uvx
MCP_TRANSPORT=http MCP_PORT=8768 uvx --from talkops-tempo-mcp-server tempo-mcp-server

Then point your client at http://localhost:8768/mcp:

{
  "mcpServers": {
    "tempo": {
      "url": "http://localhost:8768/mcp"
    }
  }
}

Agent Skills

Skills live in skills/. Each one is a SKILL.md playbook (plus optional references/ and offline scripts/) that teaches your AI assistant how to do a job safely, while the MCP server does the actual work. Tools are the hands, skills are the know-how.

To use them, copy the folders into your assistant's skills directory, for example:

git clone https://github.com/talkops-ai/talkops-mcp.git
cp -r talkops-mcp/src/tempo-mcp-server/skills/* ~/.claude/skills/

This folder is also a portable Agent Plugin (plugin.json + mcp.json + skills/), so plugin-aware clients can load the server and skills together.

Skill Use it to
authoring-traceql-and-metrics-queries Write correct TraceQL searches and TraceQL metrics queries.
triaging-tempo-service-errors Triage failing services and jump between metrics, logs, and traces.
investigating-tempo-latency-regressions Find the spans behind a latency regression.
diagnosing-tempo-ingestion-and-health Find out why traces are missing and check Tempo's health.
mapping-tempo-topology-and-alerts Map service dependencies and generate span-metrics alerts.
operating-tempo-deployments-and-tenants Manage tenant overrides and Tempo Operator resources.

Reference

All 18 tools
Tool Access What it does
tempo_analyze_service_red Read Compute factual Rate, Error rate, and P50/P95/P99 latency metrics, optional baseline deltas, and exemplar IDs.
tempo_apply_operator_cr Write (destructive) Validate and apply a TempoStack or TempoMonolithic custom resource manifest.
tempo_compare_span_cohorts Read Execute a TraceQL compare() instant query to rank attribute values differentiating selection vs baseline spans.
tempo_compare_traces Read Compute a 5-axis structural, span-count, timing, error, and attribute diff between two traces.
tempo_find_related_traces Read Find traces correlated with a seed trace by error origin, endpoint, time, or cascade.
tempo_get_attribute_names Read Discover trace attribute names grouped by scope from a Tempo backend.
tempo_get_attribute_values Read Retrieve distinct values for a trace attribute on a Tempo backend.
tempo_get_diagnostics Read Collect factual health, version (2.x/3.x), ring, discarded-span, config, and Operator CR observations.
tempo_get_exemplar_traces Read Extract exemplar trace IDs from a TraceQL metrics range query.
tempo_get_service_dependencies Read Discover service nodes and client->server call edges via Prometheus service-graphs, TraceQL metrics, or trace DAG sampling.
tempo_get_trace Read Retrieve a trace by ID with optional span-count slicing and time bounds.
tempo_get_trace_from_log Read Extract a trace ID (W3C traceparent, JSON, logfmt, or hex32) from text and summarize the trace.
tempo_patch_tenant_overrides Write (destructive) Preview or apply an RFC 7386 JSON merge patch to Tempo's /api/overrides endpoint for a tenant.
tempo_query_a2ui Read Retrieve a trace structured and DAG-pruned for A2UI trace timeline rendering.
tempo_summarize_trace Read Extract factual summary of a trace: critical path, self-time hotspots, errors, and K8s context.
tempo_traceql_metrics_instant Read Execute a point-in-time TraceQL metrics instant query (vector format).
tempo_traceql_metrics_range Read Execute a TraceQL metrics range query returning time-series points and per-series stats.
tempo_traceql_search Read Search traces using raw TraceQL and/or structured SearchFilters.
All 10 resources
Resource What it returns
tempo://deployment/overview Deployment topology: configured backends and Kubernetes-discovered Tempo installs
tempo://server/capabilities Server capabilities, write gate status, active toolsets, query guardrails, and detected backend features
tempo://system/backends All configured Tempo backends with live health status
tempo://operator/crd-schema/{kind} Installed CRD OpenAPI v3 spec schema for TempoStack or TempoMonolithic
tempo://operator/crs/{namespace} Inventory of TempoStack and TempoMonolithic CRs in a namespace (use '_all' for cluster-wide)
tempo://operator/manifests/{kind}/{namespace}/{name} Sanitized and secret-redacted TempoStack or TempoMonolithic manifest
tempo://overrides/{backend_id}/{tenant} Merged user-configurable overrides and current ETag for a Tempo tenant
tempo://schema/{backend_id}/attributes Live trace attribute presence and detected OTel Semantic Conventions for a backend
tempo://system/backends/{backend_id} Detailed live profile for a specific Tempo backend
tempo://traces/{backend_id}/{trace_id} Compact trace summary and bounded spans for a trace ID

Development

git clone https://github.com/talkops-ai/talkops-mcp.git
cd talkops-mcp/src/tempo-mcp-server
uv sync --dev
uv run pytest
uv run tempo-mcp-server --help

Get help

License

Apache 2.0. See LICENSE.

Metadata

Release files for talkops-tempo-mcp-server 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for talkops-tempo-mcp-server 0.2.1
File Size Uploaded Provenance Actions
talkops_tempo_mcp_server-0.2.1.tar.gz 306.8 kB With provenance Details for talkops_tempo_mcp_server-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for talkops-tempo-mcp-server 0.2.1
File Interpreter ABI Platform Actions
talkops_tempo_mcp_server-0.2.1-py3-none-any.whl Python 3 none any Details for talkops_tempo_mcp_server-0.2.1-py3-none-any.whl

Total release size: 408.0 kB

Release files / talkops_tempo_mcp_server-0.2.1.tar.gz

Download URL talkops_tempo_mcp_server-0.2.1.tar.gz
Size 306.8 kB
Tags Source
SHA-256 checksum
How to use checksums
936803f1d2af62ae3bfd2af2831ee89489c44c5d023129b25b63f10438c4860e
BLAKE2b-256 checksum
How to use checksums
bbcc7a3080d57196c49a53beb5df3a8df6f0074082220b9441187c01c24f5219
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / talkops_tempo_mcp_server-0.2.1-py3-none-any.whl

Download URL talkops_tempo_mcp_server-0.2.1-py3-none-any.whl
Size 101.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b693e722fe5c21c8e4bfa8fb10642ec164b80025d914067dec897b5a326deac
BLAKE2b-256 checksum
How to use checksums
9cf0bf0ebe7de97d1cd41da060e6b3d6a481b4620e0b6d7891d312d1b8184108
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for talkops-tempo-mcp-server 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for talkops_tempo_mcp_server-0.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page