---
title: "AI for Database in Claude and ChatGPT"
description: "Connect AI for Database to Claude or ChatGPT to query your databases in plain English, run read-only SQL and manage alert workflows from a chat."
canonical: "https://www.aifordatabase.com/ai-connector/"
---

# AI for Database in Claude, ChatGPT and Grok

AI connector



Ask your databases questions, run read-only SQL and set up alerts without leaving your AI assistant. It uses the connections, permissions and credits of your AI for Database workspace.

## Connect in Claude

1.  1Open the [AI for Database listing in the Claude directory](https://claude.ai/directory/ai-for-database), or search for it under **Settings → Connectors**.
2.  2Click **Connect** and sign in to AI for Database.
3.  3Review the access and click **Allow**.

## Connect in ChatGPT

1.  1Open **Settings → Security and login** and turn on **Developer mode**.
2.  2Go to [chatgpt.com/plugins](https://chatgpt.com/plugins), click **Create MCP app** and enter the server URL below.
3.  3Sign in to AI for Database, click **Allow**, then pick it from the tools menu in a new chat.

## Connect in Grok

1.  1Go to [grok.com/connectors](https://grok.com/connectors) and click **New Connector**, then **Custom**.
2.  2Enter the server URL below.
3.  3Sign in to AI for Database and click **Allow**.

```
https://mcp.aifordatabase.com/mcp
```

You need an AI for Database account with at least one connection. New accounts can add the built-in sample database to try it.

## Muse by Meta

In Muse, open Connectors and search for AI for Database. Click Connect, sign in and click Allow, then ask Muse about your data.

## Things to ask

*   “Which database connections do I have in AI for Database?”
*   “How many customers do we have on each plan?”
*   “Show me the five largest payments last month, with the customer name.”
*   “Write a read-only query for weekly signups over the last quarter and run it.”
*   “Email me every Monday if any support ticket has been open for more than 7 days.”

## What the assistant can do

| Tool | What it does | Type |
| --- | --- | --- |
| `list_connections` | List your database connections. | Read |
| `get_schema` | Show a connection’s tables, columns and relationships. | Read |
| `run_query` | Run SQL inside a read-only transaction. Writes are rejected by the database. | Read |
| `ask_database` | Ask a question in plain English; get the answer, the SQL and the rows. | Uses AI credits |
| `list_dashboards` | List your dashboards. | Read |
| `list_workflows` | List alert workflows and their triggers. | Read |
| `create_workflow` | Create a SQL check that sends email or webhook alerts. | Can send alerts |
| `run_workflow` | Run a workflow now; its alerts fire if the check returns rows. | Can send alerts |
| `request_feature` | Send a feature request or feedback to the AI for Database team, with your account details so we can follow up. | Write |
| `get_usage` | Show this billing period’s AI credit budget and usage. | Read |

Queries run read-only. Tools that can send email or webhook alerts are labelled as such to Claude and ChatGPT. To review each one before it runs, set it to **Needs approval** in Claude under **Settings → Connectors → AI for Database**. The connector cannot change billing, team members or connection credentials.

## Disconnect, privacy and support

Remove the connector in Claude or ChatGPT, or revoke its key under **Settings → API Keys** in AI for Database; a revoked key stops working immediately. The assistant receives only the results of the tools it runs, and AI for Database never sees your password or your other conversations. See the [privacy policy](https://www.aifordatabase.com/privacy) and [security overview](https://www.aifordatabase.com/security). Questions: [hello@aifordatabase.com](mailto:hello@aifordatabase.com).

Source: https://www.aifordatabase.com/ai-connector/
