MCP for AI Agents

Your AI agent can't see your database. AI2SQL's MCP server fixes that — it learns your schema, runs the query, and returns the answer. Governed, read-only and metered.

FOR DEVELOPERS

Connect Claude to your database in 2 minutes

  • One MCP endpoint — no driver installs, no SQL client config
  • Read-only by default; writes require an explicit grant
  • Scoped API keys with per-query metering and audit logs
Get your API key →
Claude Code Cursor claude_desktop_config.json
$ claude mcp add ai2sql \
    --url https://builder.ai2sql.io/api/mcp \
    --header "Authorization: Bearer $AI2SQL_KEY"
✓ ai2sql connected — 3 tools available
  run_query · describe_schema · list_connections

Available tools

Works with Claude (Code, Desktop, claude.ai), Cursor, ChatGPT with developer-mode MCP, and any custom agent over our REST API. Every query is logged, writes are blocked by default, and usage is metered per key.