A2db MCP Server

<strong>Give AI agents safe, read-only access to your databases. One call, multiple queries, clean results.</strong>

Local serverstdioPython

What is the A2db MCP Server?

Give AI agents safe, read-only access to your databases. One call, multiple queries, clean results.

What you get

  • Pre-configured connections — — define databases in .mcp.json with --register, agent queries immediately
  • Batch queries — — run multiple named queries in a single tool call
  • Default connection — — set connection once, use it across all queries in a batch
  • Clean output — — structured JSON envelope with compact TSV data and per-query timing (see why TSV?)
  • Read-only enforced — — SQLGlot AST parsing blocks all write operations
  • All drivers bundled — — pip install a2db and you're done

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
loginSave a connection — validates by connecting first
logoutRemove a saved connection
list_connectionsList connections (no secrets exposed)
executeRun named batch queries with pagination
search_objectsExplore schema — tables, columns, with detail levels

How to install the A2db MCP Server

{
  "mcpServers": {
    "a2db": {
      "command": "uvx",
      "args": ["a2db"],
      "env": {
        "DB_PASSWORD": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
DB_PASSWORDConfiguration value read at startup.Optional

Example prompts to try

  • “Use A2db to login.”
  • “Use A2db to logout.”
  • “Use A2db to list connections.”

Frequently asked questions

<strong>Give AI agents safe, read-only access to your databases. One call, multiple queries, clean results.</strong> Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.