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

# MCP

> Connect Databases with AI tools like ChatGPT, Claude, Cursor, and VS Code using the MCP protocol

**MCP** (Model Context Protocol) lets you connect your Databases database directly with AI tools. Once connected, you can query, create, and modify records using natural language from your favorite tool.

<Frame caption="MCP configuration with installation guides for each tool">
  <img src="https://mintcdn.com/jelouai/daUUvITM1J6ByU2U/assets/images/datum/mcp.png?fit=max&auto=format&n=daUUvITM1J6ByU2U&q=85&s=8126b2782778dc716cd6db2593259d6d" alt="MCP configuration page with ChatGPT, Claude, Cursor, VS Code, and Other tabs showing step-by-step installation guide" width="3024" height="1730" data-path="assets/images/datum/mcp.png" />
</Frame>

## How does it work?

Databases generates an **MCP URL** that acts as a bridge between your database and the AI tool. The tool connects to this URL to access the CRUD operations of your collections. The URL remains active until you regenerate it manually from the settings.

To access the MCP configuration, go to **Settings > MCP** from the left sidebar.

## Setup by tool

<Tabs>
  <Tab title="ChatGPT">
    <Steps>
      <Step title="Go to Settings → Connectors in ChatGPT">
        In ChatGPT, open **Settings** and select **Connectors** to manage custom connectors.
      </Step>

      <Step title="Enable Developer Mode">
        Enable **Developer Mode** in the Connectors → Advanced settings section to accept custom connector URLs.
      </Step>

      <Step title="Generate the Databases MCP URL">
        On the Databases MCP page, copy the generated URL.
      </Step>

      <Step title="Create the connector">
        In ChatGPT Connectors:

        * Select **Create connector** and add a name
        * Set authentication to **No Authentication**
        * Paste the MCP URL and check **I trust this application**
        * Click **Create**
      </Step>

      <Step title="Enable Developer Mode in the chat">
        Open a new chat, go to **More → Developer Mode** to activate the connector.
      </Step>

      <Step title="Add the resource">
        Click **Add sources**, enable your Databases database, and interact with your data.
      </Step>
    </Steps>
  </Tab>

  <Tab title="Claude">
    <Steps>
      <Step title="Generate the Databases MCP URL">
        On the Databases MCP page, copy the generated URL.
      </Step>

      <Step title="Open Add Connectors in Claude Desktop">
        In Claude Desktop, go to **Add connectors** to manage integrations.
      </Step>

      <Step title="Add the Databases connector">
        Paste the Databases MCP URL and follow the instructions to complete the connection.
      </Step>
    </Steps>
  </Tab>

  <Tab title="Cursor">
    **Automatic installation:**

    <Steps>
      <Step title="Generate the Databases MCP URL">
        On the Databases MCP page, copy the generated URL.
      </Step>

      <Step title="Click Add to Cursor">
        Click the **Add to Cursor** button or copy the provided Cursor deeplink.
      </Step>

      <Step title="Approve the installation">
        When Cursor opens:

        * Review the connector details and click **Install**
        * Allow Cursor to restart if necessary
        * Open a new chat and enable the Databases tools
      </Step>
    </Steps>

    **Manual installation:**

    Add this JSON in **Settings → Cursor Settings → MCP → Add new global MCP server**:

    ```json theme={null}
    {
      "datum": {
        "url": "https://datum.jelou.cloud/YOUR_UNIQUE_ID/mcp"
      }
    }
    ```
  </Tab>

  <Tab title="VS Code">
    <Steps>
      <Step title="Generate the Databases MCP URL">
        On the Databases MCP page, copy the generated URL.
      </Step>

      <Step title="Create the .vscode/mcp.json file">
        In your workspace, create the `.vscode/mcp.json` file with the Databases server configuration:

        ```json theme={null}
        {
          "servers": {
            "datum": {
              "type": "http",
              "url": "https://datum.jelou.cloud/YOUR_UNIQUE_ID/mcp"
            }
          }
        }
        ```
      </Step>

      <Step title="Complete the configuration">
        Use the Command Palette to:

        * Run **MCP: Add Server**, choose **HTTP**, and provide the Databases URL
        * Select **Workspace Settings** to create `.vscode/mcp.json` if it doesn't exist
      </Step>
    </Steps>

    <Note>
      Avoid including secrets directly in the configuration file. Use environment variables or input files for credentials.
    </Note>
  </Tab>

  <Tab title="Other clients">
    <Steps>
      <Step title="Generate the Databases MCP URL">
        On the Databases MCP page, copy the generated URL.
      </Step>

      <Step title="Connect from any MCP client">
        Use the generated URL with the transport method supported by your client. Most clients support HTTP-based MCP connections.
      </Step>
    </Steps>
  </Tab>
</Tabs>
