anumana

v0.2.1
io.github.sinhaKAN-ra/anumana Checked 8 hours ago Published 1 month ago

Predict query cost, explain the plan, and rewrite it before you run it — 12 DB engines.

Values you need

VariableWhat it is
ANUMANA_DSNoptional secret Read-only connection string for the primary target database (e.g. postgresql://readonly@host:5432/db). Optional if ANUMANA_TARGETS is used.
ANUMANA_TARGETSoptional secret JSON array of named targets for a multi-database setup, each with name, engine, and connection string.
ANUMANA_POLICIESoptional JSON array of operator enforcement policies (block/warn/allow rules by risk tier or flag). Optional; open by default.

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add anumana -- uvx anumana-mcp==0.2.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "anumana": {
      "args": [
        "anumana-mcp==0.2.1"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "anumana": {
      "args": [
        "anumana-mcp==0.2.1"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "anumana": {
      "args": [
        "anumana-mcp==0.2.1"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.anumana]
command = "uvx"
args = ["anumana-mcp==0.2.1"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: list_targets, list_policies, preflight_query, preflight_vector_search, rewrite_query, explain_query_working, describe_schema_tool, suggest_query, ….
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json