Skip to content

Commit 85209e4

Browse files
committed
feat: add Grafana MCP server definition
Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
1 parent 70d4335 commit 85209e4

1 file changed

Lines changed: 82 additions & 0 deletions

File tree

servers/com.grafana-mcp.json

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"$schema": "../schemas/server-definition.schema.json",
3+
"id": "com.grafana-mcp",
4+
"name": "Grafana",
5+
"alias": "grafana",
6+
"description": "Search dashboards, query Prometheus and Loki datasources, manage alerts, and investigate incidents through the official Grafana MCP server.",
7+
"icon": "https://avatars.githubusercontent.com/u/7195757?v=4",
8+
"schema_version": "2.1",
9+
"categories": ["monitoring", "developer-tools"],
10+
"tags": ["grafana", "monitoring", "dashboards", "prometheus", "loki", "alerts", "observability", "metrics"],
11+
12+
"transport": {
13+
"type": "stdio",
14+
"command": "docker",
15+
"args": [
16+
"run", "-i", "--rm",
17+
"-e", "GRAFANA_URL",
18+
"-e", "GRAFANA_SERVICE_ACCOUNT_TOKEN",
19+
"grafana/mcp-grafana",
20+
"-t", "stdio"
21+
],
22+
"env": {
23+
"GRAFANA_URL": "${input:GRAFANA_URL}",
24+
"GRAFANA_SERVICE_ACCOUNT_TOKEN": "${input:GRAFANA_TOKEN}"
25+
},
26+
"metadata": {
27+
"inputs": [
28+
{
29+
"id": "GRAFANA_URL",
30+
"label": "Grafana URL",
31+
"description": "URL of your Grafana instance. Include the protocol (http:// or https://).",
32+
"type": "url",
33+
"required": true,
34+
"secret": false,
35+
"placeholder": "http://localhost:3000"
36+
},
37+
{
38+
"id": "GRAFANA_TOKEN",
39+
"label": "Grafana Service Account Token",
40+
"description": "Service account token with appropriate permissions. Create a service account with the Editor role for full read/write access.",
41+
"type": "password",
42+
"required": true,
43+
"secret": true,
44+
"placeholder": "glsa_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
45+
"obtain": {
46+
"url": "https://grafana.com/docs/grafana/latest/administration/service-accounts/",
47+
"instructions": "1. Go to your Grafana instance\n2. Navigate to Administration > Service accounts\n3. Click 'Add service account'\n4. Assign the 'Editor' role\n5. Click 'Add service account token'\n6. Copy the generated token (starts with glsa_)",
48+
"button_label": "Learn More"
49+
}
50+
}
51+
]
52+
}
53+
},
54+
55+
"auth": {
56+
"type": "api_key",
57+
"instructions": "Create a service account token in your Grafana instance under Administration > Service accounts"
58+
},
59+
60+
"contributor": {
61+
"name": "Grafana Labs",
62+
"github": "grafana",
63+
"url": "https://grafana.com"
64+
},
65+
66+
"links": {
67+
"repository": "https://github.com/grafana/mcp-grafana",
68+
"homepage": "https://grafana.com",
69+
"documentation": "https://github.com/grafana/mcp-grafana#readme"
70+
},
71+
72+
"platforms": ["all"],
73+
74+
"capabilities": {
75+
"tools": true,
76+
"resources": false,
77+
"prompts": false,
78+
"read_only_mode": false
79+
},
80+
81+
"changelog_url": "https://github.com/grafana/mcp-grafana/releases"
82+
}

0 commit comments

Comments
 (0)