AgentSQL
Secures AI-agent access to PostgreSQL, MySQL, and other data systems with authorization, approvals, masking, and audit controls.
Install AgentSQL
Run the project’s own setup commands, in order.
Setup steps from the project
AgentSQL installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com
curl -fsSL https://github.com/cuipengdba/agentsql/releases/download/v4.8.1/install.sh | sudo sh -s -- install --version v4.8.1curl -fsSL https://raw.githubusercontent.com/cuipengdba/agentsql/v4.8.1/scripts/quickstart.sh -o quickstart.sh && sh quickstart.sh --version v4.8.1
Overview
Use cases
- Gate AI-agent queries to production PostgreSQL or MySQL
- Require approval before selected database writes
- Mask sensitive columns before returning query results
- Audit and review agent database activity
- Expose bounded reads from Redis, MongoDB, ClickHouse, or Milvus
Key features
- PostgreSQL and MySQL MCP access controls
- Local stdio and Streamable HTTP transports
- SQL authorization, risk checks, and fail-closed handling
- Column masking and result protection
- Human approval and agent identity binding
- Persistent audit, metrics, and security notifications
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How AgentSQL works
Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about AgentSQL
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/agentsql)<a href="https://allmcps.com/mcp/agentsql"><img src="https://allmcps.com/api/badge/agentsql?style=directory" alt="AgentSQL on AllMCPs" /></a>