a2db MCP Server

Most database MCP servers make you run one query at a time, repeat connection details on every call, and return results double-encoded inside JSON strings. a2db fixes all of that:

Local serverstdio

What is the a2db MCP Server?

a2db is an MCP project maintained in the agentic-eng/a2db repository. The maintainer describes its purpose as “Most database MCP servers make you run one query at a time, repeat connection details on every call, and return results double-encoded inside JSON strings…”. Read the project documentation for the complete scope.

Installation

The documented pypi package is a2db-mcp. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Configuration values

The example declares DB_PASSWORD. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

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-mcp",
        "--register",
        "myapp/prod/main",
        "postgresql://user:${DB_PASSWORD}@host/mydb"
      ],
      "env": {
        "DB_PASSWORD": "YOUR_DB_PASSWORD"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
DB_PASSWORDDeclared in the maintainer’s client configuration.Check documentation