Skip to content
MCP server

Loki MCP Server

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

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
0.1.0
Listing updated
5 days ago

About Loki MCP Server

Loki MCP Server is an open-source MCP server. It runs locally on your machine and is started by your AI client.

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

Install

Run in a terminal

claude mcp add loki-mcp-server -- docker run -i --rm ghcr.io/igorolv/loki-mcp-server:0.1.0

Add to claude_desktop_config.json

{
  "mcpServers": {
    "loki-mcp-server": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/igorolv/loki-mcp-server:0.1.0"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "loki-mcp-server": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/igorolv/loki-mcp-server:0.1.0"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

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

Add to ~/.codeium/windsurf/mcp_config.json

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

Add to your client's MCP settings (most use this shape)

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

Using several servers? Build one config file with the MCP config generator.

Pricing

Open source

Loki MCP Server FAQ

Is Loki MCP Server free?

Yes. Loki MCP Server is open source, so you can use and self-host it for free.

How do I add Loki MCP Server to Claude Code?

Run this command in your terminal: claude mcp add loki-mcp-server -- docker run -i --rm ghcr.io/igorolv/loki-mcp-server:0.1.0

Where this comes from

  • Description: from the official MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers