MCP Server
MCP
Prometheus MCP Server
MCP server providing Prometheus metrics access and PromQL query execution for AI assistants
Install
oci:ghcr.io/pab1it0/prometheus-mcp-server:1.6.2
Configuration Example
{
"remotes": [],
"packages": [
{
"registryType": "oci",
"identifier": "ghcr.io/pab1it0/prometheus-mcp-server:1.6.2",
"transport": {
"type": "stdio"
},
"environmentVariables": [
{
"description": "Prometheus server URL (e.g., http://localhost:9090)",
"isRequired": true,
"format": "string",
"name": "PROMETHEUS_URL"
},
{
"description": "Set to False to disable SSL verification",
"format": "boolean",
"name": "PROMETHEUS_URL_SSL_VERIFY"
},
{
"description": "Set to True to disable Prometheus UI links in query results (saves context tokens in MCP clients)",
"format": "boolean",
"name": "PROMETHEUS_DISABLE_LINKS"
},
{
"description": "Username for Prometheus basic authentication",
"format": "string",
"name": "PROMETHEUS_USERNAME"
},
{
"description": "Password for Prometheus basic authentication",
"format": "string",
"isSecret": true,
"name": "PROMETHEUS_PASSWORD"
},
{
"description": "Bearer token for Prometheus authentication",
"format": "string",
"isSecret": true,
"name": "PROMETHEUS_TOKEN"
},
{
"description": "Organization ID for multi-tenant Prometheus setups",
"format": "string",
"name": "ORG_ID"
},
{
"description": "Path to client certificate file for mutual TLS authentication",
"format": "string",
"name": "PROMETHEUS_CLIENT_CERT"
},
{
"description": "Path to client private key file for mutual TLS authentication",
"format": "string",
"name": "PROMETHEUS_CLIENT_KEY"
},
{
"description": "MCP server transport type (stdio, http, or sse)",
"format": "string",
"name": "PROMETHEUS_MCP_SERVER_TRANSPORT"
},
{
"description": "Host address for HTTP/SSE transport (default: 127.0.0.1)",
"format": "string",
"name": "PROMETHEUS_MCP_BIND_HOST"
},
{
"description": "Port number for HTTP/SSE transport (default: 8080)",
"format": "number",
"name": "PROMETHEUS_MCP_BIND_PORT"
},
{
"description": "Enable stateless HTTP mode for multi-replica support (default: false)",
"format": "string",
"name": "PROMETHEUS_MCP_STATELESS_HTTP"
},
{
"description": "Custom headers as JSON string to include in Prometheus requests",
"format": "string",
"name": "PROMETHEUS_CUSTOM_HEADERS"
}
]
}
]
}
mcp
model-context-protocol
oci
By
Comments
Sign in to leave a comment