Skip to main content

Announcing StackOne Defender: leading open-source prompt injection guard for your agent Read More

Grafana MCP Server
for AI Agents

Production-ready Grafana MCP server with 89 extensible actions — plus built-in authentication, security, and optimized execution.

Grafana logo
Grafana MCP Server
Built by StackOne StackOne

Coverage

89 Agent Actions

Create, read, update, and delete across Grafana — and extend your agent's capabilities with custom actions.

Authentication

Agent Tool Authentication

Per-user OAuth in one call. Your Grafana MCP server gets session-scoped tokens with zero credentials stored on your infra.

Agent Auth →

Security

Agent Protection

Every Grafana tool response scanned for prompt injection in milliseconds — 88.7% accuracy, all running on CPU.

Prompt Injection Defense →

Performance

Max Agent Context. Min Cost.

Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every Grafana call.

Tools Discovery →

What is the Grafana MCP Server?

A Grafana MCP server lets AI agents read and write Grafana data through the Model Context Protocol — Anthropic's open standard for connecting LLMs to external tools. StackOne's Grafana MCP server ships with 89 pre-built actions, fully extensible via the Connector Builder — plus managed authentication, prompt injection defense, and optimized agent context. Connect it from MCP clients like Claude Desktop, Cursor, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.

All Grafana MCP Tools and Actions

Every action from Grafana's API, ready for your agent. Create, read, update, and delete — scoped to exactly what you need.

Alert Rules

  • Create Alert Rule

    Create a new alert rule

  • List Alert Rules

    Retrieve all provisioned alert rules

  • Get Alert Rule

    Retrieve a specific alert rule by its UID

  • Update Alert Rule

    Update an existing alert rule by its UID

  • Delete Alert Rule

    Delete an alert rule by its UID

Contact Points

  • Create Contact Point

    Create a new alert notification contact point

  • List Contact Points

    Retrieve all alert notification contact points

  • Update Contact Point

    Update an existing alert notification contact point by its UID

  • Delete Contact Point

    Delete an alert notification contact point by its UID

Notification Policies

  • Get Notification Policies

    Retrieve the notification policy tree

  • Update Notification Policies

    Update the notification policy tree

Mute Timings

  • Create Mute Timing

    Create a new mute timing configuration

  • List Mute Timings

    Retrieve all mute timing configurations

  • Get Mute Timing

    Retrieve a specific mute timing by its name

  • Update Mute Timing

    Update an existing mute timing configuration by its name

  • Delete Mute Timing

    Delete a mute timing by its name

Annotations

  • Create Annotation

    Create a new annotation on a dashboard or organization-wide

  • List Annotations

    Retrieve annotations filtered by time range, tags, dashboard, or user

  • Update Annotation

    Update an existing annotation by its ID

  • Delete Annotation

    Delete an annotation by its ID

Dashboards

  • Create Dashboard

    Create or update a dashboard

  • Search Dashboards

    Search for dashboards and folders by query, tags, or type

  • Get Dashboard

    Retrieve a dashboard by its UID

  • Delete Dashboard

    Delete a dashboard by its UID

Dashboard Permissions

  • Get Dashboard Permissions

    Retrieve all permissions for a dashboard

  • Update Dashboard Permissions

    Update permissions for a dashboard

Dashboard Versions

  • List Dashboard Versions

    Retrieve all versions of a dashboard

  • Get Dashboard Version

    Retrieve a specific version of a dashboard

Data Sources

  • Create Data Source

    Create a new data source in Grafana

  • List Data Sources

    Retrieve all data sources configured in the Grafana instance

  • Get Data Source

    Retrieve a specific data source by its UID

  • Update Data Source

    Update an existing data source by its UID

  • Delete Data Source

    Delete a data source by its UID

Correlations

  • Create Correlation

    Create a new correlation between two data sources

  • List Correlations

    Retrieve all correlations across data sources

  • Delete Correlation

    Delete a correlation by its UID

Folders

  • Create Folder

    Create a new folder for organizing dashboards

  • List Folders

    Retrieve all folders the authenticated user has permission to view

  • Get Folder

    Retrieve a specific folder by its UID

  • Update Folder

    Update an existing folder's title

  • Delete Folder

    Delete a folder and all its dashboards

Folder Permissions

  • Get Folder Permissions

    Retrieve all permissions for a folder

  • Update Folder Permissions

    Update permissions for a folder

Organizations

  • Get Organization

    Retrieve the current organization's details

  • Update Organization

    Update the current organization's name

Organization Users

  • Add Organization User

    Add an existing user to the current organization

  • List Organization Users

    List all users in the current organization

  • Remove Organization User

    Remove a user from the current organization

Organization Preferences

  • Get Organization Preferences

    Retrieve the current organization's preference settings

  • Update Organization Preferences

    Update the current organization's preference settings

Playlists

  • Create Playlist

    Create a new playlist

  • List Playlists

    Retrieve all playlists

  • Get Playlist

    Retrieve a specific playlist by its UID

  • Update Playlist

    Update an existing playlist by its UID

  • Delete Playlist

    Delete a playlist by its UID

Service Accounts

  • Create Service Account

    Create a new service account

  • List Service Accounts

    Retrieve all service accounts with pagination

  • Get Service Account

    Retrieve a specific service account by its ID

  • Update Service Account

    Update a service account's name or role

  • Delete Service Account

    Delete a service account by its ID

Service Account Tokens

  • Create Service Account Token

    Create a new token for a service account

  • List Service Account Tokens

    Retrieve all tokens for a service account

  • Delete Service Account Token

    Delete a specific token from a service account

Teams

  • Create Team

    Create a new team in the organization

  • List Teams

    Retrieve all teams with pagination

  • Get Team

    Retrieve a specific team by its ID

  • Update Team

    Update a team's name or email

  • Delete Team

    Delete a team by its ID

Team Members

  • Add Team Member

    Add a user to a team

  • List Team Members

    Retrieve all members of a team

  • Remove Team Member

    Remove a user from a team

Snapshots

  • Create Snapshot

    Create a new dashboard snapshot

  • List Snapshots

    Retrieve all dashboard snapshots

  • Get Snapshot

    Retrieve a dashboard snapshot by its key

  • Delete Snapshot

    Delete a dashboard snapshot by its key

Library Elements

  • Create Library Element

    Create a new reusable library element (panel)

  • List Library Elements

    Retrieve all reusable library elements (panels)

  • Get Library Element

    Retrieve a specific library element by its UID

  • Update Library Element

    Update an existing library element by its UID

  • Delete Library Element

    Delete a library element by its UID

Other (9)

  • Create Short URL

    Create a shortened URL for a Grafana path

  • List Annotation Tags

    Retrieve all tags used in annotations

  • Get Home Dashboard

    Retrieve the home dashboard for the current organization

  • List Dashboard Tags

    Retrieve all dashboard tags in the Grafana instance

  • Get Health

    Check the health status of the Grafana instance

  • Get Frontend Settings

    Retrieve Grafana frontend configuration settings

  • Update Organization User Role

    Update a user's role in the current organization

  • Star Dashboard

    Star a dashboard for the authenticated user

  • Unstar Dashboard

    Remove a star from a dashboard for the authenticated user

Set Up Your Grafana MCP Server in Minutes

One endpoint. Any framework. Your agent is talking to Grafana in under 10 lines of code.

MCP Clients

Agent Frameworks

Claude Desktop
{
  "mcpServers": {
    "stackone": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://api.stackone.com/mcp?x-account-id=<account_id>",
        "--header",
        "Authorization: Basic <YOUR_BASE64_TOKEN>"
      ]
    }
  }
}

More Data Infrastructure MCP Servers

Supabase

128+ actions

Render

81+ actions

Snowflake

80+ actions

Sentry

74+ actions

Honeycomb

68+ actions

Talend

52+ actions

Algolia

41+ actions

Grafana MCP Server FAQ

Grafana MCP server vs direct API integration — what's the difference?
A Grafana MCP server and direct API integration serve different use cases. Direct API integration is for software-to-software — backend code calling Grafana. A Grafana MCP server is for AI agents — MCP clients like Claude and Cursor, plus framework agents built with OpenAI, LangChain, or Vercel AI — discovering and calling Grafana at runtime. StackOne provides both.
How does Grafana authentication work for AI agents?
Grafana authentication for AI agents works through a StackOne Connect Session. Create one via the dashboard or the SDK — you get an auth link and ready-to-paste config for Claude Desktop, Cursor, and other MCP clients. Your user authenticates their own Grafana account; StackOne handles token exchange, storage, and refresh. Credentials never reach the LLM, and each user is isolated via origin_owner_id.
Are Grafana MCP tools vulnerable to prompt injection?
Yes — Grafana MCP tools can be vulnerable to indirect prompt injection. Any tool that reads user-written content — documents, messages, tickets, records, or free-text fields — is a potential vector. StackOne Defender scans every tool response before it enters the agent's context — regex patterns in ~1ms, then a MiniLM classifier in ~4ms. 88.7% accuracy, CPU-only.
What is the context bloat of a Grafana agent and how do I avoid it?
Context bloat happens when Grafana tool schemas and API responses eat your Grafana agent's memory, preventing it from reasoning effectively. A single Grafana query can return a massive JSON response, and connecting multiple tools compounds the problem. Tools Discovery and Code Mode reduce context bloat — loading only relevant tools per query and keeping raw responses out of the agent's context.
Can I limit which actions my Grafana agent can access?
Yes — you can limit which actions your Grafana agent can access directly from the StackOne dashboard. Toggle actions on or off, or restrict them to specific accounts, with no code changes to your agent. Session tokens can be scoped to exact actions so if one leaks, exposure stays contained.
Can I create custom agent actions for my Grafana MCP server?
Yes — you can create custom agent actions for your Grafana MCP server using Connector Builder. It's an integration agent your coding assistant (Claude Code, Cursor, or Copilot) can invoke to research Grafana's API, generate production-ready connector YAML, test against the live API, and validate before you ship.
When should I NOT use a Grafana MCP server?
Skip a Grafana MCP server if your integration is purely software-to-software — direct Grafana API integration is simpler when no AI agent is involved. For deterministic, compliance-critical operations (financial transactions, regulatory reporting), direct API gives you predictable behavior without agent-driven decision-making. MCP shines when AI agents need to dynamically discover and call Grafana actions at runtime.
What AI frameworks and AI clients does the StackOne Grafana MCP server support?
The StackOne Grafana MCP server supports both. MCP clients (paste-and-go apps): Claude Desktop, Claude Code, Cursor, VS Code, Goose. Agent frameworks (code SDKs you build with): OpenAI Agents SDK, Anthropic, Vercel AI, Google ADK, CrewAI, Pydantic AI, LangChain, LangGraph, Azure AI Foundry.

Put your AI agents to work

All the tools you need to build and scale AI agent integrations, with best-in-class connectivity, execution, and security.