> ## Documentation Index
> Fetch the complete documentation index at: https://vexidata.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ChatGPT

> Connect ChatGPT to VexiData to query your databases with natural language.

## Prerequisites

* A [ChatGPT](https://chatgpt.com) account (Plus, Team, or Enterprise plan required for integrations)
* A [VexiData](https://vexidata.com) account with at least one connected database

## Connect ChatGPT to VexiData

<Steps>
  <Step title="Copy your MCP Server URL">
    Your MCP Server URL is:

    ```
    https://vexidata.com/mcp
    ```

    You can also find this in **Settings** > **AI Integrations** in your [VexiData AI Integrations](https://vexidata.com/settings/ai-integrations) page.
  </Step>

  <Step title="Enable Developer Mode in ChatGPT">
    1. Go to [chatgpt.com](https://chatgpt.com)
    2. Open **Settings** (click your profile icon in the bottom-left)
    3. Navigate to **Connectors**
    4. Click **Advanced Settings** at the bottom
    5. Enable **Developer Mode**
  </Step>

  <Step title="Add VexiData as a connector in ChatGPT">
    1. Go back to the **Connectors** page
    2. Click **Create**
    3. Paste your VexiData MCP Server URL
    4. Click **Create** and authorize access when prompted
  </Step>

  <Step title="Authorize the connection">
    ChatGPT will redirect you to VexiData to authorize access. Review the requested permissions and click **Approve**.

    You'll be redirected back to ChatGPT once the connection is established.
  </Step>

  <Step title="Enable VexiData in your conversation">
    After connecting, you may need to enable VexiData in each conversation:

    1. In the ChatGPT chat window, click the **+** button
    2. Select **More**
    3. Find and enable **VexiData**

    Once enabled, you can ask questions about your databases directly in the conversation. For example:

    * *"How many users signed up this week?"*
    * *"Show me the top 10 products by revenue"*
    * *"What's the average order value by country?"*

    ChatGPT will use VexiData to run the appropriate SQL query against your connected database and return the results.
  </Step>
</Steps>

## Managing your connection

You can view and manage your ChatGPT connection from **Settings** > **AI Integrations** in VexiData. From there you can:

* See when the connection was established
* Disconnect ChatGPT by clicking **Disconnect**

## Troubleshooting

<AccordionGroup>
  <Accordion title="Integration option not available in ChatGPT">
    * MCP integrations require a ChatGPT Plus, Team, or Enterprise plan. Free accounts may not have access to this feature
    * Make sure you're using the latest version of ChatGPT
  </Accordion>

  <Accordion title="Authorization failed or redirect error">
    * Ensure you're logged in to VexiData before approving the connection
    * Try copying the MCP Server URL again from VexiData and re-adding it in ChatGPT
    * Clear your browser cookies for vexidata.com and try again
  </Accordion>

  <Accordion title="ChatGPT can't find my tables or data">
    * Verify you have at least one database connected in VexiData under **Data Sources**
    * Check that your database connection is active (the schema should be analyzed)
    * Try being specific about which database or table you're asking about
  </Accordion>
</AccordionGroup>
