-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathcom.grafana-mcp-docker.json
More file actions
115 lines (108 loc) · 4.04 KB
/
Copy pathcom.grafana-mcp-docker.json
File metadata and controls
115 lines (108 loc) · 4.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"$schema": "../schemas/server-definition.schema.json",
"id": "com.grafana-mcp-docker",
"name": "Grafana (Docker)",
"alias": "grafana",
"description": "Search dashboards, query Prometheus and Loki datasources, manage alerts, and investigate incidents on any Grafana instance (self-hosted or Grafana Cloud) via Docker.",
"icon": "https://avatars.githubusercontent.com/u/7195757?v=4",
"schema_version": "2.1",
"categories": ["monitoring", "developer-tools"],
"tags": ["grafana", "grafana-cloud", "monitoring", "dashboards", "prometheus", "loki", "alerts", "observability", "metrics", "incidents", "oncall"],
"transport": {
"type": "stdio",
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "GRAFANA_URL",
"-e", "GRAFANA_SERVICE_ACCOUNT_TOKEN",
"-e", "GRAFANA_USERNAME",
"-e", "GRAFANA_PASSWORD",
"-e", "GRAFANA_ORG_ID",
"grafana/mcp-grafana",
"-t", "stdio"
],
"env": {
"GRAFANA_URL": "${input:GRAFANA_URL}",
"GRAFANA_SERVICE_ACCOUNT_TOKEN": "${input:GRAFANA_TOKEN}",
"GRAFANA_USERNAME": "${input:GRAFANA_USERNAME}",
"GRAFANA_PASSWORD": "${input:GRAFANA_PASSWORD}",
"GRAFANA_ORG_ID": "${input:GRAFANA_ORG_ID}"
},
"metadata": {
"inputs": [
{
"id": "GRAFANA_URL",
"label": "Grafana URL",
"description": "URL of your Grafana instance. Use http://localhost:3000 for local, or https://myinstance.grafana.net for Grafana Cloud.",
"type": "url",
"required": true,
"secret": false,
"placeholder": "http://localhost:3000"
},
{
"id": "GRAFANA_TOKEN",
"label": "Grafana Service Account Token",
"description": "Service account token with appropriate permissions. Create a service account with the Editor role for full read/write access.",
"type": "text",
"required": true,
"secret": true,
"placeholder": "glsa_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"obtain": {
"url": "https://grafana.com/docs/grafana/latest/administration/service-accounts/",
"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_)",
"button_label": "Learn More"
}
},
{
"id": "GRAFANA_USERNAME",
"label": "Grafana Username",
"description": "Username for basic authentication. Use as an alternative to service account token authentication.",
"type": "text",
"required": false,
"secret": false,
"placeholder": "admin"
},
{
"id": "GRAFANA_PASSWORD",
"label": "Grafana Password",
"description": "Password for basic authentication. Used together with GRAFANA_USERNAME.",
"type": "text",
"required": false,
"secret": true
},
{
"id": "GRAFANA_ORG_ID",
"label": "Grafana Organization ID",
"description": "Organization ID for multi-org Grafana setups. Leave empty for single-org instances.",
"type": "text",
"required": false,
"secret": false,
"default": "1",
"placeholder": "1"
}
]
}
},
"auth": {
"type": "api_key",
"instructions": "Create a service account token in your Grafana instance under Administration > Service accounts"
},
"contributor": {
"name": "Grafana Labs",
"github": "grafana",
"url": "https://grafana.com"
},
"links": {
"repository": "https://github.com/grafana/mcp-grafana",
"homepage": "https://grafana.com",
"documentation": "https://github.com/grafana/mcp-grafana#readme"
},
"platforms": ["all"],
"capabilities": {
"tools": true,
"resources": false,
"prompts": false,
"read_only_mode": false
},
"changelog_url": "https://github.com/grafana/mcp-grafana/releases"
}