MCP server for querying Loki logs via logcli
MCP server for querying Loki logs via logcli
Loki MCP Server is a Model Context Protocol (MCP) interface for querying Grafana Loki logs using logcli. The server enables AI assistants to access and analyze log data from Loki directly.
logcli is not available, the server will automatically use the Loki HTTP API instead - Access to a Loki server instanceCompare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.
logcli is not available, the server will automatically use the Loki HTTP API instead - Access to a Loki server instance| Variable | Description | Required |
|---|---|---|
| LOKI_ADDR | Configuration value read at startup. | Optional |
| LOKI_TENANT_ID | Configuration value read at startup. | Optional |
| LOKI_BEARER_TOKEN | Credential the server authenticates with. | Yes |
| LOKI_ORG_ID | Configuration value read at startup. | Optional |
| LOKI_CONFIG_PATH | Filesystem location the server is allowed to use. | Optional |
Give your coding agent the full DevTools toolbox: traces, network, console, heap snapshots and Lighthouse.
Workers, KV, R2 and D1 by conversation — Cloudflare's official remote servers for building and observability.
Dashboards, Prometheus and Loki queries, incidents and alerts — observability by conversation.
Errors with full context — stack traces, issue triage and AI-powered root-cause analysis from Sentry's server.
Connect Flutter applications with AI coding assistants via the Model Context Protocol.
Enables natural language interaction with Splunk Enterprise and Cloud for searching data and managing resources.