Libra Logs MCP Server
Officialby exla-ai
README.md
# Libra Logs MCP Server
Connect Claude Code, Cursor, OpenAI Codex, or any Model Context Protocol (MCP) client to [Libra Logs](https://libra.exla.ai) 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:
```text
https://libra.exla.ai/logs/api/mcp
```
Generate a scoped read-only API key from [https://libra.exla.ai/coding-agent](https://libra.exla.ai/coding-agent) or [Settings](https://libra.exla.ai/settings), then register it in your user-level config (never inside a repository file that git could commit).
### Claude Code
```bash
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`)
```json
{
"mcpServers": {
"libra-logs": {
"url": "https://libra.exla.ai/logs/api/mcp",
"headers": {
"Authorization": "Bearer YOUR_READ_ONLY_KEY"
}
}
}
}
```
### CLI One-Liner
```bash
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`:
```json
{
"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](https://glama.ai/mcp/servers) and [MCP Inspector](https://glama.ai/mcp/inspector).
## Documentation & Comparisons
- [Libra Logs Overview & Live Cost Calculator](https://libra.exla.ai)
- [MCP Server for Production Logs Guide](https://libra.exla.ai/mcp-server-for-logs)
- [Managed OpenTelemetry Logs (`/v1/logs`)](https://libra.exla.ai/opentelemetry-logs)
- [Resolve AI Alternative](https://libra.exla.ai/resolve-ai-alternative)
- [Cleric AI SRE Alternative](https://libra.exla.ai/cleric-alternative)
- [SigNoz Alternative](https://libra.exla.ai/signoz-alternative)
- [PostHog Logs Alternative](https://libra.exla.ai/posthog-logs-alternative)
- [Datadog Logs Alternative](https://libra.exla.ai/datadog-logs-alternative)
- [Sentry Logs Alternative](https://libra.exla.ai/sentry-logs-alternative)
- [Axiom Alternative](https://libra.exla.ai/axiom-alternative)
- [Better Stack Alternative](https://libra.exla.ai/better-stack-alternative)
- [Interactive Log Cost Calculator](https://libra.exla.ai/log-cost-calculator)
- [Vercel & Next.js Logs Alternative](https://libra.exla.ai/vercel-logs-alternative)
- [CloudWatch, Heroku & Supabase Log Drains](https://libra.exla.ai/cloudwatch-logs-alternative)
## License
MIT
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues