Menu
Documentation
Grafana documentation
Developer resources
Grafana MCP server
Troubleshooting
Grafana version
Enterprise
Open source
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
Additional helpful documentation, links, and articles:
Video

Getting started with managing your metrics, logs, and traces using Grafana
In this webinar, we’ll demo how to get started using the LGTM Stack: Loki for logs, Grafana for visualization, Tempo for traces, and Mimir for metrics.
Video

Getting started with Grafana dashboard design
In this webinar, you'll learn how to design stylish and easily accessible Grafana dashboards that tell a story.
Video

Building advanced Grafana dashboards
In this webinar, we’ll demo how to build and format Grafana dashboards.
Choose a product
Viewing: v13.0 (latest)
Find another version
Scroll for more