AgentSQL
Guard AI agents' PostgreSQL/MySQL access via MCP: SQL audit, auth, masking, write approval
About AgentSQL
Guard AI agents' PostgreSQL/MySQL access via MCP: SQL audit, auth, masking, write approval
How to connect
What is the endpoint and how does it run?
Hosted remote server over Streamable HTTP at https://demo.agentsql.cn/mcp.
How do I add AgentSQL to Claude Code, Cursor or Claude Desktop?
npx ruagentic add agentsqlclaude mcp add --transport http agentsql https://demo.agentsql.cn/mcp{
"mcpServers": {
"agentsql": {
"url": "https://demo.agentsql.cn/mcp"
}
}
}{
"mcpServers": {
"agentsql": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://demo.agentsql.cn/mcp"
]
}
}
}Snippets are generated from the published endpoint; the server name agentsql is only a label you can change. Add the credentials the publisher documents.
https://demo.agentsql.cn/mcpUse this URL in a compatible client. Follow the provider’s authentication instructions.Questions and answers
What is AgentSQL?
AgentSQL is an MCP server in the Data & intelligence category. Guard AI agents' PostgreSQL/MySQL access via MCP: SQL audit, auth, masking, write approval
How do I connect to AgentSQL?
Hosted remote server over Streamable HTTP at https://demo.agentsql.cn/mcp. The listing page has ready-made snippets for Claude Code, Cursor and Claude Desktop.
Where is AgentSQL published?
Its homepage is https://agentsql.cn/ and its source repository is https://github.com/cuipengdba/agentsql. RUAGENTIC read these details from Official MCP Registry on December 1, 2026 and did not install or run the project.
Sources and checks
View the sourceSource information collected December 1, 2026.
Badge and embed
Show this listing on your website or README. The badge and the card link back to this page.
[](https://ruagentic.com/tools/agentsql)<a href="https://ruagentic.com/tools/agentsql"><img src="https://ruagentic.com/badge/agentsql.svg" alt="Listed on RUAGENTIC" height="28"></a>[](https://ruagentic.com/tools/agentsql)<iframe src="https://ruagentic.com/embed/agentsql" width="480" height="150" style="border:0;max-width:100%" loading="lazy" title="AgentSQL on RUAGENTIC"></iframe>