Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOKI_URL | No | The URL of your Loki instance | |
| LOG_LEVEL | No | Logging level for the server | INFO |
| LOKI_PASSWORD | No | Password for Loki basic authentication | |
| LOKI_USERNAME | No | Username for Loki basic authentication | |
| LOKI_AUTH_TYPE | No | Authentication type for Loki (none, basic, or bearer) | none |
| PROMETHEUS_URL | No | The URL of your Prometheus instance | |
| MCP_OIDC_ISSUER | No | OIDC issuer URL for MCP server authentication | |
| MCP_AUTH_ENABLED | No | Enable OIDC authentication for the MCP server | false |
| LOKI_BEARER_TOKEN | No | Bearer token for Loki authentication | |
| MCP_OIDC_AUDIENCE | No | OIDC audience for MCP server authentication | |
| DEFAULT_TIME_RANGE | No | Default time range for queries | 1h |
| MCP_OIDC_CLIENT_ID | No | OIDC client ID for MCP server authentication | |
| PROMETHEUS_PASSWORD | No | Password for Prometheus basic authentication | |
| PROMETHEUS_USERNAME | No | Username for Prometheus basic authentication | |
| PROMETHEUS_AUTH_TYPE | No | Authentication type for Prometheus (none, basic, or bearer) | none |
| PROMETHEUS_BEARER_TOKEN | No | Bearer token for Prometheus authentication |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| query_prometheus | Execute raw PromQL instant query against Prometheus. Returns metric values at a specific point in time. |
| query_prometheus_range | Execute PromQL query over a time range. Returns time series data. Use this for getting metrics over time. |
| list_metrics | List all available metrics in Prometheus. Useful for discovering what metrics are being collected. |
| list_label_values | Get all values for a specific label. Common labels: 'service', 'job', 'namespace', 'instance'. Use this to discover what services/namespaces are monitored. |
| list_labels | Get all label names available in Prometheus. Use this to discover what labels you can filter by. |
| query_loki | Execute raw LogQL query against Loki. Use this to search and filter logs. |
| search_logs | Search logs with simple filters. Easier than writing raw LogQL queries. |
| list_log_labels | List all log stream labels in Loki. Use this to discover what labels are available for filtering. |
| list_log_label_values | Get all values for a specific log label. Common labels: 'namespace', 'job', 'app'. Use this to discover what namespaces/services have logs. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |