Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add --transport http ai2sql https://builder.ai2sql.io/api/chatgpt-mcp~/.codex/config.toml
[mcp_servers.ai2sql]
url = "https://builder.ai2sql.io/api/chatgpt-mcp"
# codex mcp add ai2sql --url https://builder.ai2sql.io/api/chatgpt-mcp~/.cursor/mcp.json
{
"mcpServers": {
"ai2sql": {
"url": "https://builder.ai2sql.io/api/chatgpt-mcp"
}
}
}.vscode/mcp.json
{
"servers": {
"ai2sql": {
"type": "http",
"url": "https://builder.ai2sql.io/api/chatgpt-mcp"
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"ai2sql": {
"httpUrl": "https://builder.ai2sql.io/api/chatgpt-mcp"
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"ai2sql": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://builder.ai2sql.io/api/chatgpt-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"ai2sql": {
"url": "https://builder.ai2sql.io/api/chatgpt-mcp"
}
}
}