Skip to content

Commit d896e80

Browse files
committed
Add Prometheus MCP server
Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com> Claude-Session: https://claude.ai/code/session_01S58U7phvDgphx6ZTXuWMJQ
1 parent 14015a9 commit d896e80

1 file changed

Lines changed: 122 additions & 0 deletions

File tree

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
{
2+
"$schema": "../schemas/server-definition.schema.json",
3+
"id": "pab1it0.prometheus-mcp-docker",
4+
"name": "Prometheus (Docker)",
5+
"alias": "prometheus",
6+
"description": "Query Prometheus metrics and monitoring data via Docker. Run instant and range PromQL queries, discover metrics, inspect metadata, and check scrape targets through a standardized MCP interface.",
7+
"logo": "https://avatars.githubusercontent.com/u/11724759?v=4",
8+
"schema_version": "2.1",
9+
"categories": [
10+
"monitoring"
11+
],
12+
"tags": [
13+
"prometheus",
14+
"monitoring",
15+
"metrics",
16+
"observability",
17+
"promql",
18+
"docker"
19+
],
20+
"transport": {
21+
"type": "stdio",
22+
"command": "docker",
23+
"args": [
24+
"run",
25+
"-i",
26+
"--rm",
27+
"-e",
28+
"PROMETHEUS_URL",
29+
"-e",
30+
"PROMETHEUS_USERNAME",
31+
"-e",
32+
"PROMETHEUS_PASSWORD",
33+
"-e",
34+
"PROMETHEUS_TOKEN",
35+
"-e",
36+
"ORG_ID",
37+
"ghcr.io/pab1it0/prometheus-mcp-server:latest"
38+
],
39+
"env": {
40+
"PROMETHEUS_URL": "${input:PROMETHEUS_URL}",
41+
"PROMETHEUS_USERNAME": "${input:PROMETHEUS_USERNAME}",
42+
"PROMETHEUS_PASSWORD": "${input:PROMETHEUS_PASSWORD}",
43+
"PROMETHEUS_TOKEN": "${input:PROMETHEUS_TOKEN}",
44+
"ORG_ID": "${input:ORG_ID}"
45+
},
46+
"metadata": {
47+
"inputs": [
48+
{
49+
"id": "PROMETHEUS_URL",
50+
"label": "Prometheus URL",
51+
"description": "Base URL of your Prometheus server. Use host.docker.internal instead of localhost to reach a Prometheus running on your host machine.",
52+
"type": "url",
53+
"required": true,
54+
"placeholder": "https://your-prometheus:9090",
55+
"obtain": {
56+
"url": "https://prometheus.io/docs/prometheus/latest/getting_started/",
57+
"instructions": "1. Use the address where your Prometheus server is reachable\n2. For a local Prometheus, use http://host.docker.internal:9090\n3. Include the scheme and port (default 9090)",
58+
"button_label": "Prometheus Docs"
59+
}
60+
},
61+
{
62+
"id": "PROMETHEUS_USERNAME",
63+
"label": "Username (Basic Auth)",
64+
"description": "Username for HTTP Basic authentication. Optional — only set this if your Prometheus is protected with basic auth. Leave blank when using a bearer token instead.",
65+
"type": "text",
66+
"required": false,
67+
"placeholder": "admin"
68+
},
69+
{
70+
"id": "PROMETHEUS_PASSWORD",
71+
"label": "Password (Basic Auth)",
72+
"description": "Password for HTTP Basic authentication. Required when a username is provided. Leave blank when using a bearer token instead.",
73+
"type": "text",
74+
"required": false,
75+
"secret": true,
76+
"placeholder": "********************"
77+
},
78+
{
79+
"id": "PROMETHEUS_TOKEN",
80+
"label": "Bearer Token",
81+
"description": "Bearer token for token-based authentication (e.g. Grafana Cloud, Cortex, Thanos). Optional — use this instead of username/password.",
82+
"type": "text",
83+
"required": false,
84+
"secret": true,
85+
"placeholder": "********************"
86+
},
87+
{
88+
"id": "ORG_ID",
89+
"label": "Organization ID",
90+
"description": "Organization / tenant ID for multi-tenant Prometheus setups (e.g. Cortex, Mimir, Thanos). Optional — sent as the X-Scope-OrgID header when set.",
91+
"type": "text",
92+
"required": false,
93+
"placeholder": "tenant-1"
94+
}
95+
]
96+
}
97+
},
98+
"auth": {
99+
"type": "optional_api_key",
100+
"instructions": "Works without credentials against an unauthenticated Prometheus. For protected servers, supply either a username + password (Basic auth) or a bearer token. Set ORG_ID for multi-tenant backends."
101+
},
102+
"contributor": {
103+
"name": "pab1it0",
104+
"github": "pab1it0",
105+
"url": "https://github.com/pab1it0/prometheus-mcp-server"
106+
},
107+
"links": {
108+
"repository": "https://github.com/pab1it0/prometheus-mcp-server",
109+
"homepage": "https://github.com/pab1it0/prometheus-mcp-server",
110+
"documentation": "https://github.com/pab1it0/prometheus-mcp-server#readme"
111+
},
112+
"platforms": [
113+
"all"
114+
],
115+
"capabilities": {
116+
"tools": true,
117+
"resources": false,
118+
"prompts": false,
119+
"read_only_mode": true
120+
},
121+
"changelog_url": "https://github.com/pab1it0/prometheus-mcp-server/releases"
122+
}

0 commit comments

Comments
 (0)