Grafana Cloud

Grafana Cloud MCP tools

The Grafana Cloud MCP server exposes the same tool categories as the open source Grafana MCP server, plus Assistant-native tools, for example, infrastructure memory. Tools marked Query require query access, and tools marked Write require write access.

Ask your agent to discover the tools available on your connection. The tool list depends on your granted access level, tool areas, and enabled features. If a tool is missing, it may be outside your granted areas. To change those areas, refer to Change a connection’s tool areas.

To use interactive charts and alert apps, your client must also support MCP Apps. Tools for a specific Grafana app require that app to be installed and configured, and your account needs permission to use it.

Tool areas

Note

Grafana Cloud MCP tool areas is currently in public preview. Grafana Labs offers limited support, and breaking changes might occur prior to the feature being made generally available.

Tool areas let you choose which kinds of tools an external AI agent sees on a Grafana Cloud MCP connection. For example, an analyst’s connection can see only business data tools, while an on-call engineer’s connection sees observability, dashboards, alerting, and Assistant tools. A smaller tool list keeps your agent focused on the work you connected it for.

Tool areas work alongside the access level you choose for the connection. A tool is available only when the connection has one of the tool’s areas and the access level the tool needs. Your Grafana permissions still apply to every operation. To choose areas when you connect, refer to Choose tool areas.

Each area adds a group of tools to the connection. Tools that several areas need, for example, data source discovery, come with each of those areas. Every area also includes documentation search, links into Grafana, and your user details.

AreaScopeTools for
Observabilitymcp:observabilityMetrics, logs, traces, and profiles, plus Grafana Cloud apps such as Kubernetes Monitoring.
Dashboardsmcp:dashboardsDashboards, folders, panels, snapshots, annotations, and notebooks.
Grafana Pagesmcp:pagesFinding, building, and publishing Pages.
Alerting & incident responsemcp:alertingAlert rules, silences, notification routing, incidents, and OnCall.
Grafana Assistantmcp:assistantAsking Assistant and running investigations.
Business datamcp:business-dataKnowledge Base, SQL table discovery, and SQL queries.
AI Observabilitymcp:ai-observabilityLLM conversations, evaluators, experiments, and test suites.
Administrationmcp:adminUsers, teams, roles, plugins, and data source settings.
Raw API & CLImcp:raw-apiCalling any Grafana API and running the gcx CLI.

Three areas reach beyond their own tools. Grafana Assistant tools hand your request to Assistant, which uses its own full toolset rather than the connection’s areas. Grafana Pages tools build pages whose queries can read any data source you can, and show the results in a page snapshot. Raw API & CLI can call any Grafana API and run any gcx command, which bypasses the limits of the other areas. Access levels still apply to all three. If you keep any of these areas but clear others, the consent page shows a warning.

You can still add Raw API & CLI to a narrow selection when you need it, for example, to reach products without dedicated tools, such as SLO and Fleet Management.

Available tools

The following sections list the tools by category.

Search and navigation

Use these tools to find dashboards, folders, and generate links to Grafana resources.

ToolDescription
search_dashboardsSearch for dashboards by query string.
search_foldersSearch for folders by query string.
generate_deeplinkGenerate links to dashboards, panels, and Explore queries.

Dashboards and folders

Use these tools to view and manage dashboards and folders.

ToolDescriptionAccess
get_dashboard_by_uidRetrieve the complete dashboard JSON by UID.Read
get_dashboard_summaryGet a compact summary of a dashboard without the full JSON.Read
get_dashboard_propertyExtract specific parts of a dashboard using JSONPath expressions.Read
get_dashboard_panel_queriesRetrieve panel queries with template variable substitution.Read
update_dashboardCreate or update a dashboard using full JSON or targeted patch operations.Write
create_folderCreate a Grafana folder.Write

Notebooks

Your agent can list, search, and read Grafana notebooks, and export a notebook as a PDF with render_notebook_pdf. With write access, it can also create, update, and delete notebooks.

Notebook tools require the notebooks preview to be enabled on your stack. Exporting a PDF also requires the Grafana Image Renderer.

Build Pages

Your agent can build Pages, interactive pages on your Grafana data such as reports, service overviews, and presentations, and write them itself instead of asking Assistant. A page is a small React and TypeScript project that your stack builds and hosts, and its queries run with the permissions of each person who opens it. Pages tools require the Grafana Pages tool area and Pages enabled on your stack.

Use list_pages to find published pages and get_page to read a page’s details, queries, and source. With write access, create_page_draft starts a private draft from the Pages template, and edit_page copies a published page into a draft so your agent can change it. Each draft opens in its own Assistant conversation.

Your agent reads a draft’s files with read_page_draft_files and writes them with write_page_draft_files, which builds the page on your stack and returns any build errors. A build that fails keeps the draft’s previous version. Use snapshot_page_draft to see an image of the draft rendered with your data.

A draft is private until you publish it. Ask your agent to publish with publish_page_draft when the page is ready. A new page goes into a folder, whose permissions decide who can open it, or stays unlisted. A draft of a published page becomes that page’s next version, keeps its folder and sharing, and leaves earlier versions in its history.

Reading pages and drafts and taking snapshots require read access. Starting, changing, and publishing pages require write access. These tools don’t run Assistant, so they don’t use Assistant tokens.

Data sources

Use these tools to list and inspect configured data sources.

ToolDescription
list_datasourcesList all configured data sources. Supports filtering by type and pagination.
get_datasourceGet detailed information about a data source by UID or name.

Prometheus

Use these tools to discover metrics and execute PromQL queries.

ToolDescription
list_prometheus_metric_namesDiscover available metrics with regular expression filtering and pagination.
list_prometheus_metric_metadataList metadata about currently scraped metrics.
list_prometheus_label_namesList label names with optional series selector and time range filtering.
list_prometheus_label_valuesGet values for a specific label.
query_prometheusExecute PromQL instant or range queries.
query_prometheus_histogramQuery histogram percentiles.

Loki

Use these tools to query logs and discover label metadata.

ToolDescription
list_loki_label_namesList available label names in logs.
list_loki_label_valuesGet unique values for a specific label.
query_loki_logsExecute LogQL queries for log entries or metric values.
query_loki_statsGet statistics about log streams.
query_loki_patternsDetect and analyze common log patterns.

Tempo

If you have Tempo data sources in your Grafana Cloud stack, the Grafana Cloud MCP server proxies any tools that the Tempo data source offers.

You can also use native Tempo tools to search and compare traces, query trace-derived metrics, and explore trace attributes.

Pyroscope

Use these tools to query profiling data.

ToolDescription
list_pyroscope_label_namesList available label names in profiles.
list_pyroscope_label_valuesList values for a specific label.
list_pyroscope_profile_typesList available profile types.
query_pyroscopeQuery profiles or metrics from Pyroscope.

Application and infrastructure observability

Use these tools to extend dashboard and data source queries with app-specific context.

ToolDescriptionAccess
app_observability_handlerList services and inspect operations, dependencies, instrumentation quality, and runtimes.Read
app_observability_operation_handlerFind top operations and inspect a specific operation’s metrics.Read
frontend_observability_handlerFind apps and inspect Web Vitals and browser errors. With write access, create an app and get its instrumentation snippets.Read / Write
kubernetes_handlerInspect clusters, namespaces, Deployments, and pods, with links to Kubernetes Monitoring.Read

Application Observability features that use graph-backed inventory and topology also require Knowledge Graph. Native operation queries don’t require it.

SQL data sources

Use these tools to explore and query SQL data sources: ClickHouse, Snowflake, Amazon Athena, MySQL, PostgreSQL, Microsoft SQL Server, and Google BigQuery.

ToolDescriptionAccess
list_sql_databasesList databases, schemas, or catalogs. For Athena, list catalogs first, then a catalog’s databases.Read
list_sql_tablesList tables and their available metadata.Read
describe_sql_tableGet column names, types, and available metadata for a table.Read
query_sqlExecute SQL queries, with support for time macros and template variables.Query

Amazon CloudWatch

Use these tools to query Amazon CloudWatch metrics and logs.

ToolDescription
list_cloudwatch_namespacesList available AWS namespaces.
list_cloudwatch_metricsList metrics for a namespace.
list_cloudwatch_dimensionsList dimension keys for a metric.
query_cloudwatchQuery Amazon CloudWatch metrics.
list_cloudwatch_log_groupsFind CloudWatch log groups.
list_cloudwatch_log_group_fieldsList the fields you can query in a log group.
query_cloudwatch_logsRun CloudWatch Logs Insights queries.

AWS X-Ray

Use these tools to search and read AWS X-Ray traces.

ToolDescription
search_xray_tracesFind traces that match a filter expression.
get_xray_traceRead a trace as a tree of segments.

Azure Monitor

Use these tools to query Azure Monitor data.

ToolDescription
query_azure_log_analyticsRun KQL against Log Analytics.
query_azure_resource_graphQuery Azure Resource Graph.

Elasticsearch

Use this tool to search Elasticsearch data sources.

ToolDescription
query_elasticsearchExecute Lucene or Query DSL searches against Elasticsearch data sources.

InfluxDB

Use this tool to query InfluxDB data sources.

ToolDescriptionAccess
query_influxdbExecute InfluxQL or Flux queries against InfluxDB data sources.Query

Alerting

Use these tools to view and manage alert rules, silences, and routing configuration.

ToolDescriptionAccess
alerting_manage_routingView alerting routing configuration, notification policies, contact points, and time intervals.Read
alerting_rules_readRead alert rules.Read
alerting_rules_writeCreate and change alert rules.Write
alerting_silences_readRead silences.Read
alerting_silences_writeCreate and change silences.Write
alerting_routing_writeChange notification routing.Write

Annotations

Use these tools to view and create annotations on dashboards.

ToolDescriptionAccess
get_annotationsFetch annotations filtered by dashboard UID, time range, or tags.Read
get_annotation_tagsGet annotation tags with optional filtering.Read
create_annotationCreate a new annotation on a dashboard or panel.Write
update_annotationUpdate properties of an existing annotation.Write

Incidents

Use these tools to view and manage incidents.

ToolDescriptionAccess
list_incidentsList incidents with optional status filtering.Read
get_incidentGet full incident details by ID.Read
create_incidentCreate a new incident.Write
add_activity_to_incidentAdd a note to an incident’s timeline.Write

OnCall

Use these tools to view on-call schedules, shifts, teams, and alert groups.

ToolDescription
list_oncall_schedulesList OnCall schedules with optional team filtering.
get_oncall_shiftGet detailed shift information.
get_current_oncall_usersGet users currently on-call for a schedule.
list_oncall_teamsList OnCall teams.
list_oncall_usersList OnCall users with optional filtering.
list_alert_groupsList alert groups with filtering by state, team, time range, and labels.
get_alert_groupGet a specific alert group by ID.

Use these tools to search indexed context and work with Grafana Assistant.

ToolDescriptionAccess
assistant_searchSearch indexed infrastructure, dashboards, incidents, alert rules, and past investigations.Read
search_contextFind business definitions and dashboard query context.Read
search_sql_tablesDiscover indexed SQL tables.Read
read_grafanafs_fileRead a Knowledge Base file.Read
get_assistant_conversationRead an existing Assistant conversation.Read
ask_assistantSend a prompt to Grafana Assistant and get the full reply, including tool use and reasoning.Write

assistant_search replaces the older describe_infrastructure tool on the hosted server. search_context, search_sql_tables, and read_grafanafs_file don’t run SQL. search_context requires Analyst mode to be available on your stack. ask_assistant requires write access because Assistant can perform actions that change resources.

Use Assistant investigations

Use these tools to list, create, and inspect Grafana Assistant Investigations.

ToolDescriptionAccess
list_investigationsList Assistant investigations with optional filtering and pagination.Read
list_investigation_profilesList available Assistant investigation profiles.Read
get_investigationGet investigation details, lifecycle state, metadata, and report snapshot.Read
list_investigation_evidenceList evidence collected for an Assistant investigation.Read
get_investigation_threadGet the message thread for an Assistant investigation.Read
create_investigationStart a new Assistant investigation from an external AI agent.Write
wait_for_investigationWait for an investigation to finish.Read
get_investigation_reportRead an investigation’s Markdown report.Read

Read access to investigations is subject to your investigation permissions.

Other tools

Use these tools for additional Grafana tasks, including assertion summaries, panel rendering, and query examples.

ToolDescriptionAccess
get_assertionsGet assertion summary for an entity.Read
get_panel_imageRender a dashboard panel as a PNG image.Read
get_query_examplesGet example queries for data source types.Read

Attach data sources and incidents as resources

The server exposes each data source you can access as an MCP resource at grafana://datasources/<UID>, and each active IRM incident at grafana://irm/incidents/<ID>, so you can tell your agent what to work on instead of having it search.

In clients that offer a resource picker, for example, Claude Code, type @ and choose a data source or incident to attach its details to your prompt. Each data source entry shows the data source name and type, and marks your default data source. Each incident entry shows the incident title and severity. Other clients might instead let your agent list and read resources itself.

A data source resource contains the same details that get_datasource returns, including the type, URL, and settings. An incident resource contains the same details that get_incident returns, including the status, severity, labels, and custom fields. The picker lists active incidents, excluding drills, that started in the last 30 days, but your agent can read any incident by its URI, including resolved ones.

Resources follow the same access as the matching tool: if your connection can’t use get_datasource or get_incident, it doesn’t list or read that kind of resource.

Use interactive charts and alert apps

In clients that support MCP Apps, ask your agent to use render_grafana_app to show a query result in an interactive Grafana App. It draws Prometheus queries as time series, heatmaps, bars, stats, or tables, shows Tempo traces, and charts queries on other data sources with Grafana visualizations.

render_grafana_app requires query or write access, because it can run any data source query. With read access, your agent can still run query_prometheus, but the results appear only as text.

Ask your agent to use render_alert_status to inspect a Grafana-managed alert rule’s status, instances, and history. With write access and the required Grafana permissions, you can silence the rule from the app, and remove its silence with Unsilence.

Use render_alert_creation to open a Prometheus alert draft. Review the expression, threshold, folder, and notification settings before you create the rule. Opening the draft doesn’t save an alert. Simulating or creating the rule requires write access and the corresponding Grafana permissions.

Run hosted gcx commands

When no dedicated tool covers your task, use run_gcx_command to run the Grafana Cloud CLI against your connected stack. You don’t need to install gcx or log in separately. Hosted commands use your connection’s permissions.

This tool was previously named exec_gcx. Calls to the old name still work, but if your client allows or blocks tools by name, update those rules to run_gcx_command.

Ask your agent to discover commands before running them. For example, pass these arguments to run_gcx_command to list command areas:

JSON
{
  "args": ["help-tree", "--depth", "1", "-o", "text"]
}

Pass arguments without the gcx program name. Hosted gcx covers additional workflows, for example, SLO, IRM, Fleet Management, and Knowledge Graph. Prefer a dedicated MCP tool when one covers your task.

Hosted gcx runs in a sandbox. It can’t read your local files or run local setup commands. Commands that require separate Grafana Cloud credentials, for example, k6 and Synthetic Monitoring, aren’t supported through run_gcx_command. Data source queries through gcx require query or write access, and resource changes require write access. If run_gcx_command isn’t listed, it isn’t available for your connection.

Like the gcx CLI, hosted gcx sends Grafana Labs usage statistics for each command, for example, the command path and flag names, never flag values or arguments. All hosted commands report the same device ID, so the statistics don’t carry an identifier for your stack.

Send feedback about Grafana Cloud MCP

Your agent can tell Grafana Labs when a tool is missing, broken, or confusing by calling send_feedback. Every connection can use it, whatever its access and tool areas.

The agent describes what it was trying to do and what went wrong, picks a kind and an impact, and can name the tool the feedback is about. Feedback is stored with your stack and user account, so ask your agent to leave out credentials, personal data, and query results.

Next steps