# logclaw-mcp-server

Connects AI agents to LogClaw incidents, logs, and anomaly detections. Works with cloud API or self-hosted instances.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed · ★ 79
- Author: logclaw
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/logclaw/logclaw
- Updated: 2026-05-11
- HTML: https://affpapa.org/en/nevibecode/mcp/logclaw-mcp-server

## What it does

The server surfaces LogClaw incidents in agent context — a log monitoring platform with anomaly detection and AI root cause analysis. The agent sees traces, severity, blast radius, and event correlations.

LogClaw deploys in three modes: cloud SaaS (`console.logclaw.ai`), Docker Compose for a local stack without Kubernetes, and a full Helm chart for production. The server requires two environment variables: `LOGCLAW_API_KEY` (project key) and `LOGCLAW_ENDPOINT` (API address — cloud or your instance URL). Without them it starts but cannot read data.

In self-hosted mode, AI root cause analysis runs through Ollama, OpenAI, or Claude — set via `LLM_PROVIDER`. Cloud version includes RCA out of the box.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `LOGCLAW_API_KEY`, `LOGCLAW_ENDPOINT` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env LOGCLAW_API_KEY=<LOGCLAW_API_KEY> --env LOGCLAW_ENDPOINT=<LOGCLAW_ENDPOINT> --transport stdio logclaw-mcp-server -- npx -y logclaw-mcp-server
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add logclaw-mcp-server --env LOGCLAW_API_KEY=<LOGCLAW_API_KEY> --env LOGCLAW_ENDPOINT=<LOGCLAW_ENDPOINT> -- npx -y logclaw-mcp-server
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "logclaw-mcp-server": {
            "command": "npx",
            "args": [
                "-y",
                "logclaw-mcp-server"
            ],
            "env": {
                "LOGCLAW_API_KEY": "<LOGCLAW_API_KEY>",
                "LOGCLAW_ENDPOINT": "<LOGCLAW_ENDPOINT>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "logclaw-mcp-server": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "logclaw-mcp-server"
            ],
            "env": {
                "LOGCLAW_API_KEY": "<LOGCLAW_API_KEY>",
                "LOGCLAW_ENDPOINT": "<LOGCLAW_ENDPOINT>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e LOGCLAW_API_KEY=<LOGCLAW_API_KEY> -e LOGCLAW_ENDPOINT=<LOGCLAW_ENDPOINT> logclaw-mcp-server npx -y logclaw-mcp-server
```
Replace <…> with your own values

## When to use it
- read incident list with severity and timestamps
- find anomalies in logs for a time range
- get trace correlations for a specific incident
- check event blast radius across related services

## Example prompts
- Show LogClaw incidents from the last hour
- Find anomalies in `auth-service` logs since 2 PM
- Pull traces for incident `INC-2341` and explain where it broke

## Similar
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [Oh My Posh Validator](https://affpapa.org/en/nevibecode/mcp/oh-my-posh-validator.md) — MCP server · ★ 23643
- [Keploy](https://affpapa.org/en/nevibecode/mcp/keploy.md) — MCP server · ★ 18727
- [Coder](https://affpapa.org/en/nevibecode/mcp/coder.md) — MCP server · ★ 17160
- [mcp](https://affpapa.org/en/nevibecode/mcp/kubeshark-mcp.md) — MCP server · ★ 12109

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
