MCP server exposing SRE-style log diagnostics (search, trace, errors, stats) over a Postgres-backed log store
Project description
dbay-sre-mcp
MCP (Model Context Protocol) server exposing SRE-style log diagnostics over a Postgres-backed log store. Designed for use by LLM agents that need to query structured application logs.
Tools exposed
| Tool | Purpose |
|---|---|
log_search(component, level, keyword, tenant_id, db_id, since, limit) |
Flexible search across the logs table |
log_trace(request_id) |
Follow all log rows belonging to a single request chain |
log_errors(since, component) |
Recent error spike summary |
log_stats(since) |
Overview of activity by level/component |
Install
pip install dbay-sre-mcp
Configure
Point at your Postgres log store via either:
LOG_DB_DSNenvironment variable, or~/.dbay/sre-config.jsonwith key"dsn"
Expected logs table schema:
logs(id, ts, level, component, request_id, tenant_id, db_id, logger, msg, duration_ms, extra, thread)
Use as MCP server
dbay-sre-mcp
Then connect from any MCP-compatible client (Claude Code, Hermes, Codex, custom).
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dbay_sre_mcp-0.1.0.tar.gz.
File metadata
- Download URL: dbay_sre_mcp-0.1.0.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8da6856c855ff626db448bcd4c71f67baf9ea1b6213b9204e25e71b7c3649732
|
|
| MD5 |
6e601707fc090dd1d8573eb5cf1057b1
|
|
| BLAKE2b-256 |
3cebe0f29ccf98d1fe4954d94ebc495adc173c5c00c25ab3f66012ae32635a0d
|
File details
Details for the file dbay_sre_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dbay_sre_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c8cf2b9c634074f0b11d8b9698e39da6e904ddfd6ba152e27b8d6a2c2c08718
|
|
| MD5 |
f05dee0c479f10b6837e2e4826322b5b
|
|
| BLAKE2b-256 |
e98978d589f27851d57b7257b57da25a243e6dccfcb09a6f4bea87e08b457bc4
|