Agent♥︎Age
Catalog

Loki MCP Server

Official

by igorolv · Java

Read-only Grafana Loki for AI agents: label discovery, bounded LogQL queries, counts, exports

io.github.igorolv/loki-mcp-server (MCP)

This read-only MCP server provides Grafana Loki capabilities for AI agents, focused on label discovery, bounded LogQL queries, counts, and exports. Its purpose is to let agents query Loki in a controlled way while retrieving metadata and results related to log labels and log data.

🛠️ Key Features

  • Label discovery
  • Bounded LogQL queries
  • Counts
  • Exports
  • Read-only access

🚀 Use Cases

  • Discover available Loki log labels for agent workflows
  • Run LogQL queries with explicit bounds
  • Retrieve aggregate counts of log data
  • Export query or label results for downstream processing

⚡ Developer Benefits

  • Dedicated tools for label discovery and LogQL query execution
  • Safer query behavior via bounded LogQL queries
  • Structured outputs supporting counts and exports

⚠️ Limitations

  • Read-only operation (no write capabilities mentioned)
  • Limited to the described Loki interactions (label discovery, bounded queries, counts, exports)

Topics

ai-agentsclaude-codegrafana-lokijavallm-toolslogqllogslokimcpmcp-servermodel-context-protocolobservabilityspring-ai