Back to MCP Servers

Grafana Loki

An MCP server that allows querying Loki logs through the Grafana API.

monitoringapi
By tumf

Installation

npx -y grafana-loki-mcp

Configuration

{
  "mcpServers": {
    "grafana-loki-mcp": {
      "command": "npx",
      "args": ["-y", "grafana-loki-mcp"]
    }
  }
}

How to use

  1. Run the installation command above (if needed)
  2. Open your Claude Code settings file (~/.claude/settings.json)
  3. Add the configuration to the mcpServers section
  4. Restart Claude Code to apply changes
View source on GitHub