Grafana

Grafana

Observability & Security
API Key

Access your Grafana instance and the surrounding observability ecosystem.

Grafana

Access your Grafana instance and the surrounding observability ecosystem. With Lunar.dev MCPX, the MCP Gateway for secure and governed tool access, you connect the Grafana MCP server to Claude, ChatGPT, Cursor, and any MCP client through one gateway that routes, authenticates, and governs every Grafana tool call against your policies.

Why MCPX

MCPX is Lunar.dev's MCP Gateway. It sits between your AI agents and your MCP servers as a single gateway for every tool call, routing, authenticating, and governing traffic against your policies. Connect Grafana once and govern it everywhere: role-based access per agent with on-behalf-of attribution, real-time visibility, and an immutable audit trail of who did what, all deployable inside your own VPC.

Tools content

  • get_dashboard_by_uid · Read-only
    Retrieves the complete dashboard, including panels, variables, and settings, for a specific dashboard identified by its UID.
  • update_dashboard · Write
    Create or update a dashboard via full JSON or targeted patch operations.
  • get_dashboard_panel_queries · Read-only
    Retrieve panel queries from a Grafana dashboard, supporting all datasource types and row-nested panels.
  • get_dashboard_property · Read-only
    Get specific parts of a dashboard using JSONPath expressions to minimize context window usage.
  • get_dashboard_summary · Read-only
    Get a compact summary of a dashboard including title, panel count, panel types, variables, and other metadata without the full JSON.
  • run_panel_query · Read-only
    Executes one or more dashboard panel queries with optional time range and variable overrides, routing to the appropriate datasource.
  • list_datasources · Read-only
    List all configured datasources in Grafana, supporting filtering by type and pagination.
  • get_datasource · Read-only
    Retrieves detailed information about a specific datasource by UID or name.
  • check_datasources_health · Read-only
    Check datasource health, filtering by type or UIDs, or checking all if both omitted.
  • create_datasource · Write
    Create a datasource using a two-call schema-review flow that returns a field schema first, then provisions the datasource.
  • update_datasource · Write
    Update non-secret datasource fields by UID, preserving omitted fields.
  • create_folder · Write
    Create a Grafana folder, providing a title and optional UID, returning the created folder.
  • search_dashboards · Read-only
    Search for Grafana dashboards by a query string, returning matching dashboards with details like title, UID, folder, tags, and URL.
  • search_folders · Read-only
    Search for Grafana folders by a query string, returning matching folders with details like title, UID, and URL.
  • list_teams · Read-only
    Search for Grafana teams by a query string, returning matching teams with details like name, ID, and URL.
  • list_users_by_org · Read-only
    List users in the Grafana organization, returning details like userid, email, and role.
  • list_all_roles · Read-only
    List all roles in Grafana, optionally filtering to only roles delegatable by the current user.
  • get_role_details · Read-only
    Get detailed information about a specific Grafana role by its UID, including permissions, metadata, and configuration.
  • get_role_assignments · Read-only
    List all assignments for a specific role, showing which users, teams, and service accounts have been assigned it.
  • list_user_roles · Read-only
    List all roles assigned to one or more users, returning a map of user IDs to their assigned roles.

See all 86 tools

Frequently asked questions

What is the Grafana MCP server?

Access your Grafana instance and the surrounding observability ecosystem. Through Lunar.dev MCPX, Grafana connects to any MCP-compatible AI client behind a single governed gateway.

How do I connect Grafana to MCPX?

Add the Grafana server in the MCPX control plane or your app.yaml, then point your AI client at your MCPX gateway. MCPX handles API Key and routes every Grafana call through the gateway.

Is the Grafana MCP server official?

Grafana is a community-maintained MCP server. MCPX lets you risk-assess and sandbox it before rolling it out to your teams.

What authentication does Grafana use with MCPX?

Grafana uses API Key. MCPX enforces authentication at the gateway with token-based auth, OAuth, and role-based profiles, so you control which agents can invoke it.

How many tools does Grafana expose in MCPX?

Grafana exposes 76 tools. In MCPX you can enable or disable each tool per agent for least-privilege access.

Server details

CategoryObservability & Security
AuthAPI Key
Connectionstdio (Docker)
Tools76 available