simple-loki-mcp

v0.0.9
simple-loki-mcp Checked 2 days ago Published 1 year ago

MCP 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

ParameterTypeDescription
query *stringLoki query string
batchnumberBatch size for query results
forwardbooleanDisplay results in chronological order
fromstringStart timestamp in UTC (e.g. '2023-01-01T12:00:00Z'). Relative time expressions like '1h ago' are not supported. Use ISO 8601 format.
limitnumberMaximum number of logs to return. Maximum value is 1000
outputstringOutput 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.
quietbooleanSuppress query metadata
tostringEnd 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

ParameterTypeDescription
label *stringLabel name to get values for

get_labels