
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 toolsPublic 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
Details
- Repository
- github.com/agentic-eng/a2db
- Categories
- Databases, AI & LLM Tools
- Package
a2db- Transport
- STDIO
- Registry
- MCP registry, active