Skip to content
DBA Brain
DBA Brain MCP

dbabrain

A DBA operations toolkit - SQL Server, PostgreSQL, Oracle, MySQL - that Claude and other AI agents can use: check an instance, list databases, run a read-only query, read backup and job history, and through the tools that change something, back up, restore and run what a DBA runs. It runs on your machine, against your databases; this site only relays Claude's requests to it.

Connector URL

https://mcp.dbabrain.dev/mcp

The machine needs a free dbabrain key. Without a machine linked, an account gets a read-only lab demo.

Why

An agent works better through dbabrain

The command an agent runs is byte for byte the command a person runs: one code path to audit, logged the same way whoever started it.

A verdict, not raw rows

The agent sends one small request and reads a graded answer - OK, WARNING, CRITICAL - then pulls the evidence only for what came back bad. Fewer tokens on the checks that were fine.

No password in the agent's context

A request names a server_id; your machine fills the login from its encrypted store. A request carrying a password, a key or a token is refused, and every answer is redacted.

Writes rolled back unless committed

run-sql runs one SELECT and always rolls back; run-sql-write keeps a change only with commit. Tools that change something are marked destructive and ask for their own confirmation.

A record of every call

Your machine records each call - the tool, the server, who asked - in its own runtime store, beside the daemon's runs. History the agent did not have to collect is there to read: metrics, backups, jobs.

The four DBA tasks an AI agent did, with and without DBA Brain: on the DBA Brain page.

Tools

104 tools, one per dbabrain command

32 only read; 72 change something and ask for confirmation. Your machine offers the ones its data/mcp_tools.json leaves on. The full list.

Read and check

list-targets, db-status, list-databases, describe-object, list-jobs, trace-session, host-facts, sqlserver-precheck

Run SQL

run-sql (one SELECT, rolled back), run-sql-write (kept only with commit), kill-spid

Back up and restore

backup-database, list-backup-files, restore-full, restore-diff, restore-log, verify-restore

Hosts and files

run-cmd, host-service, read-file, list-files, file-checksum, copy-files

Configuration

instance-add, sql-command-add, metric-toggle, metric-severity, upgrade-config

dbabrain's own store

store_schema, store_query: job runs, metrics, the backup catalog, SLA - read-only

Connect

Two ways to connect

Either way the connection is opened from your machine: no public IP, no inbound port, no server of yours.

claude.ai, on the web or a phone

dbabrain mcp connect links your machine to the connector at mcp.dbabrain.dev and keeps one WebSocket open from it; claude.ai's requests come down it.

How to connect

Claude Code, Claude Desktop, any AI agent that speaks MCP

The app starts dbabrain mcp serve on the same machine and talks to it over stdin / stdout - nothing from dbabrain goes on the network.

Local setup