How to Connect Grafana Cloud Remote MCP to Gemini CLI

Add Grafana Labs's remote MCP server to Gemini CLI in about a minute.

๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPOAuth 2.1ยทhttps://mcp.grafana.com/mcp

Step-by-step

  1. Edit ~/.gemini/settings.json
    Add the mcpServers entry shown above โ€” Gemini CLI uses httpUrl for Streamable HTTP endpoints and url for legacy SSE.
  2. Authorize
    On first use your client opens a Grafana Labs OAuth consent screen โ€” approve it and tools become available.
  3. Verify
    Restart gemini, then run /mcp list inside the CLI. Verify in the browser: paste https://mcp.grafana.com/mcp into remotemcp.net/inspector and run initialize + tools/list.

Troubleshooting OAuth / 401

  • A 401 Unauthorized on first connect is normal โ€” the endpoint is OAuth-protected; let Gemini CLI finish the browser consent flow.
  • If the consent window never opens, remove and re-add the server, then retry.
  • Check the exact challenge at our OAuth debugger.
  • Run the live endpoint through the online inspector to see the raw JSON-RPC exchange.
Streamable HTTPhttps://mcp.grafana.com/mcp

Add to ~/.gemini/settings.json under mcpServers โ€” httpUrl for Streamable HTTP, url for legacy SSE:

{
  "mcpServers": {
    "grafana": {
      "httpUrl": "https://mcp.grafana.com/mcp"
    }
  }
}

Tools exposed by Grafana Cloud MCP (47)

ToolSafetyDescriptionParameters
search_dashboards
~34 tok
๐ŸŸข ReadSearch Grafana dashboards by title or tag.โ€”
get_dashboard_by_uid
~33 tok
๐ŸŸข ReadGet a dashboard's full JSON model.โ€”
get_dashboard_summary
~34 tok
๐ŸŸข ReadGet a compact summary of a dashboard.โ€”
get_dashboard_property
~38 tok
๐ŸŸข ReadExtract a specific JSONPath value from a dashboard.โ€”
update_dashboard
~33 tok
๐ŸŸ  WriteCreate or update a Grafana dashboard.โ€”
get_dashboard_panel_queries
~35 tok
๐ŸŸข ReadGet queries used by dashboard panels.โ€”
list_datasources
~30 tok
๐ŸŸข ReadList configured datasources.โ€”
get_datasource_by_uid
~31 tok
๐ŸŸข ReadGet a datasource by UID.โ€”
get_datasource_by_name
~31 tok
๐ŸŸข ReadGet a datasource by name.โ€”
query_prometheus
~31 tok
๐ŸŸข ReadQuery a Prometheus datasource.โ€”
list_prometheus_metric_names
~34 tok
๐ŸŸข ReadList Prometheus metric names.โ€”
list_prometheus_metric_metadata
~35 tok
๐ŸŸข ReadList Prometheus metric metadata.โ€”
list_prometheus_label_names
~33 tok
๐ŸŸข ReadList Prometheus label names.โ€”
list_prometheus_label_values
~35 tok
๐ŸŸข ReadList values of a Prometheus label.โ€”
query_loki_logs
~32 tok
๐ŸŸข ReadQuery logs from a Loki datasource.โ€”
list_loki_label_names
~30 tok
๐ŸŸข ReadList Loki label names.โ€”
list_loki_label_values
~32 tok
๐ŸŸข ReadList values of a Loki label.โ€”
query_loki_stats
~30 tok
๐ŸŸข ReadQuery Loki index statistics.โ€”
list_incidents
~29 tok
๐ŸŸข ReadList Grafana incidents.โ€”
create_incident
~30 tok
๐ŸŸ  WriteCreate a Grafana incident.โ€”
add_activity_to_incident
~34 tok
๐ŸŸ  WriteAdd an activity note to an incident.โ€”
resolve_incident
~30 tok
๐ŸŸ  WriteResolve a Grafana incident.โ€”
list_alert_rules
~30 tok
๐ŸŸข ReadList Grafana alert rules.โ€”
get_alert_rule_by_uid
~31 tok
๐ŸŸข ReadGet an alert rule by UID.โ€”
create_alert_rule
~31 tok
๐ŸŸ  WriteCreate a Grafana alert rule.โ€”
update_alert_rule
~31 tok
๐ŸŸ  WriteUpdate a Grafana alert rule.โ€”
delete_alert_rule
~31 tok
๐Ÿ”ด DestructiveDelete a Grafana alert rule.โ€”
list_contact_points
~31 tok
๐ŸŸข ReadList alert contact points.โ€”
create_contact_point
~32 tok
๐ŸŸ  WriteCreate an alert contact point.โ€”
list_oncall_schedules
~32 tok
๐ŸŸข ReadList Grafana OnCall schedules.โ€”
get_oncall_shift
~28 tok
๐ŸŸข ReadGet an OnCall shift.โ€”
get_current_oncall_users
~33 tok
๐ŸŸข ReadList users currently on call.โ€”
list_teams
~27 tok
๐ŸŸข ReadList Grafana teams.โ€”
list_users_by_org
~31 tok
๐ŸŸข ReadList users in the organization.โ€”
query_tempo_search
~29 tok
๐ŸŸข ReadSearch Tempo traces.โ€”
query_tempo_trace
~30 tok
๐ŸŸข ReadFetch a Tempo trace by ID.โ€”
list_pyroscope_profile_types
~34 tok
๐ŸŸข ReadList Pyroscope profile types.โ€”
list_pyroscope_label_names
~33 tok
๐ŸŸข ReadList Pyroscope label names.โ€”
list_pyroscope_label_values
~33 tok
๐ŸŸข ReadList Pyroscope label values.โ€”
fetch_pyroscope_profile
~34 tok
๐ŸŸข ReadFetch a Pyroscope flamegraph profile.โ€”
get_current_time
~32 tok
๐ŸŸข ReadGet the current Grafana server time.โ€”
search_folders
~29 tok
๐ŸŸข ReadSearch Grafana folders.โ€”
create_folder
~29 tok
๐ŸŸ  WriteCreate a Grafana folder.โ€”
list_sift_investigations
~32 tok
๐ŸŸข ReadList Sift investigations.โ€”
get_sift_investigation
~33 tok
๐ŸŸข ReadGet a Sift investigation result.โ€”
get_sift_analysis
~31 tok
๐ŸŸข ReadGet a Sift analysis finding.โ€”
get_assertions_summary
~34 tok
๐ŸŸข ReadGet service health assertions summary.โ€”

Connect Grafana Cloud MCP to another client

Other servers for Gemini CLI

GitHub's official remote MCP server hosted at api.githubcopilot.com. Gives AI agents first-party access to repositories, issues, pull requests and code search.

https://api.githubcopilot.com/mcp/
๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPOAuth 2.1๐Ÿ›ก๏ธ A+~3096 tok92 toolsOnline261ms
Notion MCPNotion Labs

Notion's official hosted MCP server. Agents can search your workspace, read and create pages, and query databases over Streamable HTTP or SSE.

https://mcp.notion.com/mcp
๐Ÿ›ก๏ธ Officialโœ“ VerifiedHTTP + SSEOAuth 2.1๐Ÿ›ก๏ธ A+~606 tok18 toolsOnline21ms
Linear MCPLinear Orbit Inc.

Linear's official remote MCP server. Agents can search, create and update issues and query your team's workflow over Streamable HTTP or SSE.

https://mcp.linear.app/mcp
๐Ÿ›ก๏ธ Officialโœ“ VerifiedHTTP + SSEOAuth 2.1๐Ÿ›ก๏ธ A+~899 tok30 toolsOnline8ms

Figma's official remote MCP server. Agents can pull design context, variables, Code Connect mappings and screenshots from your Figma files.

https://mcp.figma.com/mcp
๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPOAuth 2.1๐Ÿงฉ MCP App๐Ÿ›ก๏ธ A+~286 tok8 toolsOnline218ms
AWS KnowledgeAmazon Web Services

AWS Knowledge's hosted remote MCP server. AWS's fully-managed public knowledge MCP gives agents access to the latest AWS documentation, API references, What's New posts and architectural guidance across all AWS services. It is public and unauthenticated โ€” connect and call tools immediately.

https://knowledge-mcp.global.api.aws
๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPPublic ยท No Auth๐Ÿ›ก๏ธ A+~1896 tok5 toolsOnline155ms

Stripe's official remote MCP server at mcp.stripe.com. Agents can query customers, payment intents and subscriptions and invoke Stripe API operations with OAuth.

https://mcp.stripe.com
๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPOAuth 2.1๐Ÿ›ก๏ธ A+~1336 tok43 toolsOnline217ms