DBA Brain
dbabrain.dev · PyPI ·
Downloads · pip install dbabrain ·
MCP: mcpservers.org ·
Glama ·
Glama connector
An open-source DBA tool for DBAs, SREs and DevOps engineers. It collects health metrics from your
SQL Server, Oracle, PostgreSQL and MySQL instances, grades them against policies you write, runs
your scheduled SQL, takes backups and proves them by restoring them, checks objectives against
real measurement history, and tells you about it — on a schedule, without an agent on any
monitored machine.
It sends nothing you did not switch on. No telemetry, no usage reporting, no update check. It
connects to the databases and hosts you list; with a dbabrain key, once a day to dbabrain.dev to check
that key (the key alone, nothing about your databases); and only if you turn each on, to a chat
service and to the AI - through dbabrain.dev, or a model's API on your own key. Nothing else.
dbabrain.dev collects none of your data: the key has two jobs only - to authenticate the node and to
relay its assistant's AI turns - and dbabrain.dev keeps your email, the key's fingerprint and term, and each
AI turn's tokens and cost; never a question, an answer, or anything from your databases.
Better with an AI, complete without one. dbabrain is the harness an AI model works through: get
a free dbabrain key (dbabrain key-request, an email sign-in on dbabrain.dev) and its assistant -
answering through dbabrain.dev, no Anthropic key of yours needed - supports the DBA's and the DevOps engineer's
daily work on databases and servers - it reads what is happening (alerts, backups, jobs, metrics, a
read-only query on the server), explains it, and says the exact command for the next step, in
Telegram or in a terminal; it also guides a new install. It only reads, through the same commands a
person runs. An AI client can also drive it directly over MCP
(dbabrain mcp serve). Leave the AI off, which is the default, and every collection, backup, report
and alert runs exactly the same.
How a model reaches your estate - no public IP, no inbound port, no server of yours on the
internet. In every way below the connection is opened FROM your machine, outward; nothing on the
internet connects in, and the commands run on your machine with your credentials:
| Way |
What runs where |
What the network needs |
The assistant (key-request, then dbabrain telegram ai-ask or Telegram) |
Your node sends the question to dbabrain.dev, which passes it to the model's API (or, with ai-key, straight to the API on your own Anthropic key); the model answers with the dbabrain tools it wants run; your node runs them (read-only) and sends the results in the next request, until the model answers |
Outbound HTTPS to mcp.dbabrain.dev:443 (with ai-key: api.anthropic.com:443; through http_proxy in data/ai_assist.json when you need one). Telegram is polled outbound (getUpdates to api.telegram.org:443) - no webhook |
| An AI app on the same machine (Claude Desktop, Claude Code, any MCP client) |
The app starts dbabrain mcp serve as a child process and talks to it over stdin/stdout |
Nothing from dbabrain; the app talks to its own model |
| claude.ai on the web or a phone |
dbabrain mcp connect links your node to the remote connector at mcp.dbabrain.dev and keeps one WebSocket open from your node; claude.ai's requests come down it |
Outbound HTTPS/WebSocket to mcp.dbabrain.dev:443. The public endpoint is dbabrain.dev's, not yours |
Only dbabrain mcp serve --http - serving MCP yourself - needs an address others can reach, and it
is behind a bearer token. What leaves in each case, and what is redacted first:
docs/security.md, docs/07_telegram_app.md,
docs/16_mcp_app.md.