Grafana MCP Server
for AI Agents
Connect your AI agent to StackOne's Grafana MCP server and give it 89 MCP tools out of the box. Auth, tool execution, and security all managed.
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, observability, and agent execution runtime. Connect it from MCP clients like Claude Desktop, Claude Code, Cursor, Goose, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.
All Grafana MCP Tools
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.
Agent Frameworks
{
"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>"
]
}
}
}Platform Resources
MCP Code Mode: Keeping Tool Responses Out of Agent Context
Anthropic's code_execution processes data already in context. Custom MCP code mode keeps raw tool responses in a sandbox. 14K tokens vs 500.
11 min
Comparing BM25, TF-IDF, and Hybrid Search for MCP Tool Discovery
Benchmarking BM25, TF-IDF, and hybrid search for MCP tool discovery across 916 tools. The 80/20 TF-IDF/BM25 hybrid hits 21% Top-1 accuracy in under 1ms.
10 min
Indirect Prompt Injection Defense for MCP Tools: A Technical Guide
MCP tools that read emails, CRM records, and tickets are indirect prompt injection vectors. Here's how we built a two-tier defense that scans tool results in ~11ms.
12 min
MCP vs A2A: Architecture, Security, and When to Use Each
MCP vs A2A: what each protocol standardizes, how they differ, their shared security risks including indirect prompt injection, and when to use one, both, or a hybrid architecture.
12 min
MCP vs API: What 200+ Connector Builds Taught Us
MCP wraps APIs, it doesn't replace them. After building 200+ connectors that serve both, here's when each approach wins.
14 min read
Grafana MCP Server FAQ
Does StackOne have a Grafana MCP server?
Grafana MCP server vs direct API integration — what's the difference?
How does Grafana authentication work for AI agents?
origin_owner_id.Are Grafana MCP tools vulnerable to prompt injection?
What is the context bloat of a Grafana agent and how do I avoid it?
Can I limit which actions my Grafana agent can access?
Can I create custom agent actions for my Grafana MCP server?
When should I NOT use a Grafana MCP server?
What AI frameworks and AI clients does the StackOne Grafana MCP server support?
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.