Adds the official Grafana MCP server (mcp-grafana) plus the grafana-client Python library to an a...
36
Adds the official Grafana MCP server (mcp-grafana) plus the grafana-client Python library to an agent, pre-wired to a local Grafana on the host - no cloud account, no API token.
| Type | Required | Description | |
|---|---|---|---|
com.docker.sandbox/network-policy@1 | Required | — | |
com.docker.sandbox/lifecycle@1 | Required | — | |
com.docker.sandbox/agent-context@1 | Required | — | |
sbx run <agent> --kit docker/sbx-kit-grafana:latestRun the following command to install sbx on your machine.
brew install docker/tap/sbxwinget install Docker.sbxNote
Experimental: Sandbox Kit v3This kit uses the experimental Sandbox Kit specification, specifically v3. The format and runtime behavior may change before v3 is stable.
A mixin kit that installs the official Grafana MCP server (mcp-grafana) plus the grafana-client Python library, pre-wired to a local Grafana on the host: search dashboards, list datasources, and run Prometheus/Loki queries. No cloud account, no API token.
For the built-in claude agent the MCP server is registered automatically at startup; other agents can import the portable ~/.grafana/mcp.json the kit writes. Pairs with any base agent.
A Grafana instance reachable from the sandbox at http://host.docker.internal:3000. The kit sets NO_PROXY so that host traffic bypasses the sandbox proxy. If you do not already run Grafana locally, the simplest option is a small Compose stack (Grafana + Prometheus) on the host - anything listening on port 3000 works.
sbx run --kit "docker.io/docker/sbx-kit-grafana:latest" claude
Or target this repo directly over git, or a local clone:
sbx run --kit "git+https://github.com/docker/sbx-kits-contrib.git#dir=grafana" claude
sbx run --kit ./grafana/ claude
mcp-grafana (pinned v1.0.0 binary for the container arch) into ~/.local/bin.grafana-client==5.1.0 (Python) for scripting and shell verification.~/.grafana/mcp.json - a portable MCP server definition for any agent that reads an mcpServers block.The startup step registers mcp-grafana with the claude agent when present (best-effort, guarded, a no-op on other agents).
~/runbooks/ ships runnable demos using grafana-client:
python3 ~/runbooks/grafana_report.py # summarize dashboards / datasources
python3 ~/runbooks/seed_demo.py # seed demo data
This kit targets a local Grafana (no token). For a hosted or self-managed instance, sibling kits carry the different URL, egress, and API-token credential:
grafana-cloud - Grafana Cloud via a service-account token.grafana-oss - a self-hosted OSS Grafana via URL + token.