Gigapipe Logs MCP Server

A Go-based server implementation for the Model Context Protocol (MCP) with Grafana Loki integration.

Local serverstdioGo

What is the Gigapipe Logs MCP MCP server?

Connect Gigapipe Logs MCP to Claude, Cursor or any other MCP client and it stops being a tab you switch to. A Go-based server implementation for the Model Context Protocol (MCP) with Grafana Loki integration. The gigapipe logs mcp mcp server is what makes that connection.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • query — LogQL query string
  • url — The Loki server URL (default: from LOKI_URL environment variable or http://localhost:3100)
  • start — Start time for the query (default: 1h ago)
  • end — End time for the query (default: now)
  • limit — Maximum number of entries to return (default: 100)
  • org — Organization ID for the query (sent as X-Scope-OrgID header)
  • LOKI_URL — Default Loki server URL to use if not specified in the request
  • LOKI_ORG_ID — Default organization ID to use if not specified in the request
  • LOKI_USERNAME — Default username for basic authentication if not specified in the request
  • LOKI_PASSWORD — Default password for basic authentication if not specified in the request
  • LOKI_TOKEN — Default bearer token for authentication if not specified in the request
  • Authentication — Choose appropriate authentication if needed

Installation

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Credentials and setup notes

Configuration is passed through the environment: LOKI_URL, LOKI_ORG_ID, LOKI_USERNAME, LOKI_PASSWORD, LOKI_TOKEN. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

  • Go 1.16 or higher

Where it fits

This sits in the monitoring and observability group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Gigapipe Logs MCP's toolset — query, url, start and 11 more — is a fair guide to whether it matches your workflow. It is maintained by gigapipehq; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Gigapipe Logs MCP's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Gigapipe Logs MCP.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
queryLogQL query string
urlThe Loki server URL (default: from LOKI_URL environment variable or http://localhost:3100)
startStart time for the query (default: 1h ago)
endEnd time for the query (default: now)
limitMaximum number of entries to return (default: 100)
orgOrganization ID for the query (sent as X-Scope-OrgID header)
LOKI_URLDefault Loki server URL to use if not specified in the request
LOKI_ORG_IDDefault organization ID to use if not specified in the request
LOKI_USERNAMEDefault username for basic authentication if not specified in the request
LOKI_PASSWORDDefault password for basic authentication if not specified in the request
LOKI_TOKENDefault bearer token for authentication if not specified in the request
AuthenticationChoose appropriate authentication if needed
ServerThe main MCP server implementation in cmd/server/main.go
ClientA test client in cmd/client/main.go for interacting with the MCP server

How to install the Gigapipe Logs MCP MCP server

{
  "mcpServers": {
    "lokiserver": {
      "command": "path/to/loki-mcp-server",
      "args": [],
      "env": {
        "LOKI_URL": "http://localhost:3100",
        "LOKI_ORG_ID": "your-default-org-id",
        "LOKI_USERNAME": "your-username",
        "LOKI_PASSWORD": "your-password",
        "LOKI_TOKEN": "your-bearer-token"
      },
      "disabled": false,
      "autoApprove": ["loki_query"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Go 1.16 or higher
VariableDescriptionRequired
LOKI_URLEndpoint or connection string the server talks to.Yes
LOKI_ORG_IDConfiguration value read at startup.Optional
LOKI_USERNAMEConfiguration value read at startup.Optional
LOKI_PASSWORDConfiguration value read at startup.Optional
LOKI_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use Gigapipe Logs MCP to query.
  • Use Gigapipe Logs MCP to url.
  • Use Gigapipe Logs MCP to start.

Frequently asked questions

It connects Gigapipe Logs MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (query, url, start, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Gigapipe Logs MCP directly.