---
title: "Ai2Sql MCP server"
url: "https://martechdb.com/vendors/ai2sql"
markdown_url: "https://martechdb.com/vendors/ai2sql.md"
api_url: "https://martechdb.com/api/v1/vendors/ai2sql.io"
updated: "2026-10-01"
---

# Ai2Sql MCP server

The official MCP server published by Ai2Sql. MartechDB lists only servers the vendor publishes itself, never community servers.

- Website: [ai2sql.io](https://ai2sql.io)
- Categories: [Projects & collaboration](https://martechdb.com/categories/projects-collaboration.md)

## AI2SQL

Generate, fix, explain and run read-only SQL on PostgreSQL, MySQL and SQL Server

- Address: https://builder.ai2sql.io/api/chatgpt-mcp
- Runs: Hosted
- Sign-in: Sign-in: see vendor docs (`unknown`)
- Official MCP Registry: listed as `io.ai2sql/ai2sql`
- Documentation: https://ai2sql.io/mcp
- How we found it: Official MCP Registry, published under the vendor's own domain
- Last checked: 2026-10-01

### Connect it

Claude Code:

```sh
claude mcp add --transport http ai2sql https://builder.ai2sql.io/api/chatgpt-mcp
```

- Add to Cursor: <cursor://anysphere.cursor-deeplink/mcp/install?name=ai2sql&config=eyJ1cmwiOiJodHRwczovL2J1aWxkZXIuYWkyc3FsLmlvL2FwaS9jaGF0Z3B0LW1jcCJ9>
- Add to VS Code: <vscode:mcp/install?%7B%22name%22%3A%22ai2sql%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fbuilder.ai2sql.io%2Fapi%2Fchatgpt-mcp%22%7D>
- Claude.ai and Claude Desktop: Customize, Connectors, "+", Add custom connector, then paste https://builder.ai2sql.io/api/chatgpt-mcp
- ChatGPT: Settings, Apps, Advanced settings, turn on Developer mode, Create, then paste https://builder.ai2sql.io/api/chatgpt-mcp (this usually works only with servers that use self-serve sign-in or none)

JSON for Cursor, Windsurf and other clients that connect to hosted servers:

```json
{
    "mcpServers": {
        "ai2sql": {
            "type": "http",
            "url": "https://builder.ai2sql.io/api/chatgpt-mcp"
        }
    }
}
```

## Alternatives with an official MCP server

In Projects & collaboration:

- [Microsoft](https://martechdb.com/vendors/microsoft.md) (microsoft.com)
- [GitHub](https://martechdb.com/vendors/github.md) (github.com)
- [Dropbox](https://martechdb.com/vendors/dropbox.md) (dropbox.com)
- [Slack](https://martechdb.com/vendors/slack.md) (slack.com)

## Get this data

- API: `curl https://martechdb.com/api/v1/vendors/ai2sql.io`
- MCP: `claude mcp add --transport http martechdb https://martechdb.com/mcp`, then ask about Ai2Sql.
- Web page: https://martechdb.com/vendors/ai2sql
