Grafana MCP server tools: what --disable-write really stops, and how to make your agent ask

All 123 tools of Grafana's official MCP server (mcp-grafana 2.3.0), checked by running it against a local Grafana: what --disable-write removes, why run_panel_query and grafana_api_request still reach your databases and secrets, and the Claude Code settings that make the rest ask.

Checked on by running mcp-grafana 2.3.0 (Docker image grafana/mcp-grafana) from grafana/mcp-grafana and reading its tools/list answer. Each tier is the tool risk checker’s reading, with our reason wherever we changed it. Written by the people who make VariantGate.

The short answer

Run it with --disable-write and --disable-api, a Viewer token, and datasources whose database users can only read. --disable-write removes 17 of the 80 default tools, but run_panel_query, once turned on, stays and ran our DELETE, and get_panel_image passes queries to the renderer, so both ask here with the other tools that reach a database or change alerting.

Can run on their own
92
Should ask a person
31

Which Grafana server this is

This page is about mcp-grafana, the official server from Grafana Labs. It signs in to Grafana with a service account token and can do whatever that token can. Out of the box it offers 80 tools from 22 toolsets; turning on every toolset with --enabled-tools gives 123. We ran version 2.3.0 from its Docker image against Grafana 13.3.1 in Docker, with a Postgres datasource and tokens for the Admin, Editor and Viewer roles. The incident, OnCall, Asserts, Agent Observability and Assistant tools need Grafana Cloud or a plugin. They are listed below, but we did not run them.

A read-only tool that ran a DELETE

run_panel_query is off by default, marked read-only, and the README lists it among the safe query tools that --disable-write keeps. It runs a saved panel’s query and lets the caller override the dashboard’s variables. Our panel held SELECT * FROM orders WHERE id = $id. With a Viewer token and --disable-write, we passed id as 3; DELETE FROM orders WHERE id = 3. The server pasted it in, Postgres ran both statements, and the row was gone. A panel whose saved SQL is a DELETE ran too.

get_panel_image is on by default and kept by every switch we tried. It renders a panel with the variables it is given, or an explore view with any query, and Grafana’s image renderer runs those queries as the token. Our DELETE in a variable went straight to the render request. We had no renderer running, so we did not see a row deleted, but it asks here for the same reason.

Grafana lets any role that can query a datasource run whatever SQL that datasource’s database user allows, so a Viewer token does not protect your tables. A database user that can only read does.

grafana_api_request is the whole API

grafana_api_request is on by default and calls any Grafana endpoint as the token. With a Viewer token, a POST to /api/ds/query ran our DELETE on the Postgres datasource. With an Admin token, a POST to a service account’s tokens made a new glsa_ token and returned it. Under --disable-write it may only send GET: a DELETE was refused, and an X-HTTP-Method-Override header changed nothing. But GET /api/v1/provisioning/contact-points/export?decrypt=true with an Admin token returned our Slack webhook URL and webhook password in plain text. Editor and Viewer tokens got a 403. --disable-api removes the tool.

Secrets it hides, and one it sends away

get_datasource returned only that a password was set, never the password. alerting_manage_routing hid the fields Grafana treats as secret, but a webhook URL is not one, and the token in ours came back in full. update_datasource says it cannot change secrets, and it cannot. It can change the URL: with an Admin token we pointed a Prometheus datasource at our own server, and the health check it runs afterwards sent the stored basic-auth password and API key header there. An Editor token was refused.

What --disable-write removes

With every toolset on, it took 20 tools away: add_activity_to_incident, alerting_routing_write, alerting_rules_write, alerting_silences_write, ask_assistant, create_annotation, create_datasource, create_folder, create_incident, create_snapshot, delete_annotation, delete_snapshot, install_plugin, query_influxdb, query_sql, update_alert_group, update_annotation, update_dashboard, update_datasource, update_incident. The five Agent Observability tools stay, with their write operations taken out of the schema. run_panel_query stays, and so does grafana_api_request, limited to GET.

Safe setup

  • A service account with the Viewer role, so writes fail in Grafana whatever the server offers.
  • Datasources whose database users can only SELECT.
  • --disable-write and --disable-api. That left 62 tools in our run. Adding --disable-query left 49, but get_panel_image is still among them and can still run queries through the renderer.
  • --usage-stats=disabled: the README says the server reports which tools were called to Grafana Labs by default.
claude mcp add grafana -e GRAFANA_URL=https://grafana.example.com -e GRAFANA_SERVICE_ACCOUNT_TOKEN=$GRAFANA_TOKEN -- docker run --rm -i -e GRAFANA_URL -e GRAFANA_SERVICE_ACCOUNT_TOKEN grafana/mcp-grafana -t stdio --disable-write \
  --disable-api --usage-stats=disabled

All 123 tools

Hard to undo21 toolsAsk a person every time. Consider two people, or deny it if the agent never needs it.

  • agento11y_manage_eval_collections

    Manage the curated conversations of Grafana Agent Observability (the grafana-agento11y-app plugin): bookmark conversations as saved conversations and group them into collections.

    Server says: destructive · toolset agento11y

  • agento11y_manage_eval_rules

    Manage the evaluation rules and guards of Grafana Agent Observability (the grafana-agento11y-app plugin): the configuration that decides when evaluators run.

    Server says: destructive · toolset agento11y

  • agento11y_manage_evaluators

    Manage the evaluator catalog of Grafana Agent Observability (the grafana-agento11y-app plugin): read evaluators, evaluator templates, and the judge model catalog, and create, test, or delete evaluators.

    Server says: destructive · toolset agento11y

  • agento11y_manage_experiments

    Manage the offline experiments of Grafana Agent Observability (the grafana-agento11y-app plugin), their trials, and their scores.

    Server says: destructive · toolset agento11y

  • agento11y_manage_test_suites

    Manage the test suites of Grafana Agent Observability (the grafana-agento11y-app plugin), their versions, and their test cases.

    Server says: destructive · toolset agento11y

  • alerting_rules_write

    Create, update, and delete Grafana alert rules.

    Server says: destructive · toolset alerting

  • alerting_silences_write

    Create, update, and delete Grafana alerting silences.

    Server says: destructive · toolset alerting

    Our call: An Editor token muted every alert for a year with one call: a silence on alertname=~.+.

  • ask_assistant

    Send a message to Grafana Assistant and wait for the full text reply.

    Server says: destructive · toolset assistant

  • delete_annotation

    Permanently delete an annotation by ID.

    Server says: destructive · toolset annotations

  • delete_snapshot

    Delete a Grafana snapshot by snapshot key.

    Server says: destructive · toolset snapshot

  • get_panel_image

    Render a Grafana dashboard panel, full dashboard or Explore view as a PNG image.

    Server says: read-only · toolset rendering

    Our call: Marked read-only and kept by --disable-write and --disable-query, but it renders a panel with the variables it is given, or an explore view with any query, and the renderer runs those queries as the token. It sent our DELETE in the variables to the renderer; we had no renderer, so we did not see a row go.

  • grafana_api_request

    Make an authenticated HTTP request to the Grafana API.

    Server says: destructive · toolset api

    Our call: Any Grafana API call, as the token. With a Viewer token, POST /api/ds/query ran our DELETE. Under --disable-write it may only GET, and a GET with an Admin token returned Slack and webhook secrets decrypted.

  • install_plugin

    Install a Grafana plugin by its plugin ID.

    Server gives no read-only or destructive hint · toolset plugin

    Our call: Given a version, it installs the plugin, and a backend plugin runs its own code on the Grafana server. We did not run it.

  • query_influxdb

    Query an InfluxDB datasource via Grafana.

    Server says: destructive · toolset influxdb

  • query_sql

    Query ClickHouse, Snowflake, Athena, MySQL, PostgreSQL, MSSQL, or BigQuery via Grafana.

    Server says: destructive · toolset sql

    Our call: Runs any SQL as the datasource's user. It adds a LIMIT, which broke a bare DELETE, but a DELETE inside a WITH clause deleted the row. --disable-write removes it.

  • run_panel_query

    Executes one or more dashboard panel queries with optional time range and variable overrides.

    Server says: read-only · toolset runpanelquery

    Our call: Marked read-only and kept under --disable-write, but its variables go into the panel's SQL as they are. With a Viewer token, a variable holding 3; DELETE … deleted the row.

  • update_alert_group

    Update the state of a Grafana OnCall alert group: acknowledge, unacknowledge, resolve, or unresolve it by ID.

    Server says: destructive · toolset oncall

  • update_annotation

    Updates the provided properties of an annotation by ID.

    Server says: destructive · toolset annotations

  • update_dashboard

    Create or update a dashboard.

    Server says: destructive · toolset dashboard

    Our call: Replaces or patches any dashboard the token can edit, including a panel's SQL, which runs as the datasource's user whenever someone opens it.

  • update_datasource

    Update non-secret datasource fields by UID in two steps.

    Server says: destructive · toolset datasource

    Our call: It cannot change secrets, but it can change the URL. We pointed a datasource at our own server, and its health check sent the stored password and API key there.

  • update_incident

    Update an existing Grafana incident by ID.

    Server says: destructive · toolset incident

Reaches people1 toolAsk a person: once it reaches someone, it cannot be unsent.

  • create_snapshot

    Create a Grafana snapshot from a full dashboard payload.

    Server gives no read-only or destructive hint · toolset snapshot

    Our call: With external set, it publishes the dashboard and its data to Grafana's external snapshot server, snapshots.raintank.io by default. We did not try that part.

Not sure2 toolsAsk a person until you have checked what it does.

  • alerting_manage_routing

    Manage Grafana alerting routing configuration, including notification policies, contact points and time intervals.

    Server says: read-only · toolset alerting

    Our call: Marked read-only, but it returns contact point settings. Grafana hid our Slack URL and webhook password, yet the token in our webhook URL came back in full.

  • generate_deeplink

    Generate deeplink URLs for Grafana resources.

    Server gives no read-only or destructive hint · toolset navigation

Changes data7 toolsAsk a person. Once it is routine, a standing rule can answer.

  • add_activity_to_incident

    Add a note (userNote activity) to an existing incident's timeline using its ID.

    Server gives no read-only or destructive hint · toolset incident

  • alerting_routing_write

    Create Grafana-managed contact points for alert notifications using operation 'create_contact_point'.

    Server gives no read-only or destructive hint · toolset alerting

  • create_annotation

    Create a new annotation on a dashboard or panel.

    Server gives no read-only or destructive hint · toolset annotations

  • create_datasource

    Create a datasource in two steps.

    Server gives no read-only or destructive hint · toolset datasource

  • create_folder

    Create a Grafana folder.

    Server gives no read-only or destructive hint · toolset folder

  • create_incident

    Create a new Grafana incident.

    Server gives no read-only or destructive hint · toolset incident

  • validate_provisioning_file

    Validate a file in a provisioning repository at a given branch or commit by dry-run applying it.

    Server says: read-only · toolset provisioning

Only looks92 toolsLet it run. It only looks.

  • agento11y_manage_agents

    Read the agent catalog of Grafana Agent Observability (the grafana-agento11y-app plugin): which agents send telemetry, what their system prompts and tools are, how their prompt versions evolved, and how each version scored.

    Server says: read-only · toolset agento11y

    Our call: Marked read-only, and its schema offers only reads of the agent catalogue. It needs the Agent Observability plugin, so we did not run it.

  • agento11y_manage_conversations

    List, search, and fetch LLM conversations from Grafana Agent Observability (the grafana-agento11y-app plugin).

    Server says: read-only · toolset agento11y

  • agento11y_manage_generations

    Fetch a single LLM generation and its evaluation scores from Grafana Agent Observability (the grafana-agento11y-app plugin).

    Server says: read-only · toolset agento11y

  • alerting_rules_read

    List and inspect Grafana alert rules with filtering capabilities.

    Server says: read-only · toolset alerting

  • alerting_silences_read

    List and inspect Grafana alerting silences.

    Server says: read-only · toolset alerting

  • analyze_loki_labels

    Audits a Loki label strategy and optionally diagnoses query performance.

    Server says: read-only · toolset loki

    Our call: Marked read-only, and it only reads or lists. The checker takes a word in its description for a change.

  • check_datasources_health

    Check datasource health.

    Server says: read-only · toolset datasource

  • describe_sql_table

    Describe SQL columns: names, types, and available metadata.

    Server says: read-only · toolset sql

  • diff_tempo_traces

    Compare two complete traces.

    Server says: read-only · toolset tempo

  • get_alert_group

    Get a specific alert group from Grafana OnCall by its ID.

    Server says: read-only · toolset oncall

  • get_annotation_tags

    Returns annotation tags with optional filtering by tag name.

    Server says: read-only · toolset annotations

  • get_annotations

    Fetch Grafana annotations using filters such as dashboard UID, time range and tags.

    Server says: read-only · toolset annotations

    Our call: Marked read-only, and it only reads or lists. The checker takes a word in its description for a change.

  • get_assertions

    Get assertion summary for a given entity with its type, name, env, site, namespace, and a time range

    Server says: read-only · toolset asserts

  • get_current_oncall_users

    Get the list of users currently on-call for a specific Grafana OnCall schedule ID.

    Server says: read-only · toolset oncall

  • get_dashboard_by_uid

    Retrieves the complete dashboard, including panels, variables, and settings, for a specific dashboard identified by its UID.

    Server says: read-only · toolset dashboard

  • get_dashboard_panel_queries

    Retrieve panel queries from a Grafana dashboard.

    Server says: read-only · toolset dashboard

  • get_dashboard_property

    Get specific parts of a dashboard using JSONPath expressions to minimize context window usage.

    Server says: read-only · toolset dashboard

  • get_dashboard_summary

    Get a compact summary of a dashboard including title, panel count, panel types, variables, and other metadata without the full JSON.

    Server says: read-only · toolset dashboard

  • get_datasource

    Retrieves detailed information about a specific datasource by UID or name.

    Server says: read-only · toolset datasource

  • get_doc

    Fetch a Grafana documentation page.

    Server says: read-only · toolset docs

  • get_incident

    Get a single incident by ID.

    Server says: read-only · toolset incident

  • get_oncall_shift

    Get detailed information for a specific Grafana OnCall shift using its ID.

    Server says: read-only · toolset oncall

  • get_plugin

    Check whether a Grafana plugin is installed and retrieve its details (name, version, type, enabled status).

    Server says: read-only · toolset plugin

    Our call: Marked read-only, and it only reads or lists. The checker takes a word in its description for a change.

  • get_query_examples

    Get example queries for a specific datasource type.

    Server says: read-only · toolset examples

  • get_resource_description

    List available permissions and assignment capabilities for a Grafana resource type.

    Server says: read-only · toolset admin

  • get_resource_permissions

    List all permissions set on a specific Grafana resource (e.g., dashboard, datasource, folder) by its type and ID.

    Server says: read-only · toolset admin

  • get_role_assignments

    List all assignments for a specific role, showing which users, teams, and service accounts have been assigned this role.

    Server says: read-only · toolset admin

    Our call: Only lists which roles are assigned to whom. In the admin toolset, which is off by default.

  • get_role_details

    Get detailed information about a specific Grafana role by its UID, including permissions, metadata, and configuration.

    Server says: read-only · toolset admin

  • get_snapshot

    Get a Grafana snapshot by key, including snapshot metadata and dashboard payload.

    Server says: read-only · toolset snapshot

  • get_tempo_trace

    Retrieve a specific trace by ID.

    Server says: read-only · toolset tempo

  • get_tempo_traceql_docs

    Retrieve TraceQL reference documentation with examples, covering attribute filters, aggregates, structural operators, and metrics queries.

    Server says: read-only · toolset tempo

  • list_alert_groups

    List alert groups from Grafana OnCall with filtering options.

    Server says: read-only · toolset oncall

  • list_all_roles

    List all roles in Grafana.

    Server says: read-only · toolset admin

  • list_cloud_logging_buckets

    List the log buckets in a GCP project, as '<location>/buckets/<name>' (e.g.

    Server says: read-only · toolset cloudlogging

  • list_cloud_logging_projects

    List the GCP project IDs the Google Cloud Logging datasource's credentials can read logs from (at most 100; 'query' narrows the list).

    Server says: read-only · toolset cloudlogging

  • list_cloud_logging_views

    List the log views in a log bucket (e.g.

    Server says: read-only · toolset cloudlogging

  • list_cloudwatch_dimension_values

    List values for a CloudWatch dimension key (e.g.

    Server says: read-only · toolset cloudwatch

  • list_cloudwatch_dimensions

    List dimension keys for a CloudWatch metric.

    Server says: read-only · toolset cloudwatch

  • list_cloudwatch_log_group_fields

    List the fields discovered in a CloudWatch log group, for use in Logs Insights queries.

    Server says: read-only · toolset cloudwatch

  • list_cloudwatch_log_groups

    List CloudWatch log group names, optionally filtered by name prefix.

    Server says: read-only · toolset cloudwatch

  • list_cloudwatch_metrics

    List metrics for a CloudWatch namespace.

    Server says: read-only · toolset cloudwatch

  • list_cloudwatch_namespaces

    List available CloudWatch namespaces (AWS/EC2, AWS/ECS, AWS/RDS, etc.).

    Server says: read-only · toolset cloudwatch

  • list_dashboard_versions

    List saved versions of a Grafana dashboard.

    Server says: read-only · toolset dashboard

    Our call: Marked read-only, and it only reads or lists. The checker takes a word in its description for a change.

  • list_datasources

    List all configured datasources in Grafana.

    Server says: read-only · toolset datasource

  • list_graphite_metrics

    Discover available metric paths in a Graphite datasource by browsing the metric tree.

    Server says: read-only · toolset graphite

  • list_graphite_tags

    List available tag names in a Graphite datasource that uses tag-based metrics.

    Server says: read-only · toolset graphite

  • list_incident_custom_fields

    List the custom fields configured for Grafana incidents, including their type and, for select fields, the options that may be chosen.

    Server says: read-only · toolset incident

  • list_incidents

    List Grafana incidents.

    Server says: read-only · toolset incident

  • list_loki_label_names

    Lists all available label/field names (keys) found in logs within a specified Loki or VictoriaLogs datasource and time range.

    Server says: read-only · toolset loki

    Our call: Marked read-only, and it only reads or lists. The checker takes a word in its description for a change.

  • list_loki_label_values

    Retrieves all unique values associated with a specific `labelName` within a Loki or VictoriaLogs datasource and time range.

    Server says: read-only · toolset loki

    Our call: Marked read-only, and it only reads or lists. The checker takes a word in its description for a change.

  • list_oncall_schedules

    List Grafana OnCall schedules, optionally filtering by team ID.

    Server says: read-only · toolset oncall

  • list_oncall_teams

    List teams configured in Grafana OnCall.

    Server says: read-only · toolset oncall

  • list_oncall_users

    List users from Grafana OnCall.

    Server says: read-only · toolset oncall

  • list_prometheus_label_names

    List label names in a PromQL-compatible datasource (Prometheus, Thanos, Mimir, Cloud Monitoring, etc.).

    Server says: read-only · toolset prometheus

    Our call: Marked read-only, and it only reads or lists. The checker takes a word in its description for a change.

  • list_prometheus_label_values

    Gets the values for a specific label name in a PromQL-compatible datasource (Prometheus, Thanos, Mimir, Cloud Monitoring, etc.).

    Server says: read-only · toolset prometheus

    Our call: Marked read-only, and it only reads or lists. The checker takes a word in its description for a change.

  • list_prometheus_metric_metadata

    List Prometheus metric metadata.

    Server says: read-only · toolset prometheus

  • list_prometheus_metric_names

    Lists metric names in a PromQL-compatible datasource (Prometheus, Thanos, Mimir, Cloud Monitoring, etc.).

    Server says: read-only · toolset prometheus

  • list_provisioning_repositories

    List provisioning repositories (e.g.

    Server says: read-only · toolset provisioning

  • list_pyroscope_label_names

    Lists all available label names (keys) found in profiles within a specified Pyroscope datasource, time range, and optional label matchers.

    Server says: read-only · toolset pyroscope

    Our call: Marked read-only, and it only reads or lists. The checker takes a word in its description for a change.

  • list_pyroscope_label_values

    Lists all available label values for a particular label name found in profiles within a specified Pyroscope datasource, time range, and optional label matchers.

    Server says: read-only · toolset pyroscope

    Our call: Marked read-only, and it only reads or lists. The checker takes a word in its description for a change.

  • list_pyroscope_profile_types

    Lists all available profile types available in a specified Pyroscope datasource and time range.

    Server says: read-only · toolset pyroscope

  • list_snapshots

    List Grafana dashboard snapshots with optional query and result limit filters.

    Server says: read-only · toolset snapshot

  • list_sql_databases

    List databases, schemas, or catalogs.

    Server says: read-only · toolset sql

  • list_sql_tables

    List SQL tables and available metadata.

    Server says: read-only · toolset sql

  • list_team_roles

    List all roles assigned to one or more teams.

    Server says: read-only · toolset admin

    Our call: Only lists which roles are assigned to whom. In the admin toolset, which is off by default.

  • list_teams

    Search for Grafana teams by a query string.

    Server says: read-only · toolset admin

  • list_tempo_attribute_names

    List available attribute names for TraceQL queries.

    Server says: read-only · toolset tempo

  • list_tempo_attribute_values

    List values for a fully scoped attribute name (e.g.

    Server says: read-only · toolset tempo

  • list_user_roles

    List all roles assigned to one or more users.

    Server says: read-only · toolset admin

    Our call: Only lists which roles are assigned to whom. In the admin toolset, which is off by default.

  • list_users_by_org

    List users in the Grafana organization, optionally filtered by a search query.

    Server says: read-only · toolset admin

  • query_cloud_logging

    Query logs from a Google Cloud Logging datasource using the Cloud Logging query language.

    Server says: read-only · toolset cloudlogging

  • query_cloudwatch

    Query AWS CloudWatch metrics via Grafana.

    Server says: read-only · toolset cloudwatch

  • query_cloudwatch_logs

    Run a CloudWatch Logs Insights query against one or more log groups via Grafana and return the result rows.

    Server says: read-only · toolset cloudwatch

    Our call: Runs a search or log query, and the server keeps it under --disable-write because the language cannot change data. What comes back is your data, log lines included.

  • query_elasticsearch

    Executes a search query against an Elasticsearch or OpenSearch datasource and retrieves matching documents.

    Server says: read-only · toolset elasticsearch

    Our call: Runs a search or log query, and the server keeps it under --disable-write because the language cannot change data. What comes back is your data, log lines included.

  • query_graphite

    Executes a Graphite render API query against a Graphite datasource and returns matching metric series with their datapoints.

    Server says: read-only · toolset graphite

    Our call: Runs a search or log query, and the server keeps it under --disable-write because the language cannot change data. What comes back is your data, log lines included.

  • query_graphite_density

    Analyses metric data density for one or more Graphite series over a time window.

    Server says: read-only · toolset graphite

  • query_loki_logs

    Executes a log query against a Loki or VictoriaLogs datasource and returns matching log entries (or metric samples on Loki).

    Server says: read-only · toolset loki

    Our call: Runs a search or log query, and the server keeps it under --disable-write because the language cannot change data. What comes back is your data, log lines included.

  • query_loki_patterns

    Retrieves detected log patterns from a Loki datasource for a given stream selector and time range.

    Server says: read-only · toolset loki

  • query_loki_stats

    Retrieves index-level statistics about log streams matching a given selector within a Loki or VictoriaLogs datasource and time range.

    Server says: read-only · toolset loki

  • query_prometheus

    Query a PromQL-compatible datasource (Prometheus, Thanos, Mimir, Cloud Monitoring, etc.) using a PromQL expression.

    Server says: read-only · toolset prometheus

  • query_prometheus_histogram

    Query Prometheus histogram percentiles from classic histogram '_bucket' series.

    Server says: read-only · toolset prometheus

  • query_pyroscope

    Unified Pyroscope query tool for fetching profiles or metrics from Pyroscope.

    Server says: read-only · toolset pyroscope

  • query_quickwit

    Executes a search query against a Quickwit datasource and retrieves matching documents.

    Server says: read-only · toolset quickwit

    Our call: Runs a search or log query, and the server keeps it under --disable-write because the language cannot change data. What comes back is your data, log lines included.

  • query_tempo_metrics

    Compute trace-derived metrics using a TraceQL metrics query.

    Server says: read-only · toolset tempo

  • render_grafana_app

    Run a query tool and display its result in the interactive Grafana App.

    Server says: read-only · toolset rendering

    Our call: Runs only query_prometheus or get_tempo_trace and shows the result. Asked to run query_sql or grafana_api_request, it refused.

  • search_dashboards

    Search Grafana dashboards by query and/or folderUid, folderPath, tag, and starred.

    Server says: read-only · toolset search

    Our call: Marked read-only, and it only reads or lists. The checker takes a word in its description for a change.

  • search_docs

    Search Grafana documentation.

    Server says: read-only · toolset docs

  • search_folders

    Search for Grafana folders by a query string.

    Server says: read-only · toolset search

  • search_plugin_information

    Search the Grafana plugin catalog by keyword, purpose, or partial name (e.g.

    Server says: read-only · toolset plugin

  • search_tempo_traces

    Search for traces using TraceQL queries.

    Server says: read-only · toolset tempo

  • suggest_loki_alloy_label_config

    Generates an Alloy loki.process snippet enforcing an approved label set via stage.label_keep, with optional log-level normalisation and soft-enforcement placeholders.

    Server says: read-only · toolset config

    Our call: Marked read-only, and it only reads or lists. The checker takes a word in its description for a change.

  • user_info

    Get information about the current Grafana identity: login, email, name, whether it is a Grafana (server) admin, the current organization, and the organizations it can access (with roles).

    Server says: read-only · toolset user

    Our call: Only reads who the token belongs to: login, name, email and organisations.

Let the reads run in Claude Code

Claude Code asks before every MCP tool it has no rule for. Added as grafana, this server’s tools are named mcp__grafana__<tool>. These allow rules, in .claude/settings.json or ~/.claude/settings.json, let the tools that only look run without a prompt. Everything else keeps asking, including any tool a later version of the server adds.

{
  "permissions": {
    "allow": [
      "mcp__grafana__agento11y_manage_agents",
      "mcp__grafana__agento11y_manage_conversations",
      "mcp__grafana__agento11y_manage_generations",
      "mcp__grafana__alerting_rules_read",
      "mcp__grafana__alerting_silences_read",
      "mcp__grafana__analyze_loki_labels",
      "mcp__grafana__check_datasources_health",
      "mcp__grafana__describe_sql_table",
      "mcp__grafana__diff_tempo_traces",
      "mcp__grafana__get_alert_group",
      "mcp__grafana__get_annotation_tags",
      "mcp__grafana__get_annotations",
      "mcp__grafana__get_assertions",
      "mcp__grafana__get_current_oncall_users",
      "mcp__grafana__get_dashboard_by_uid",
      "mcp__grafana__get_dashboard_panel_queries",
      "mcp__grafana__get_dashboard_property",
      "mcp__grafana__get_dashboard_summary",
      "mcp__grafana__get_datasource",
      "mcp__grafana__get_doc",
      "mcp__grafana__get_incident",
      "mcp__grafana__get_oncall_shift",
      "mcp__grafana__get_plugin",
      "mcp__grafana__get_query_examples",
      "mcp__grafana__get_resource_description",
      "mcp__grafana__get_resource_permissions",
      "mcp__grafana__get_role_assignments",
      "mcp__grafana__get_role_details",
      "mcp__grafana__get_snapshot",
      "mcp__grafana__get_tempo_trace",
      "mcp__grafana__get_tempo_traceql_docs",
      "mcp__grafana__list_alert_groups",
      "mcp__grafana__list_all_roles",
      "mcp__grafana__list_cloud_logging_buckets",
      "mcp__grafana__list_cloud_logging_projects",
      "mcp__grafana__list_cloud_logging_views",
      "mcp__grafana__list_cloudwatch_dimension_values",
      "mcp__grafana__list_cloudwatch_dimensions",
      "mcp__grafana__list_cloudwatch_log_group_fields",
      "mcp__grafana__list_cloudwatch_log_groups",
      "mcp__grafana__list_cloudwatch_metrics",
      "mcp__grafana__list_cloudwatch_namespaces",
      "mcp__grafana__list_dashboard_versions",
      "mcp__grafana__list_datasources",
      "mcp__grafana__list_graphite_metrics",
      "mcp__grafana__list_graphite_tags",
      "mcp__grafana__list_incident_custom_fields",
      "mcp__grafana__list_incidents",
      "mcp__grafana__list_loki_label_names",
      "mcp__grafana__list_loki_label_values",
      "mcp__grafana__list_oncall_schedules",
      "mcp__grafana__list_oncall_teams",
      "mcp__grafana__list_oncall_users",
      "mcp__grafana__list_prometheus_label_names",
      "mcp__grafana__list_prometheus_label_values",
      "mcp__grafana__list_prometheus_metric_metadata",
      "mcp__grafana__list_prometheus_metric_names",
      "mcp__grafana__list_provisioning_repositories",
      "mcp__grafana__list_pyroscope_label_names",
      "mcp__grafana__list_pyroscope_label_values",
      "mcp__grafana__list_pyroscope_profile_types",
      "mcp__grafana__list_snapshots",
      "mcp__grafana__list_sql_databases",
      "mcp__grafana__list_sql_tables",
      "mcp__grafana__list_team_roles",
      "mcp__grafana__list_teams",
      "mcp__grafana__list_tempo_attribute_names",
      "mcp__grafana__list_tempo_attribute_values",
      "mcp__grafana__list_user_roles",
      "mcp__grafana__list_users_by_org",
      "mcp__grafana__query_cloud_logging",
      "mcp__grafana__query_cloudwatch",
      "mcp__grafana__query_cloudwatch_logs",
      "mcp__grafana__query_elasticsearch",
      "mcp__grafana__query_graphite",
      "mcp__grafana__query_graphite_density",
      "mcp__grafana__query_loki_logs",
      "mcp__grafana__query_loki_patterns",
      "mcp__grafana__query_loki_stats",
      "mcp__grafana__query_prometheus",
      "mcp__grafana__query_prometheus_histogram",
      "mcp__grafana__query_pyroscope",
      "mcp__grafana__query_quickwit",
      "mcp__grafana__query_tempo_metrics",
      "mcp__grafana__render_grafana_app",
      "mcp__grafana__search_dashboards",
      "mcp__grafana__search_docs",
      "mcp__grafana__search_folders",
      "mcp__grafana__search_plugin_information",
      "mcp__grafana__search_tempo_traces",
      "mcp__grafana__suggest_loki_alloy_label_config",
      "mcp__grafana__user_info"
    ]
  }
}

The command that adds the server:

claude mcp add grafana -e GRAFANA_URL=https://grafana.example.com -e GRAFANA_SERVICE_ACCOUNT_TOKEN=$GRAFANA_TOKEN -- docker run --rm -i -e GRAFANA_URL -e GRAFANA_SERVICE_ACCOUNT_TOKEN grafana/mcp-grafana -t stdio --disable-write

Send the rest to a person, not the terminal

A prompt in the terminal only works while someone is watching it. With this hook, every other tool of the server becomes a request in your VariantGate inbox, on your phone or in Slack, and Claude Code waits for the answer. The matcher names the look-only tools, so a tool added later is sent too. Put the key in VARIANTGATE_KEY, or run the one-command setup for Claude Code first.

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "mcp__grafana__(?!(agento11y_manage_agents|agento11y_manage_conversations|agento11y_manage_generations|alerting_rules_read|alerting_silences_read|analyze_loki_labels|check_datasources_health|describe_sql_table|diff_tempo_traces|get_alert_group|get_annotation_tags|get_annotations|get_assertions|get_current_oncall_users|get_dashboard_by_uid|get_dashboard_panel_queries|get_dashboard_property|get_dashboard_summary|get_datasource|get_doc|get_incident|get_oncall_shift|get_plugin|get_query_examples|get_resource_description|get_resource_permissions|get_role_assignments|get_role_details|get_snapshot|get_tempo_trace|get_tempo_traceql_docs|list_alert_groups|list_all_roles|list_cloud_logging_buckets|list_cloud_logging_projects|list_cloud_logging_views|list_cloudwatch_dimension_values|list_cloudwatch_dimensions|list_cloudwatch_log_group_fields|list_cloudwatch_log_groups|list_cloudwatch_metrics|list_cloudwatch_namespaces|list_dashboard_versions|list_datasources|list_graphite_metrics|list_graphite_tags|list_incident_custom_fields|list_incidents|list_loki_label_names|list_loki_label_values|list_oncall_schedules|list_oncall_teams|list_oncall_users|list_prometheus_label_names|list_prometheus_label_values|list_prometheus_metric_metadata|list_prometheus_metric_names|list_provisioning_repositories|list_pyroscope_label_names|list_pyroscope_label_values|list_pyroscope_profile_types|list_snapshots|list_sql_databases|list_sql_tables|list_team_roles|list_teams|list_tempo_attribute_names|list_tempo_attribute_values|list_user_roles|list_users_by_org|query_cloud_logging|query_cloudwatch|query_cloudwatch_logs|query_elasticsearch|query_graphite|query_graphite_density|query_loki_logs|query_loki_patterns|query_loki_stats|query_prometheus|query_prometheus_histogram|query_pyroscope|query_quickwit|query_tempo_metrics|render_grafana_app|search_dashboards|search_docs|search_folders|search_plugin_information|search_tempo_traces|suggest_loki_alloy_label_config|user_info)$).*",
        "hooks": [
          { "type": "command", "command": "variantgate hook claude-code", "timeout": 180 }
        ]
      }
    ]
  }
}

Disagree with a tier, or run the server with other flags? Open these tools in the tool risk checker, change what you like, and copy the settings for your own setup. It runs in your browser and starts from its own reading, so a tool we marked as only looking by hand asks there until you change it.

Any MCP client: put the proxy in front

Claude Desktop, Cursor and most other MCP clients have no hook to send a call to a person. The VariantGate MCP proxy does it in the server’s place: it starts the server, lets the look-only tools above through, and holds every other call until someone approves it in the inbox. Run npx -y https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz login once to save a key, then use this in claude_desktop_config.json or ~/.cursor/mcp.json:

{
  "mcpServers": {
    "grafana": {
      "args": [
        "-y",
        "https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz",
        "mcp-proxy",
        "--name",
        "grafana",
        "--look-only",
        "agento11y_manage_agents,agento11y_manage_conversations,agento11y_manage_generations,alerting_rules_read,alerting_silences_read,analyze_loki_labels,check_datasources_health,describe_sql_table,diff_tempo_traces,get_alert_group,get_annotation_tags,get_annotations,get_assertions,get_current_oncall_users,get_dashboard_by_uid,get_dashboard_panel_queries,get_dashboard_property,get_dashboard_summary,get_datasource,get_doc,get_incident,get_oncall_shift,get_plugin,get_query_examples,get_resource_description,get_resource_permissions,get_role_assignments,get_role_details,get_snapshot,get_tempo_trace,get_tempo_traceql_docs,list_alert_groups,list_all_roles,list_cloud_logging_buckets,list_cloud_logging_projects,list_cloud_logging_views,list_cloudwatch_dimension_values,list_cloudwatch_dimensions,list_cloudwatch_log_group_fields,list_cloudwatch_log_groups,list_cloudwatch_metrics,list_cloudwatch_namespaces,list_dashboard_versions,list_datasources,list_graphite_metrics,list_graphite_tags,list_incident_custom_fields,list_incidents,list_loki_label_names,list_loki_label_values,list_oncall_schedules,list_oncall_teams,list_oncall_users,list_prometheus_label_names,list_prometheus_label_values,list_prometheus_metric_metadata,list_prometheus_metric_names,list_provisioning_repositories,list_pyroscope_label_names,list_pyroscope_label_values,list_pyroscope_profile_types,list_snapshots,list_sql_databases,list_sql_tables,list_team_roles,list_teams,list_tempo_attribute_names,list_tempo_attribute_values,list_user_roles,list_users_by_org,query_cloud_logging,query_cloudwatch,query_cloudwatch_logs,query_elasticsearch,query_graphite,query_graphite_density,query_loki_logs,query_loki_patterns,query_loki_stats,query_prometheus,query_prometheus_histogram,query_pyroscope,query_quickwit,query_tempo_metrics,render_grafana_app,search_dashboards,search_docs,search_folders,search_plugin_information,search_tempo_traces,suggest_loki_alloy_label_config,user_info",
        "--",
        "docker",
        "run",
        "--rm",
        "-i",
        "-e",
        "GRAFANA_URL",
        "-e",
        "GRAFANA_SERVICE_ACCOUNT_TOKEN",
        "grafana/mcp-grafana",
        "-t",
        "stdio",
        "--disable-write"
      ],
      "command": "npx",
      "env": {
        "GRAFANA_URL": "https://grafana.example.com",
        "GRAFANA_SERVICE_ACCOUNT_TOKEN": "<GRAFANA_TOKEN>"
      }
    }
  }
}

Already have it in Claude Desktop? One command rewrites the file for you, with these look-only tools filled in, and keeps the old one (setup vscode does the same for VS Code; how it works):

npx -y https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz setup claude-desktop

The same in Claude Code, instead of the hook. The proxy now asks about every call that matters, so an allow rule for the whole server, mcp__grafana, keeps Claude Code from asking a second time in the terminal:

claude mcp add grafana -e GRAFANA_URL=https://grafana.example.com -e GRAFANA_SERVICE_ACCOUNT_TOKEN=$GRAFANA_TOKEN -- npx -y https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz mcp-proxy --name grafana --look-only agento11y_manage_agents,agento11y_manage_conversations,agento11y_manage_generations,alerting_rules_read,alerting_silences_read,analyze_loki_labels,check_datasources_health,describe_sql_table,diff_tempo_traces,get_alert_group,get_annotation_tags,get_annotations,get_assertions,get_current_oncall_users,get_dashboard_by_uid,get_dashboard_panel_queries,get_dashboard_property,get_dashboard_summary,get_datasource,get_doc,get_incident,get_oncall_shift,get_plugin,get_query_examples,get_resource_description,get_resource_permissions,get_role_assignments,get_role_details,get_snapshot,get_tempo_trace,get_tempo_traceql_docs,list_alert_groups,list_all_roles,list_cloud_logging_buckets,list_cloud_logging_projects,list_cloud_logging_views,list_cloudwatch_dimension_values,list_cloudwatch_dimensions,list_cloudwatch_log_group_fields,list_cloudwatch_log_groups,list_cloudwatch_metrics,list_cloudwatch_namespaces,list_dashboard_versions,list_datasources,list_graphite_metrics,list_graphite_tags,list_incident_custom_fields,list_incidents,list_loki_label_names,list_loki_label_values,list_oncall_schedules,list_oncall_teams,list_oncall_users,list_prometheus_label_names,list_prometheus_label_values,list_prometheus_metric_metadata,list_prometheus_metric_names,list_provisioning_repositories,list_pyroscope_label_names,list_pyroscope_label_values,list_pyroscope_profile_types,list_snapshots,list_sql_databases,list_sql_tables,list_team_roles,list_teams,list_tempo_attribute_names,list_tempo_attribute_values,list_user_roles,list_users_by_org,query_cloud_logging,query_cloudwatch,query_cloudwatch_logs,query_elasticsearch,query_graphite,query_graphite_density,query_loki_logs,query_loki_patterns,query_loki_stats,query_prometheus,query_prometheus_histogram,query_pyroscope,query_quickwit,query_tempo_metrics,render_grafana_app,search_dashboards,search_docs,search_folders,search_plugin_information,search_tempo_traces,suggest_loki_alloy_label_config,user_info -- docker run --rm -i -e GRAFANA_URL -e GRAFANA_SERVICE_ACCOUNT_TOKEN grafana/mcp-grafana -t stdio --disable-write

When the agent should write

To let an agent build dashboards or manage alerts, run a second server without --disable-write, under its own name such as grafana-write, with an Editor token, and let every tool of it ask. With that token, alerting_silences_write muted every alert for a year with one silence on alertname=~.+, and update_dashboard rewrote a panel’s SQL to DELETE FROM orders. Read the matchers and the SQL first.

See it before you decide.

The playground runs the whole approval loop in your browser, no account needed. When it fits, the free plan covers 100 requests a month.