simple-loki-mcp
v0.0.9MCP server for querying Loki logs via logcli
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
query_loki
| Parameter | Type | Description |
|---|---|---|
query * | string | Loki query string |
batch | number | Batch size for query results |
forward | boolean | Display results in chronological order |
from | string | Start timestamp in UTC (e.g. '2023-01-01T12:00:00Z'). Relative time expressions like '1h ago' are not supported. Use ISO 8601 format. |
limit | number | Maximum number of logs to return. Maximum value is 1000 |
output | string | Output format - valid values are 'default' (formatted log lines), 'raw' (unprocessed log lines), or 'jsonl' (JSON Lines format). Note: values like 'text' or 'json' are not supported. |
quiet | boolean | Suppress query metadata |
to | string | End timestamp in UTC (e.g. '2023-01-01T13:00:00Z'). Relative time expressions like 'now' are not supported. Use ISO 8601 format. |
get_label_values
| Parameter | Type | Description |
|---|---|---|
label * | string | Label name to get values for |