dbtrail
dbtrail CloudAPI Reference

MCP

Model Context Protocol endpoint for AI tool integration

The MCP endpoint provides AI clients with access to dbtrail Cloud tools via the Model Context Protocol (Streamable HTTP). Requires the mcp:connect permission.

Endpoint

MethodEndpointPermissionDescription
POST/mcpmcp:connectMCP Streamable HTTP endpoint
DELETE/mcpmcp:connectTerminate an MCP session

GET /mcp returns 405 — SSE streaming is not supported.

Tools

The gateway serves the following tools:

ToolDescription
queryQuery indexed binlog change events with before/after row images
batch_queryQuery up to 10 tables concurrently in a single call
count_eventsAggregate event counts, optionally grouped by schema, table, or event type
list_tablesList schemas and tables with indexed binlog data on a server
list_schema_changesList DDL events (CREATE, ALTER, DROP, RENAME, TRUNCATE)
list_serversList registered MySQL servers for the current tenant
statusStreaming health, replication position, and index coverage
recoverGenerate point-in-time recovery SQL — always dry-run, never executed
forensics_capabilitiesCheck available forensic data sources on a server
who_changedTrace who modified a specific row (user, host, client program)
user_activityRecent SQL statements by a specific MySQL user
connection_historyConnections from a specific MySQL user or host
search_docsSearch dbtrail product documentation
read_docRead the full content of a documentation page

The forensic tools (forensics_capabilities, who_changed, user_activity, connection_history) require a plan with the forensics feature (Pro or higher).

See Claude Integration for setup instructions and Tools Reference for per-tool parameters and responses.

On this page