MCP Server
Connect your AI coding tools to LogClaw incidents, logs, and anomalies via the Model Context Protocol. Works with Claude Code, Cursor, Windsurf, and any MCP-compatible client.
Quick start
npx logclaw-mcp-serverThe server communicates over stdio using the Model Context Protocol. Your AI tool launches it automatically — you just need to add the config once.
Setup
Claude Code
Add to ~/.claude.json:
{
"mcpServers": {
"logclaw": {
"command": "npx",
"args": ["-y", "logclaw-mcp-server"],
"env": {
"LOGCLAW_ENDPOINT": "https://ticket.logclaw.ai",
"LOGCLAW_API_KEY": "lc_proj_..."
}
}
}
}Cursor / Windsurf
Add to .cursor/mcp.json or .windsurf/mcp.json:
{
"mcpServers": {
"logclaw": {
"command": "npx",
"args": ["-y", "logclaw-mcp-server"],
"env": {
"LOGCLAW_ENDPOINT": "https://ticket.logclaw.ai",
"LOGCLAW_API_KEY": "lc_proj_..."
}
}
}
}Environment variables
| Variable | Required | Description |
|---|---|---|
| LOGCLAW_API_KEY | Yes | Your LogClaw project API key |
| LOGCLAW_ENDPOINT | No | Auth proxy endpoint (default: https://ticket.logclaw.ai) |
Available tools
The MCP server exposes 6 tools that your AI assistant can call:
logclaw_list_incidentsList and filter incidents by severity, state, service, or search query
logclaw_get_incidentFull incident details — root cause, causal chain, evidence logs, traces, timeline, blast radius
logclaw_update_incidentTransition incident state (acknowledge, investigate, mitigate, resolve) or add a note
logclaw_search_logsSearch raw logs by service, level, time range, and query
logclaw_get_anomaliesGet recent anomaly detections (Z-score analysis on error rates)
logclaw_service_healthCheck LogClaw pipeline health status and latency
Example prompts
Once connected, try asking your AI assistant:
Self-hosted
Running LogClaw on your own infrastructure? Point LOGCLAW_ENDPOINT to your auth proxy:
LOGCLAW_ENDPOINT=https://logclaw.internal.company.com \
LOGCLAW_API_KEY=lc_proj_... \
npx logclaw-mcp-serverAir-gapped? Install the package from a private registry or copy the dist/ folder directly. The MCP server has zero runtime network dependencies beyond reaching your auth proxy.