Grafana MCP server
by Grafana
The Grafana MCP server provides access to your Grafana instance and the surrounding ecosystem via the Model Context Protocol. It allows clients to interact with Grafana features like dashboards, datasources, alerting, and OnCall functionality.
Last updated: N/A
What is Grafana MCP server?
The Grafana MCP server is an implementation of the Model Context Protocol (MCP) that enables external applications to interact with a Grafana instance. It acts as a bridge, allowing clients to query and manage Grafana resources.
How to use Grafana MCP server?
To use the Grafana MCP server, you need to create a service account in Grafana with the necessary permissions, download the latest release of the server, configure your MCP client (e.g., Claude Desktop) with the server's address and API key, and then use the client to interact with Grafana through the available tools.
Key features of Grafana MCP server
Search for dashboards
Get dashboard by UID
List and fetch datasource information
Query Prometheus and Loki datasources
Query Prometheus and Loki metadata
Search, create, update and close incidents
List and fetch alert rule information
Get alert rule statuses
List contact points
Access Grafana OnCall functionality
Use cases of Grafana MCP server
Integrating Grafana data into AI assistants and chatbots
Automating Grafana tasks through external scripts
Building custom Grafana dashboards and visualizations
Extending Grafana's functionality with custom tools
FAQ from Grafana MCP server
What is MCP?
What is MCP?
MCP stands for Model Context Protocol, a standard for enabling communication between applications and data sources.
What permissions does the service account need?
What permissions does the service account need?
The service account requires permissions to access the Grafana resources you want to interact with, such as dashboards, datasources, and alerts.
How do I disable certain tools?
How do I disable certain tools?
Use the --disable-<category>
flag when starting the server. For example, to disable OnCall tools, use --disable-oncall
.
What if I see Error: spawn mcp-grafana ENOENT
?
What if I see Error: spawn mcp-grafana ENOENT
?
This error indicates that the system cannot find the mcp-grafana
executable. You need to specify the full path to mcp-grafana
in your client configuration.
How do I contribute to the project?
How do I contribute to the project?
Contributions are welcome! Please open an issue or submit a pull request if you have any suggestions or improvements.