prometheus mcp for VS Code
io.github.mshegolev/prometheus-mcp
Prometheus MCP — query metrics, inspect alerts, and explore scrape targets (read-only).
client:VS Code
transport:stdio
runtime:pypi
Install prometheus mcp in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "prometheus-url",
"description": "PROMETHEUS_URL",
"password": true
},
{
"type": "promptString",
"id": "prometheus-token",
"description": "PROMETHEUS_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "prometheus-username",
"description": "PROMETHEUS_USERNAME",
"password": true
},
{
"type": "promptString",
"id": "prometheus-password",
"description": "PROMETHEUS_PASSWORD",
"password": true
},
{
"type": "promptString",
"id": "prometheus-ssl-verify",
"description": "PROMETHEUS_SSL_VERIFY",
"password": true
}
],
"servers": {
"prometheus-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"prometheus-mcp"
],
"env": {
"PROMETHEUS_URL": "${input:prometheus-url}",
"PROMETHEUS_TOKEN": "${input:prometheus-token}",
"PROMETHEUS_USERNAME": "${input:prometheus-username}",
"PROMETHEUS_PASSWORD": "${input:prometheus-password}",
"PROMETHEUS_SSL_VERIFY": "${input:prometheus-ssl-verify}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs