Skip to content
VS Code

Loki MCP Server for VS Code

io.github.igorolv/loki-mcp-server

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

client:VS Code transport:stdio runtime:oci

Install Loki MCP Server in VS Code

.vscode/mcp.json

{
  "servers": {
    "loki-mcp-server": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/igorolv/loki-mcp-server:0.1.0"
      ]
    }
  }
}

Requires agent mode. MCP: Open User Configuration puts the same block in every workspace. VS Code docs

Loki MCP Server in other clients