Grafana MCP server
Features
- Search for dashboards
- Get dashboard by UID
- List and fetch datasource information
- Query datasources
- Query Prometheus metadata
- Query Loki metadata
- Search, create, update and close incidents
- Start Sift investigations and view the results
- Alerting
- Access Grafana OnCall functionality
--disable-<category>
flag when starting the server. For example, to disable
the OnCall tools, use --disable-oncall
.Tools
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
Usage
- Create a service account in Grafana with enough permissions to use the tools you want to use, generate a service account token, and copy it to the clipboard for use in the configuration file. Follow the [Grafana documentation][service-account] for details.
- Download the latest release of
mcp-grafana
from the releases page and place it in your$PATH
.If you have a Go toolchain installed you can also build and install it from source, using theGOBIN
environment variable to specify the directory where the binary should be installed. This should also be in yourPATH
.
- Add the server configuration to your client configuration file. For example, for Claude Desktop:
Note: if you seeError: spawn mcp-grafana ENOENT
in Claude Desktop, you need to specify the full path tomcp-grafana
.
Debug Mode
-debug
flag to the command. This will provide detailed logging of HTTP requests and responses between the MCP server and the Grafana API, which can be helpful for troubleshooting.Development
Testing
- Unit Tests (no external dependencies required):
- Integration Tests (requires docker containers to be up and running):
- Cloud Tests (requires cloud Grafana instance and credentials):
Note: Cloud tests are automatically configured in CI. For local development, you'll need to set up your own Grafana Cloud instance and credentials.
Linting
jsonschema
struct tags. The commas in description
fields must be escaped with \\,
to prevent silent truncation. You can run just this linter with:License
Grafana MCP server
Features
- Search for dashboards
- Get dashboard by UID
- List and fetch datasource information
- Query datasources
- Query Prometheus metadata
- Query Loki metadata
- Search, create, update and close incidents
- Start Sift investigations and view the results
- Alerting
- Access Grafana OnCall functionality
--disable-<category>
flag when starting the server. For example, to disable
the OnCall tools, use --disable-oncall
.Tools
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
Usage
- Create a service account in Grafana with enough permissions to use the tools you want to use, generate a service account token, and copy it to the clipboard for use in the configuration file. Follow the [Grafana documentation][service-account] for details.
- Download the latest release of
mcp-grafana
from the releases page and place it in your$PATH
.If you have a Go toolchain installed you can also build and install it from source, using theGOBIN
environment variable to specify the directory where the binary should be installed. This should also be in yourPATH
.
- Add the server configuration to your client configuration file. For example, for Claude Desktop:
Note: if you seeError: spawn mcp-grafana ENOENT
in Claude Desktop, you need to specify the full path tomcp-grafana
.
Debug Mode
-debug
flag to the command. This will provide detailed logging of HTTP requests and responses between the MCP server and the Grafana API, which can be helpful for troubleshooting.Development
Testing
- Unit Tests (no external dependencies required):
- Integration Tests (requires docker containers to be up and running):
- Cloud Tests (requires cloud Grafana instance and credentials):
Note: Cloud tests are automatically configured in CI. For local development, you'll need to set up your own Grafana Cloud instance and credentials.
Linting
jsonschema
struct tags. The commas in description
fields must be escaped with \\,
to prevent silent truncation. You can run just this linter with: