Prometheus MCP Server for VS Code
io.github.pab1it0/prometheus-mcp-server
MCP server providing Prometheus metrics access and PromQL query execution for AI assistants
client:VS Code
transport:stdio
runtime:oci
Install Prometheus MCP Server in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "prometheus-url",
"description": "PROMETHEUS_URL",
"password": true
},
{
"type": "promptString",
"id": "prometheus-url-ssl-verify",
"description": "PROMETHEUS_URL_SSL_VERIFY",
"password": true
},
{
"type": "promptString",
"id": "prometheus-disable-links",
"description": "PROMETHEUS_DISABLE_LINKS",
"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-token",
"description": "PROMETHEUS_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "org-id",
"description": "ORG_ID",
"password": true
},
{
"type": "promptString",
"id": "prometheus-client-cert",
"description": "PROMETHEUS_CLIENT_CERT",
"password": true
},
{
"type": "promptString",
"id": "prometheus-client-key",
"description": "PROMETHEUS_CLIENT_KEY",
"password": true
},
{
"type": "promptString",
"id": "prometheus-mcp-server-transport",
"description": "PROMETHEUS_MCP_SERVER_TRANSPORT",
"password": true
},
{
"type": "promptString",
"id": "prometheus-mcp-bind-host",
"description": "PROMETHEUS_MCP_BIND_HOST",
"password": true
},
{
"type": "promptString",
"id": "prometheus-mcp-bind-port",
"description": "PROMETHEUS_MCP_BIND_PORT",
"password": true
},
{
"type": "promptString",
"id": "prometheus-mcp-stateless-http",
"description": "PROMETHEUS_MCP_STATELESS_HTTP",
"password": true
},
{
"type": "promptString",
"id": "prometheus-custom-headers",
"description": "PROMETHEUS_CUSTOM_HEADERS",
"password": true
}
],
"servers": {
"prometheus-mcp-server": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/pab1it0/prometheus-mcp-server:1.6.2"
],
"env": {
"PROMETHEUS_URL": "${input:prometheus-url}",
"PROMETHEUS_URL_SSL_VERIFY": "${input:prometheus-url-ssl-verify}",
"PROMETHEUS_DISABLE_LINKS": "${input:prometheus-disable-links}",
"PROMETHEUS_USERNAME": "${input:prometheus-username}",
"PROMETHEUS_PASSWORD": "${input:prometheus-password}",
"PROMETHEUS_TOKEN": "${input:prometheus-token}",
"ORG_ID": "${input:org-id}",
"PROMETHEUS_CLIENT_CERT": "${input:prometheus-client-cert}",
"PROMETHEUS_CLIENT_KEY": "${input:prometheus-client-key}",
"PROMETHEUS_MCP_SERVER_TRANSPORT": "${input:prometheus-mcp-server-transport}",
"PROMETHEUS_MCP_BIND_HOST": "${input:prometheus-mcp-bind-host}",
"PROMETHEUS_MCP_BIND_PORT": "${input:prometheus-mcp-bind-port}",
"PROMETHEUS_MCP_STATELESS_HTTP": "${input:prometheus-mcp-stateless-http}",
"PROMETHEUS_CUSTOM_HEADERS": "${input:prometheus-custom-headers}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs