Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/grafana/v13.0/developer-resources/mcp/troubleshooting/grafana-version-compatibility.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana/v13.0/developer-resources/mcp/troubleshooting/grafana-version-compatibility/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
Grafana version compatibility
Some datasource API paths exist only in newer Grafana releases. This article explains a common error on Grafana before 9.0.
What you’ll achieve
You can confirm whether an upgrade fixes datasource-related MCP errors.
Before you begin
- Access to upgrade or validate the Grafana version for your stack.
Recognize the error
If you see an error like this when using datasource-related tools:
get datasource by uid : [GET /datasources/uid/{uid}][400] getDataSourceByUidBadRequest {"message":"id is invalid"}you are likely on Grafana before 9.0. The /datasources/uid/{uid} API was added in Grafana 9.0; datasource operations that rely on it fail on older versions.
Resolve the issue
Upgrade Grafana to 9.0 or later. The MCP server requires Grafana 9.0 or later for full functionality.
Next steps
Was this page helpful?
Related resources from Grafana Labs


