The goal is simple: register AgentDBA as an MCP server in Claude Code, so Claude can call it from the console alongside other sources such as other agents, documentation and CSV files and give a fuller diagnostic picture than either could on its own.
Read more: Integrating AgentDBA into Claude Code with MCPHigh Level Approach

How it fits together
On my dev server, the flow looks like this:

Key elements
- A small adapter. A few hundred lines of Python on the official MCP SDK. It offers Claude one tool: run_health_check.
- AgentDBA does all the work, unchanged. It still applies its licence check, its SQL guardrails and its rules against linking findings without evidence. The adapter only starts it, waits, and passes the result back.
- One command to register it. claude mcp add-json tells Claude Code how to start the adapter. From then on, Claude Code starts it automatically in each session, and you just ask in plain English.
Seeing it in Claude Code
With the adapter registered, I start Claude Code:

Then I type /mcp to list the MCP servers Claude Code knows about:

agentdba-dev appears under Local MCPs, connected, with one tool.
What this gives me
- AgentDBA becomes a building block. Any MCP client can call it, not just its own chat or web UI. Claude Code is the first.
- Context AgentDBA could never see. AgentDBA knows what it measured. Claude can now join that with what your team knows: tickets, the database register, owners and tiers.
- The discipline stays inside AgentDBA. Measurement, evidence rules and confidence scoring all happen before anything leaves it. Claude receives validated conclusions, not raw data, so its job is to add context rather than re-diagnose. Many SQL Server MCP servers work the other way round: they hand raw DMV data to the model and let it do the diagnosis.
Next
Next session I will show AgentDBA working alongside other tools, and test the open question: when Claude combines AgentDBA’s findings with ticket history, does it stay within the evidence, or start inventing links?
Keeping the diagnosis inside AgentDBA, and only exposing a single run_health_check tool through a thin MCP adapter, is a much safer pattern than handing raw DMV rows to the model and hoping it diagnoses correctly. The licence check, SQL guardrails and evidence rules staying on the AgentDBA side means Claude is adding tickets and ownership context rather than second-guessing measurements. Looking forward to the next post on how it behaves when several MCP tools are in the same session.
LikeLike