<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Open source Grafana MCP server on Grafana Labs</title><link>https://grafana.com/docs/grafana/v13.1/developer-resources/mcp/</link><description>Recent content in Open source Grafana MCP server on Grafana Labs</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="/docs/grafana/v13.1/developer-resources/mcp/index.xml" rel="self" type="application/rss+xml"/><item><title>Introduction to the Grafana MCP server</title><link>https://grafana.com/docs/grafana/v13.1/developer-resources/mcp/introduction/</link><pubDate>Thu, 01 Oct 2026 13:22:11 +0000</pubDate><guid>https://grafana.com/docs/grafana/v13.1/developer-resources/mcp/introduction/</guid><content><![CDATA[&lt;h1 id=&#34;introduction-to-the-grafana-mcp-server&#34;&gt;Introduction to the Grafana MCP server&lt;/h1&gt;
&lt;p&gt;This article outlines what the open source &lt;a href=&#34;https://github.com/grafana/mcp-grafana&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Grafana MCP server&lt;/a&gt; is, what it can do, and how authentication and permissions work.&lt;/p&gt;
&lt;p&gt;For Grafana Cloud&amp;rsquo;s hosted MCP server, refer to &lt;a href=&#34;/docs/grafana-cloud/ai-tools/mcp-servers/cloud-mcp/&#34;&gt;Grafana Cloud MCP server&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;what-youll-achieve&#34;&gt;What you&amp;rsquo;ll achieve&lt;/h2&gt;
&lt;p&gt;You understand how the server fits into the Model Context Protocol ecosystem, what kinds of tools it exposes (metrics, logs, traces, dashboards, alerting, and more), and how Grafana RBAC applies.&lt;/p&gt;
&lt;h2 id=&#34;before-you-begin&#34;&gt;Before you begin&lt;/h2&gt;
&lt;p&gt;You will need a Grafana instance (Grafana 9.0 or later) and an MCP-compatible client (for example, Claude Desktop, Cursor, or VS Code with Copilot).&lt;/p&gt;
&lt;h2 id=&#34;model-context-protocol-mcp&#34;&gt;Model Context Protocol (MCP)&lt;/h2&gt;
&lt;p&gt;The &lt;a href=&#34;https://modelcontextprotocol.io/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Model Context Protocol&lt;/a&gt; (MCP) is a standard way for AI assistants and LLM clients to connect to external systems. The Grafana MCP server implements MCP so your client can talk to Grafana without you writing custom integrations. The server exposes tools that map to actions in Grafana such as querying metrics and logs, searching dashboards, managing alert rules, working with incidents and OnCall, and generating deeplinks. Your AI assistant calls these tools on your behalf when you ask questions or give instructions that involve Grafana.&lt;/p&gt;
&lt;h2 id=&#34;tools-and-capabilities&#34;&gt;Tools and capabilities&lt;/h2&gt;
&lt;p&gt;The server exposes many tools, grouped by area: dashboards (search, get summary, get panel queries, update, patch), folders (search, create), datasources (list and query Prometheus, Loki, InfluxDB, ClickHouse, Snowflake, CloudWatch, Google Cloud Logging, Elasticsearch, Pyroscope), Tempo (trace search, metrics, trace diff, attribute exploration), alerting (rules and routing), incidents (Grafana Incident), OnCall (schedules, alert groups), navigation (deeplinks), annotations, snapshots (list, get, create, delete), rendering (panel or dashboard images), and user info (current identity and the organizations it can access). Some tool categories are disabled by default to save context window; you enable them with &lt;a href=&#34;../configure/enable-and-disable-tools/&#34;&gt;Enable and disable tools&lt;/a&gt;. For dashboards, prefer &lt;code&gt;get_dashboard_summary&lt;/code&gt; and &lt;code&gt;get_dashboard_property&lt;/code&gt; over &lt;code&gt;get_dashboard_by_uid&lt;/code&gt; when you do not need the full JSON, to manage context window use.&lt;/p&gt;
&lt;h2 id=&#34;authentication-and-rbac&#34;&gt;Authentication and RBAC&lt;/h2&gt;
&lt;p&gt;The server uses a Grafana &lt;a href=&#34;/docs/grafana/latest/administration/service-accounts/#add-a-token-to-a-service-account-in-grafana&#34;&gt;service account token&lt;/a&gt; (or username and password) to call the Grafana API. Each tool requires the right Grafana RBAC permissions and scopes. For example, reading dashboards needs &lt;code&gt;dashboards:read&lt;/code&gt; and a scope like &lt;code&gt;dashboards:*&lt;/code&gt; or &lt;code&gt;dashboards:uid:xyz&lt;/code&gt;. Creating or updating dashboards needs &lt;code&gt;dashboards:create&lt;/code&gt; and &lt;code&gt;dashboards:write&lt;/code&gt; and appropriate folder scopes. You can assign the built-in Editor role to the service account for broad access, or use fine-grained permissions for least-privilege. Grafana Incident uses basic roles (Viewer for read, Editor for write). For full RBAC details, refer to &lt;a href=&#34;/docs/grafana/latest/administration/roles-and-permissions/access-control/&#34;&gt;Grafana RBAC&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;next-steps&#34;&gt;Next steps&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../clients/&#34;&gt;Clients&lt;/a&gt;, &lt;a href=&#34;../set-up/&#34;&gt;Set up&lt;/a&gt;, and &lt;a href=&#34;../configure/&#34;&gt;Configure&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../reference/mcp-tools-table/&#34;&gt;MCP tools reference&lt;/a&gt; for tools, permissions, scopes, and RBAC guidance.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../set-up/client-configuration-examples/&#34;&gt;Client configuration examples&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../guides/&#34;&gt;Guides&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
]]></content><description>&lt;h1 id="introduction-to-the-grafana-mcp-server">Introduction to the Grafana MCP server&lt;/h1>
&lt;p>This article outlines what the open source &lt;a href="https://github.com/grafana/mcp-grafana" target="_blank" rel="noopener noreferrer">Grafana MCP server&lt;/a> is, what it can do, and how authentication and permissions work.&lt;/p></description></item><item><title>Set up by client</title><link>https://grafana.com/docs/grafana/v13.1/developer-resources/mcp/clients/</link><pubDate>Wed, 29 Jul 2026 17:47:59 +0200</pubDate><guid>https://grafana.com/docs/grafana/v13.1/developer-resources/mcp/clients/</guid><content><![CDATA[&lt;h1 id=&#34;set-up-by-client&#34;&gt;Set up by client&lt;/h1&gt;
&lt;p&gt;Configure the open source Grafana MCP server for your MCP-compatible client. Each guide lists the config file location and a working server block.&lt;/p&gt;
&lt;p&gt;Refer to &lt;a href=&#34;../set-up/client-configuration-examples/&#34;&gt;Client configuration examples&lt;/a&gt; and &lt;a href=&#34;../set-up/&#34;&gt;Set up&lt;/a&gt; when you need more JSON or install options.&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/clients/claude-desktop/&#34;&gt;Claude Desktop&lt;/a&gt;&lt;br&gt;Set up the Grafana MCP server for Claude Desktop.&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/clients/cursor/&#34;&gt;Cursor&lt;/a&gt;&lt;br&gt;Set up the Grafana MCP server for Cursor.&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/clients/codex/&#34;&gt;Codex CLI&lt;/a&gt;&lt;br&gt;Set up the Grafana MCP server for the OpenAI Codex CLI.&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/clients/vscode-copilot/&#34;&gt;VS Code and GitHub Copilot&lt;/a&gt;&lt;br&gt;Set up the Grafana MCP server for VS Code with GitHub Copilot agent mode.&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/clients/claude-code/&#34;&gt;Claude Code&lt;/a&gt;&lt;br&gt;Set up the Grafana MCP server for the Claude Code CLI.&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/clients/gemini-cli/&#34;&gt;Gemini CLI&lt;/a&gt;&lt;br&gt;Set up the Grafana MCP server for the Google Gemini CLI.&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/clients/windsurf/&#34;&gt;Windsurf&lt;/a&gt;&lt;br&gt;Set up the Grafana MCP server for Windsurf.&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/clients/zed/&#34;&gt;Zed&lt;/a&gt;&lt;br&gt;Set up the Grafana MCP server for the Zed editor.&lt;/li&gt;&lt;/ul&gt;
]]></content><description>&lt;h1 id="set-up-by-client">Set up by client&lt;/h1>
&lt;p>Configure the open source Grafana MCP server for your MCP-compatible client. Each guide lists the config file location and a working server block.&lt;/p></description></item><item><title>Set up the Grafana MCP server</title><link>https://grafana.com/docs/grafana/v13.1/developer-resources/mcp/set-up/</link><pubDate>Wed, 29 Jul 2026 17:47:59 +0200</pubDate><guid>https://grafana.com/docs/grafana/v13.1/developer-resources/mcp/set-up/</guid><content><![CDATA[&lt;h1 id=&#34;set-up-the-grafana-mcp-server&#34;&gt;Set up the Grafana MCP server&lt;/h1&gt;
&lt;p&gt;Choose how you install and run the open source Grafana MCP server. Start with &lt;code&gt;uvx&lt;/code&gt; for the least setup, or use Docker, a downloaded binary, or Helm when that fits your environment. Refer to &lt;a href=&#34;../clients/&#34;&gt;Clients&lt;/a&gt; for client-specific steps and &lt;a href=&#34;client-configuration-examples/&#34;&gt;Client configuration examples&lt;/a&gt; for copy-paste MCP JSON (debug, TLS, and more).&lt;/p&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;These instructions cover the open source server, which you install and run yourself. If you want to connect an external AI agent to Grafana Cloud without running your own server, refer to &lt;a href=&#34;/docs/grafana-cloud/ai-tools/mcp-servers/cloud-mcp/&#34;&gt;Grafana Cloud MCP server&lt;/a&gt; instead.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;ul&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/set-up/install-with-uvx/&#34;&gt;Install with uvx&lt;/a&gt;&lt;br&gt;Run the Grafana MCP server with uvx for a zero-install setup.&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/set-up/install-with-docker/&#34;&gt;Install with Docker&lt;/a&gt;&lt;br&gt;Run the Grafana MCP server using the official Docker image.&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/set-up/install-the-binary/&#34;&gt;Install the binary&lt;/a&gt;&lt;br&gt;Download or build the Grafana MCP server binary.&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/set-up/deploy-with-helm/&#34;&gt;Deploy with Helm&lt;/a&gt;&lt;br&gt;Deploy the Grafana MCP server to Kubernetes using the Helm chart.&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/set-up/client-configuration-examples/&#34;&gt;Client configuration examples&lt;/a&gt;&lt;br&gt;Example MCP client JSON for uvx, binary, Docker, VS Code, and debug mode.&lt;/li&gt;&lt;/ul&gt;
]]></content><description>&lt;h1 id="set-up-the-grafana-mcp-server">Set up the Grafana MCP server&lt;/h1>
&lt;p>Choose how you install and run the open source Grafana MCP server. Start with &lt;code>uvx&lt;/code> for the least setup, or use Docker, a downloaded binary, or Helm when that fits your environment. Refer to &lt;a href="../clients/">Clients&lt;/a> for client-specific steps and &lt;a href="client-configuration-examples/">Client configuration examples&lt;/a> for copy-paste MCP JSON (debug, TLS, and more).&lt;/p></description></item><item><title>Reference</title><link>https://grafana.com/docs/grafana/v13.1/developer-resources/mcp/reference/</link><pubDate>Wed, 29 Jul 2026 17:47:59 +0200</pubDate><guid>https://grafana.com/docs/grafana/v13.1/developer-resources/mcp/reference/</guid><content><![CDATA[&lt;h1 id=&#34;reference&#34;&gt;Reference&lt;/h1&gt;
&lt;p&gt;Technical reference for the open source Grafana MCP server, including the MCP tools permission table.&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/reference/mcp-tools-table/&#34;&gt;MCP tools reference&lt;/a&gt;&lt;br&gt;MCP tools, required Grafana RBAC permissions and scopes, and related guidance.&lt;/li&gt;&lt;/ul&gt;
]]></content><description>&lt;h1 id="reference">Reference&lt;/h1>
&lt;p>Technical reference for the open source Grafana MCP server, including the MCP tools permission table.&lt;/p>
&lt;ul>&lt;li>
&lt;a href="/docs/grafana/v13.0/developer-resources/mcp/reference/mcp-tools-table/">MCP tools reference&lt;/a>&lt;br>MCP tools, required Grafana RBAC permissions and scopes, and related guidance.&lt;/li>&lt;/ul></description></item><item><title>Configure the Grafana MCP server</title><link>https://grafana.com/docs/grafana/v13.1/developer-resources/mcp/configure/</link><pubDate>Wed, 29 Jul 2026 17:47:59 +0200</pubDate><guid>https://grafana.com/docs/grafana/v13.1/developer-resources/mcp/configure/</guid><content><![CDATA[&lt;h1 id=&#34;configure-the-grafana-mcp-server&#34;&gt;Configure the Grafana MCP server&lt;/h1&gt;
&lt;p&gt;Configure the open source Grafana MCP server: how it connects to Grafana, which tools are enabled, and how clients connect to the server.&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/configure/authentication/&#34;&gt;Authentication&lt;/a&gt;&lt;br&gt;Authenticate the Grafana MCP server to Grafana using a service account token or username and password.&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/configure/transports-and-addresses/&#34;&gt;Transports and addresses&lt;/a&gt;&lt;br&gt;Choose how the Grafana MCP server communicates with clients: stdio, SSE, or streamable-http.&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/configure/enable-and-disable-tools/&#34;&gt;Enable and disable tools&lt;/a&gt;&lt;br&gt;Control which MCP tools the Grafana MCP server exposes and use read-only mode.&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/configure/client-tls-grafana-connection/&#34;&gt;Client TLS (Grafana connection)&lt;/a&gt;&lt;br&gt;Use TLS certificates when the Grafana MCP server connects to Grafana (mTLS or custom CA).&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/configure/server-tls-streamable-http/&#34;&gt;Server TLS (streamable-http)&lt;/a&gt;&lt;br&gt;Serve the Grafana MCP server over HTTPS when using streamable-http transport.&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/configure/multi-organization-and-headers/&#34;&gt;Multi-organization and headers&lt;/a&gt;&lt;br&gt;Target a specific Grafana organization and send custom HTTP headers from the MCP server.&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/configure/command-line-flags/&#34;&gt;Command-line flags&lt;/a&gt;&lt;br&gt;CLI flags for the mcp-grafana binary, including transports, tools, TLS, and read-only mode.&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/configure/health-check-endpoint/&#34;&gt;Health check endpoint&lt;/a&gt;&lt;br&gt;HTTP health check for SSE and streamable-http transports.&lt;/li&gt;&lt;/ul&gt;
]]></content><description>&lt;h1 id="configure-the-grafana-mcp-server">Configure the Grafana MCP server&lt;/h1>
&lt;p>Configure the open source Grafana MCP server: how it connects to Grafana, which tools are enabled, and how clients connect to the server.&lt;/p></description></item><item><title>Guides</title><link>https://grafana.com/docs/grafana/v13.1/developer-resources/mcp/guides/</link><pubDate>Thu, 01 Oct 2026 13:22:11 +0000</pubDate><guid>https://grafana.com/docs/grafana/v13.1/developer-resources/mcp/guides/</guid><content><![CDATA[&lt;h1 id=&#34;guides&#34;&gt;Guides&lt;/h1&gt;
&lt;p&gt;Step-by-step use cases for the open source Grafana MCP server: query metrics and logs, search and inspect dashboards, manage alert rules, generate deeplinks, run panel queries, and use Grafana Incident.&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/guides/query-metrics-with-prometheus/&#34;&gt;Query metrics with Prometheus&lt;/a&gt;&lt;br&gt;Use the MCP server to run PromQL queries against a Prometheus datasource from your AI assistant.&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/guides/query-logs-with-loki/&#34;&gt;Query logs with Loki&lt;/a&gt;&lt;br&gt;Use the MCP server to run LogQL queries against a Loki datasource from your AI assistant.&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/guides/search-and-inspect-dashboards/&#34;&gt;Search and inspect dashboards&lt;/a&gt;&lt;br&gt;Use the MCP server to search dashboards and get summaries or panel queries without loading full JSON.&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/guides/manage-alert-rules/&#34;&gt;Manage alert rules&lt;/a&gt;&lt;br&gt;Use the MCP server to list, create, update, and delete Grafana alert rules and manage routing.&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/guides/generate-deeplinks-to-grafana/&#34;&gt;Generate deeplinks to Grafana&lt;/a&gt;&lt;br&gt;Use the MCP server to create accurate dashboard, panel, and Explore links instead of guessing URLs.&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/guides/run-a-dashboard-panel-query/&#34;&gt;Run a dashboard panel query&lt;/a&gt;&lt;br&gt;Use the MCP server to execute a dashboard panel&amp;#39;s query with custom time range and variable overrides.&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/guides/use-grafana-incident/&#34;&gt;Use Grafana Incident&lt;/a&gt;&lt;br&gt;Use the MCP server to manage Grafana Incident incidents (list, create, get, add activities, update).&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/guides/query-metrics-with-influxdb/&#34;&gt;Query metrics with InfluxDB&lt;/a&gt;&lt;br&gt;Use the MCP server to run Flux or InfluxQL queries against an InfluxDB datasource from your AI assistant.&lt;/li&gt;&lt;/ul&gt;
]]></content><description>&lt;h1 id="guides">Guides&lt;/h1>
&lt;p>Step-by-step use cases for the open source Grafana MCP server: query metrics and logs, search and inspect dashboards, manage alert rules, generate deeplinks, run panel queries, and use Grafana Incident.&lt;/p></description></item><item><title>Developer</title><link>https://grafana.com/docs/grafana/v13.1/developer-resources/mcp/developer/</link><pubDate>Wed, 29 Jul 2026 17:47:59 +0200</pubDate><guid>https://grafana.com/docs/grafana/v13.1/developer-resources/mcp/developer/</guid><content><![CDATA[&lt;h1 id=&#34;developer&#34;&gt;Developer&lt;/h1&gt;
&lt;p&gt;Build and test the server from source, use it as a Go library, and run it with Prometheus metrics and OpenTelemetry tracing.&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/developer/go-sdk/&#34;&gt;Go SDK (programmatic use)&lt;/a&gt;&lt;br&gt;Use the Grafana MCP server as a Go library to build custom MCP contexts and TLS configuration.&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/developer/observability-metrics-and-tracing/&#34;&gt;Observability (metrics, tracing, and logs)&lt;/a&gt;&lt;br&gt;Expose Prometheus metrics and OpenTelemetry tracing and logs from the Grafana MCP server.&lt;/li&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/developer/build-and-test/&#34;&gt;Build, test, and lint&lt;/a&gt;&lt;br&gt;Run the Grafana MCP server from source, execute tests, and lint the repository.&lt;/li&gt;&lt;/ul&gt;
]]></content><description>&lt;h1 id="developer">Developer&lt;/h1>
&lt;p>Build and test the server from source, use it as a Go library, and run it with Prometheus metrics and OpenTelemetry tracing.&lt;/p>
&lt;ul>&lt;li>
&lt;a href="/docs/grafana/v13.0/developer-resources/mcp/developer/go-sdk/">Go SDK (programmatic use)&lt;/a>&lt;br>Use the Grafana MCP server as a Go library to build custom MCP contexts and TLS configuration.&lt;/li>&lt;li>
&lt;a href="/docs/grafana/v13.0/developer-resources/mcp/developer/observability-metrics-and-tracing/">Observability (metrics, tracing, and logs)&lt;/a>&lt;br>Expose Prometheus metrics and OpenTelemetry tracing and logs from the Grafana MCP server.&lt;/li>&lt;li>
&lt;a href="/docs/grafana/v13.0/developer-resources/mcp/developer/build-and-test/">Build, test, and lint&lt;/a>&lt;br>Run the Grafana MCP server from source, execute tests, and lint the repository.&lt;/li>&lt;/ul></description></item><item><title>Anonymous usage statistics</title><link>https://grafana.com/docs/grafana/v13.1/developer-resources/mcp/anonymous-usage-statistics/</link><pubDate>Thu, 01 Oct 2026 13:22:11 +0000</pubDate><guid>https://grafana.com/docs/grafana/v13.1/developer-resources/mcp/anonymous-usage-statistics/</guid><content><![CDATA[&lt;h1 id=&#34;anonymous-usage-statistics&#34;&gt;Anonymous usage statistics&lt;/h1&gt;
&lt;p&gt;The Grafana MCP server can report limited usage statistics about itself to Grafana Labs. Grafana Labs uses this data to improve tools and investigate failures.&lt;/p&gt;
&lt;p&gt;To preserve anonymity, the emitted data describes the &lt;em&gt;shape&lt;/em&gt; of usage only. Things like tool arguments, resource names, dashboards, queries, log lines, error messages and credentials are never sent, and neither is the Grafana instance&amp;rsquo;s URL, hostname, stack slug, organisation name or organisation ID.&lt;/p&gt;
&lt;p&gt;Nothing an MCP client reports about itself - things like name and version - is collected. Any other value that comes from outside the binary is reduced to a fixed vocabulary before being emitted, so we don&amp;rsquo;t emit a potentially-identifying value.&lt;/p&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;Usage statistics reporting is &lt;strong&gt;enabled by default&lt;/strong&gt;. To disable reporting explicitly, refer to &lt;a href=&#34;#opt-out&#34;&gt;Opt out&lt;/a&gt;.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h2 id=&#34;before-you-begin&#34;&gt;Before you begin&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Install the Grafana MCP server. Refer to &lt;a href=&#34;../set-up/&#34;&gt;Set up the Grafana MCP server&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Make sure you can change the server&amp;rsquo;s startup flags or environment variables. If you start the server from an MCP client, refer to &lt;a href=&#34;../set-up/client-configuration-examples/&#34;&gt;Client configuration examples&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;understand-which-data-is-collected&#34;&gt;Understand which data is collected&lt;/h2&gt;
&lt;p&gt;Each server process generates one identifier, &lt;code&gt;process_id&lt;/code&gt;, as a random UUID in memory when it starts.&lt;/p&gt;
&lt;p&gt;Every event carries the following data:&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th style=&#34;text-align: left&#34;&gt;Field&lt;/th&gt;
              &lt;th style=&#34;text-align: left&#34;&gt;Description&lt;/th&gt;
              &lt;th style=&#34;text-align: left&#34;&gt;Example&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;service&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Always &lt;code&gt;mcp-grafana&lt;/code&gt;.&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;mcp-grafana&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;version&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;The version of the &lt;code&gt;mcp-grafana&lt;/code&gt; binary.&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;1.4.2&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;os&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Operating system.&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;linux&lt;/code&gt;, &lt;code&gt;darwin&lt;/code&gt;, &lt;code&gt;windows&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;arch&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;CPU architecture.&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;amd64&lt;/code&gt;, &lt;code&gt;arm64&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;process_id&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;A random per-process UID.&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;UUID&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;report_reason&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Why this event was sent: &lt;code&gt;interval&lt;/code&gt; (once every 4h) or &lt;code&gt;shutdown&lt;/code&gt;.&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;interval&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;process_uptime_ms&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;How long the process had been running when the event was built, in milliseconds.&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;1234&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;report_seq&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;This process&amp;rsquo;s reports numbered from 1. A gap in the sequence for a &lt;code&gt;process_id&lt;/code&gt; is a report that was built and never arrived.&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;3&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;tools_called&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Comma-separated names of the tools called since the previous event.&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;list_datasources,query_prometheus&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;tool_calls&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;A nested object keyed by tool name, each holding &lt;code&gt;calls&lt;/code&gt; and &lt;code&gt;errors&lt;/code&gt;.&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;{&amp;quot;query_prometheus&amp;quot;:{&amp;quot;calls&amp;quot;:4,&amp;quot;errors&amp;quot;:1}}&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;grafana_version&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;The version the Grafana instance reported. This is read from a response the server had already fetched for its own reasons, and truncated to 64 bytes. Absent whenever that version is not already known.&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;12.1.0&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;target_kind&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;cloud&lt;/code&gt; for Grafana Cloud or &lt;code&gt;self_hosted&lt;/code&gt; for other hostnames. Grafana Cloud instances reached through custom domains report &lt;code&gt;self_hosted&lt;/code&gt;.&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;cloud&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;auth_method&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;The credential category the connection resolved, from a fixed vocabulary.&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;service_account_token&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;transport&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;The transport the server is running: &lt;code&gt;stdio&lt;/code&gt;, &lt;code&gt;sse&lt;/code&gt; or &lt;code&gt;streamable-http&lt;/code&gt;.&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;stdio&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;flags&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;The &lt;strong&gt;names&lt;/strong&gt; of the command-line flags that were set. No flag values are sent.&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;disable-write,transport&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;env_set&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;The &lt;strong&gt;names&lt;/strong&gt; of the configuration environment variables that are set. No free-form values are sent.&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;GRAFANA_SERVICE_ACCOUNT_TOKEN,GRAFANA_URL&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;enabled_tools&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;The tool category names that are active.&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;alerting,dashboard,search&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;disabled_tools&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;The tool category names a &lt;code&gt;--disable-&amp;lt;category&amp;gt;&lt;/code&gt; flag turned off.&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;oncall&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;tls_enabled&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Whether the server is serving HTTPS (only the &lt;code&gt;streamable-http&lt;/code&gt; transport does).&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;false&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;metrics_enabled&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Whether the Prometheus &lt;code&gt;/metrics&lt;/code&gt; endpoint is served.&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;true&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;dynamic_multi_org&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Whether per-call organisation selection is enabled.&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;false&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;proxied_enabled&lt;/code&gt;&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;Whether proxied tools from external MCP servers are enabled.&lt;/td&gt;
              &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;true&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;h2 id=&#34;server-side-enrichment&#34;&gt;Server-side enrichment&lt;/h2&gt;
&lt;p&gt;Reports are received by Grafana&amp;rsquo;s usage-stats service, the same service that receives usage reports from Grafana, Loki, Mimir and Tempo. On receipt, the service adds two pieces of information derived from the connection rather than from the event:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A coarse &lt;strong&gt;geographic region&lt;/strong&gt;, for example, a country or subdivision, taken from headers added by the CDN edge.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;network organisation name&lt;/strong&gt; from a whois lookup of the connecting IP address, which typically resolves to your ISP, your cloud provider or your employer&amp;rsquo;s network.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;inspect-what-would-be-sent&#34;&gt;Inspect what would be sent&lt;/h2&gt;
&lt;p&gt;To inspect the report, set either the &lt;code&gt;--usage-stats=log&lt;/code&gt; flag or the &lt;code&gt;GRAFANA_USAGE_STATS=log&lt;/code&gt; environment variable. In this mode, the server prints each event to stderr and doesn&amp;rsquo;t send it:&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;shell&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-shell&#34;&gt;GRAFANA_USAGE_STATS=log mcp-grafana&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;The server prints a report every four hours and on graceful shutdown. To inspect a report sooner, stop the server gracefully after you run the tool calls you want to inspect. If you run the server in a terminal, press &lt;strong&gt;Ctrl&#43;C&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Under the &lt;code&gt;stdio&lt;/code&gt; transport, stderr goes wherever your MCP client sends the server&amp;rsquo;s logs. Read the printed events there.&lt;/p&gt;
&lt;h2 id=&#34;how-the-report-is-sent&#34;&gt;How the report is sent&lt;/h2&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Property&lt;/th&gt;
              &lt;th&gt;Value&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;Destination&lt;/td&gt;
              &lt;td&gt;&lt;code&gt;https://stats.grafana.org/mcp-grafana-usage-report&lt;/code&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Method&lt;/td&gt;
              &lt;td&gt;A single &lt;code&gt;POST&lt;/code&gt; with the event as a JSON object&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Attempts&lt;/td&gt;
              &lt;td&gt;One. A failed report is never retried and never stored.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Timing&lt;/td&gt;
              &lt;td&gt;Every four hours, and once more as the process exits&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Time limit&lt;/td&gt;
              &lt;td&gt;One second for the shutdown report, so exit is never delayed longer than that&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;p&gt;Because a failed report is never retried, and the counters reset when a report is built rather than when it arrives, a total summed across a &lt;code&gt;process_id&lt;/code&gt; is a floor rather than an exact count. &lt;code&gt;report_seq&lt;/code&gt; is how a missing report is identified.&lt;/p&gt;
&lt;p&gt;To send reports somewhere else, set &lt;code&gt;GRAFANA_USAGE_STATS_ENDPOINT&lt;/code&gt; to another URL. This changes the destination only; it is not an opt-out.&lt;/p&gt;
&lt;h2 id=&#34;opt-out&#34;&gt;Opt out&lt;/h2&gt;
&lt;p&gt;Use one of the following controls. The &lt;code&gt;--usage-stats&lt;/code&gt; flag overrides &lt;code&gt;GRAFANA_USAGE_STATS&lt;/code&gt;, and both override &lt;code&gt;DO_NOT_TRACK&lt;/code&gt;. Unrecognized mode values disable reporting. Only &lt;code&gt;DO_NOT_TRACK=1&lt;/code&gt; has an effect; other values don&amp;rsquo;t change the reporting mode.&lt;/p&gt;
&lt;p&gt;The controls appear in order of precedence, highest first:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;--usage-stats&lt;/code&gt; flag&lt;/strong&gt;: set it to &lt;code&gt;enabled&lt;/code&gt;, &lt;code&gt;disabled&lt;/code&gt; or &lt;code&gt;log&lt;/code&gt;.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;shell&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-shell&#34;&gt;mcp-grafana --usage-stats=disabled&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;GRAFANA_USAGE_STATS&lt;/code&gt; environment variable&lt;/strong&gt;: set it to &lt;code&gt;enabled&lt;/code&gt;, &lt;code&gt;disabled&lt;/code&gt; or &lt;code&gt;log&lt;/code&gt;.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;shell&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-shell&#34;&gt;export GRAFANA_USAGE_STATS=disabled&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;DO_NOT_TRACK&lt;/code&gt; environment variable&lt;/strong&gt;: set it to &lt;code&gt;1&lt;/code&gt; to disable reporting, following the cross-tool &lt;a href=&#34;https://donottrack.sh/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;DO_NOT_TRACK&lt;/a&gt; convention.&lt;/p&gt;

&lt;div class=&#34;code-snippet &#34;&gt;&lt;div class=&#34;lang-toolbar&#34;&gt;
    &lt;span class=&#34;lang-toolbar__item lang-toolbar__item-active&#34;&gt;shell&lt;/span&gt;
    &lt;span class=&#34;code-clipboard&#34;&gt;
      &lt;button x-data=&#34;app_code_snippet()&#34; x-init=&#34;init()&#34; @click=&#34;copy()&#34;&gt;
        &lt;img class=&#34;code-clipboard__icon&#34; src=&#34;/media/images/icons/icon-copy-small-2.svg&#34; alt=&#34;Copy code to clipboard&#34; width=&#34;14&#34; height=&#34;13&#34;&gt;
        &lt;span&gt;Copy&lt;/span&gt;
      &lt;/button&gt;
    &lt;/span&gt;
    &lt;div class=&#34;lang-toolbar__border&#34;&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;div class=&#34;code-snippet &#34;&gt;
    &lt;pre data-expanded=&#34;false&#34;&gt;&lt;code class=&#34;language-shell&#34;&gt;export DO_NOT_TRACK=1&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;next-steps&#34;&gt;Next steps&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;To configure other server options, refer to &lt;a href=&#34;../configure/command-line-flags/&#34;&gt;Command-line flags&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;To monitor your server, refer to &lt;a href=&#34;../developer/observability-metrics-and-tracing/&#34;&gt;Observability: metrics and tracing&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
]]></content><description>&lt;h1 id="anonymous-usage-statistics">Anonymous usage statistics&lt;/h1>
&lt;p>The Grafana MCP server can report limited usage statistics about itself to Grafana Labs. Grafana Labs uses this data to improve tools and investigate failures.&lt;/p></description></item><item><title>Troubleshooting</title><link>https://grafana.com/docs/grafana/v13.1/developer-resources/mcp/troubleshooting/</link><pubDate>Wed, 29 Jul 2026 17:47:59 +0200</pubDate><guid>https://grafana.com/docs/grafana/v13.1/developer-resources/mcp/troubleshooting/</guid><content><![CDATA[&lt;h1 id=&#34;troubleshooting&#34;&gt;Troubleshooting&lt;/h1&gt;
&lt;p&gt;Diagnose common problems with the open source Grafana MCP server and Grafana compatibility.&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;
    &lt;a href=&#34;/docs/grafana/v13.0/developer-resources/mcp/troubleshooting/grafana-version-compatibility/&#34;&gt;Grafana version compatibility&lt;/a&gt;&lt;br&gt;Datasource errors on Grafana versions earlier than 9.0.&lt;/li&gt;&lt;/ul&gt;
]]></content><description>&lt;h1 id="troubleshooting">Troubleshooting&lt;/h1>
&lt;p>Diagnose common problems with the open source Grafana MCP server and Grafana compatibility.&lt;/p>
&lt;ul>&lt;li>
&lt;a href="/docs/grafana/v13.0/developer-resources/mcp/troubleshooting/grafana-version-compatibility/">Grafana version compatibility&lt;/a>&lt;br>Datasource errors on Grafana versions earlier than 9.0.&lt;/li>&lt;/ul></description></item></channel></rss>