Repository avatar
Search & Data Extraction
v1.0.0
active

libra-logs-mcp

io.github.exla-ai/libra-logs-mcp

Customer-grouped production log triage and OTLP log search for Claude Code, Cursor, and Codex.

Documentation

Libra Logs MCP Server

Connect Claude Code, Cursor, OpenAI Codex, or any Model Context Protocol (MCP) client to Libra Logs with a scoped read-only key.

Instead of dumping thousands of ungrouped JSON lines into an LLM context window, Libra Logs groups production errors and silent HTTP 200 failures by affected customer account and returns plain-English findings backed by rerunnable log lines.

Hosted HTTP MCP Endpoint (Recommended)

Libra Logs runs a hosted Streamable HTTP MCP endpoint at:

https://libra.exla.ai/logs/api/mcp

Generate a scoped read-only API key from https://libra.exla.ai/coding-agent or Settings, then register it in your user-level config (never inside a repository file that git could commit).

Claude Code

claude mcp add --transport http --scope user libra-logs https://libra.exla.ai/logs/api/mcp \
  --header "Authorization: Bearer YOUR_READ_ONLY_KEY"

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "libra-logs": {
      "url": "https://libra.exla.ai/logs/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_READ_ONLY_KEY"
      }
    }
  }
}

CLI One-Liner

npx libra-logs@latest mcp add --key YOUR_READ_ONLY_KEY

Local stdio Bridge (For Legacy stdio-only MCP Clients)

If your MCP client only speaks stdio, run bin/libra-logs-mcp.mjs with LIBRA_LOGS_API_KEY:

{
  "mcpServers": {
    "libra-logs": {
      "command": "node",
      "args": ["/path/to/libra-logs-mcp/bin/libra-logs-mcp.mjs"],
      "env": {
        "LIBRA_LOGS_API_KEY": "YOUR_READ_ONLY_KEY"
      }
    }
  }
}

Exposed Read-Only Tools

  • whats_broken: Returns active customer-grouped production problems, affected tenant/account identifiers, plain-English explanations, and cited log lines.
  • search_logs: Runs structured queries across OpenTelemetry (/v1/logs), AWS CloudWatch, Heroku Logplex, and Supabase log streams without flooding agent context.

Inspect & Test Online

You can also inspect tool schemas and test the MCP handshake interactively using the Glama MCP Server Directory and MCP Inspector.

Documentation & Comparisons

License

MIT

No installation packages available.