MCP server
AgentSQL
io.github.cuipengdba/agentsql
Checked 26 Oct 2026, 08:29 UTC · It answered and asked for a sign-in
Guard AI agents' PostgreSQL/MySQL access via MCP: SQL audit, auth, masking, write approval
Needs an API key
https://demo.agentsql.cn/mcp
At a glance
- Type
- MCP server
- Publisher
- Not verified
- Status
- Needs an API key
- Sets up in
- Claude Code, Claude Desktop, Codex, Gemini CLI, Cursor, VS Code, Antigravity, ChatGPT, OpenAI API, Grok
- Last checked
- 26 Oct 2026, 08:29 UTC
Connect it to your agent
Opens the app, which shows the server and asks you to confirm. For other apps, copy the setup below.
Claude Code
claude mcp add --transport http agentsql https://demo.agentsql.cn/mcp
Claude Desktop
Settings → Connectors → Add custom connector, and paste the URL.
Codex (config.toml)
[mcp_servers.agentsql] url = "https://demo.agentsql.cn/mcp"
Gemini CLI
{"mcpServers":{"agentsql":{"httpUrl":"https://demo.agentsql.cn/mcp"}}}
Cursor
{"mcpServers":{"agentsql":{"url":"https://demo.agentsql.cn/mcp"}}}
VS Code
{"servers":{"agentsql":{"type":"http","url":"https://demo.agentsql.cn/mcp"}}}
Antigravity
agy mcp add agentsql https://demo.agentsql.cn/mcp
ChatGPT
Settings → Apps & Connectors → Advanced settings: turn on Developer mode, then Create a connector and paste the URL. Which plans can do this varies.
OpenAI API (Responses tools)
{"type":"mcp","server_label":"agentsql","server_url":"https://demo.agentsql.cn/mcp","require_approval":"always"}
Grok (xAI API tools)
{"type":"mcp","server_label":"agentsql","server_url":"https://demo.agentsql.cn/mcp"}
Needs an API key or token from its maker, usually added as a header in the setup.
Browse
Related MCP servers
- CustomerDashboard
Build dashboards on your own data, including multi-customer views with per-customer login. - The Stall
277 pay-per-call MCP tools: YouTube keyword research, stocks, crypto, DeFi, options, macro. - Vibes-Coded Agent Security and Commerce Tools
Agent supply-chain security, scanner consensus, x402 reliability, and commerce MCP tools. - Thinair Data
PostgreSQL, MySQL, and SQL Server in one session. 26 read-only MCP tools for AI agents. - DBMigratePro Backups
Encrypted database backups and restore-to-any-host disaster recovery for MySQL and PostgreSQL. - DBMigratePro Migrations
Move a database between providers, or convert MySQL to PostgreSQL, with integrity verified. - Dbridge
Query SQLite, PostgreSQL, and MySQL in plain language - read-only, with column masking and limits. - MySQL MCP
MCP server for one MySQL database: schema, read-only queries and guarded writes.
Badge for your README
[](https://aptlynx.net/servers/io.github.cuipengdba/agentsql)
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents