agentic-eng avatar

A2db

agentic-eng/a2db

Connects Claude to PostgreSQL, MySQL, SQLite, Oracle, and SQL Server with read-only access enforced at the AST level via SQLGlot parsing. The execute tool lets you batch multiple named queries in a single call and returns TSV-formatted results to save tokens, though you can switch to JSON if needed. Pre-register connections in your MCP config with environment variable references for passwords, or let the agent call login on demand. Also exposes search_objects for schema exploration and includes per-query timing in responses. Useful when you want agents querying production databases without wrestling with one-query-at-a-time patterns or worrying about accidental writes.

GitHub stars
2
tools
5
transport
STDIO
last updated
Mar 29, 2026

Tools

5 tools

Public tool metadata for what this MCP can expose to an agent.

loginSave a connection — validates by connecting first

Save a connection — validates by connecting first

No parameter schema in public metadata yet.

logoutRemove a saved connection

Remove a saved connection

No parameter schema in public metadata yet.

list_connectionsList connections (no secrets exposed)

List connections (no secrets exposed)

No parameter schema in public metadata yet.

executeRun named batch queries with pagination

Run named batch queries with pagination

No parameter schema in public metadata yet.

search_objectsExplore schema — tables, columns, with detail levels

Explore schema — tables, columns, with detail levels

No parameter schema in public metadata yet.

Sponsors

Readme

🗄️ a2db

Agent-to-Database

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

5 databases · batch queries · pre-configured connections · SQLGlot read-only

PyPI Python versions License CI MCP Registry


View the full README on GitHub

Details

Repository
github.com/agentic-eng/a2db
Categories
Databases, AI & LLM Tools
Package
a2db
Transport
STDIO
Registry
MCP registry, active

More from agentic-eng

Related Databases MCP servers

View all
1lu-zhengda avatarVirtual Filesystemlu-zhengda/mcp-virtual-fsPostgreSQL-backed virtual filesystem for agents: session isolation, shared stores, POSIX ops, RLS.2stars
2shrike-security avatarShrikeshrike-security/shrike-mcpGoverns what AI agents do: tool calls, SQL, commands, files checked against policy before they run.2stars
3alyiox avatarClickHousealyiox/mcp-clickhousexRead-only MCP server for ClickHouse metadata, parameterized queries, and plan analysis.1stars
4arpe-io avatarFastbcp Mcparpe-io/fastbcp-mcpMCP server for FastBCP — high-performance parallel database export to files and cloud1stars
5arpe-io avatarLakexpress Mcparpe-io/lakexpress-mcpMCP server for LakeXpress — automated database-to-cloud data pipeline as Parquet1stars
6bch1212 avatarQueryshieldbch1212/queryshieldSecure SQL proxy for AI agents — NL→SQL, AST safety, per-agent RLS, audit log.1stars