> For the complete documentation index, see [llms.txt](https://integrations.drivetrain.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://integrations.drivetrain.ai/extending-drivetrain/using-the-drivetrain-mcp-server/connect-common-mcp-clients.md).

# Common MCP clients

Connect ChatGPT and Claude to retrieve Drivetrain metrics using MCP.

You can connect the Drivetrain MCP server to an AI client in two ways:

| Method                          | Works with                                                                            | Who can use it                   |
| ------------------------------- | ------------------------------------------------------------------------------------- | -------------------------------- |
| **OAuth sign-in** (recommended) | ChatGPT and Claude (web and desktop), plus other clients Drivetrain registers for you | Anyone whose role has MCP access |
| **API key**                     | Claude Desktop, and other clients that can run `mcp-remote`                           | Drivetrain admins only           |

OAuth sign-in works with ChatGPT and Claude out of the box. To use it with another client, such as Microsoft Copilot or Notion, ask Drivetrain to register that client first ([Connecting other MCP clients](#connecting-other-mcp-clients)). Any client that can run `mcp-remote` can also use the API key method.

{% hint style="info" %}
**Before you start**

* Your Drivetrain plan includes MCP, and your role's **MCP** setting isn't **No access** (admins always have access). See [Set up MCP access](/extending-drivetrain/using-the-drivetrain-mcp-server/set-up-mcp-access.md).
* You know your Drivetrain address. Your MCP endpoint is that address plus `/drive/api/v1/public/atlas/sse`.
  {% endhint %}

### Your MCP endpoint

Use the address you sign in to Drivetrain with:

```
https://[InsertTenantSubdomain].drivetrain.ai/drive/api/v1/public/atlas/sse
```

For example, if you sign in at `acme.drivetrain.ai`:

```
https://acme.drivetrain.ai/drive/api/v1/public/atlas/sse
```

EU accounts sign in at an address ending in `.eu.drivetrain.ai`. Keep the `.eu` part, for example `https://acme.eu.drivetrain.ai/drive/api/v1/public/atlas/sse`.

### Connecting to ChatGPT

#### Installation by an Admin

{% hint style="warning" %}
The **ChatGPT administrator** must be a **user on your Drivetrain account** who is either a Drivetrain admin or has a role with **MCP** access.
{% endhint %}

1. Go to the **ChatGPT web interface**: <https://chatgpt.com>
2. Open the menu in the **bottom-left corner** and navigate to\
   **Settings → Apps → Advanced Settings**.
3. Enable **Developer Mode**.
4. Select **Create app**.
5. Enter a **name and description** for the connector (for example, *Drivetrain*).
6. In the **MCP Server URL** field, paste your Drivetrain MCP endpoint.
7. Keep **OAuth** selected as the authentication method.
8. Check the box confirming **"I understand and want to continue."**
9. Click **Create**.
10. Complete the authentication workflow using your **Drivetrain credentials**.

**Enable the Connector for the Organization**

After creating the connector, publish it for your ChatGPT workspace.

1. Go to **Settings → Apps**.
2. Select the **Drivetrain** app.
3. Click the **three-dot menu**.
4. Select **Publish**.
5. Review the warning message and check **I understand**.
6. Confirm to publish the app for **internal ChatGPT workspace members**.

#### Installation by a User

Once the connector is published, users in the workspace can connect to it.

1. Make sure you're a **user in Drivetrain** and your role has **MCP** access (ask your Drivetrain admin if it doesn't).
2. In ChatGPT, open the **Apps** section in the left sidebar.
3. Locate the **Drivetrain** app published by your administrator.
4. Click **Connect**.
5. Authenticate using your **Drivetrain credentials**.

To use the connector:

1. Start a **new chat**.
2. Click the **+ icon** in the prompt bar.
3. Select the **Drivetrain connector**.
4. Enter your query.

### Connecting to Claude (OAuth)

{% hint style="info" %}
This connector flow requires a **paid Claude Team or Enterprise account**. If you have a personal free Claude account, use the API Key connection method described below instead.
{% endhint %}

#### Installation

The user installing the connector must have **Owner privileges** in the Claude workspace.

1. Go to the **Claude web interface**: <https://claude.ai>
2. Click the **profile icon** in the bottom-left corner.
3. Open **Admin settings**.
4. Select the **Connectors** tab.
5. Click **Add custom connector**.
6. Enter a **name** for the connector.
7. In the **Remote MCP server URL** field, paste your Drivetrain MCP endpoint.
8. Leave **OAuth Client ID** and **OAuth Client Secret** empty.
9. Click **Add**.
10. Click **Connect** and complete authentication using your Drivetrain credentials.

The connection is successful once the connector status shows **Configure**.

**Note:** Claude may move connectors to the **Customize** section in future updates. If this occurs, navigate to:

```
Customize → Connectors → + → Add Custom Connector
```

Then follow the same configuration steps.

#### Signing in

When you click **Connect**, you sign in the same way you sign in to Drivetrain. If your company uses SSO, you're sent to your company's sign-in page. Each person connects with their own Drivetrain account.

### Connecting to Claude (API Key)

{% hint style="info" %}
**Before you start**

* You must be an **admin in Drivetrain**: only admins can see and copy an API key.
* **API Key** appears in **Settings** only if your plan includes API access.
* You need [Node.js](https://nodejs.org/en/download) installed, because the configuration runs `npx mcp-remote`.
* This method works with a **personal free Claude account**. A paid Team or Enterprise plan isn't required.
  {% endhint %}

**Obtain your credentials**

1. In Drivetrain, go to **Settings → API Key.**
2. **Copy** the API key shown.

The key is personal: anything done through it runs as you, with your access. It doesn't expire. **Reset Key** replaces it and stops the old key working immediately, so every client using the old key must be updated.

**Edit the client configuration**

1. In Claude Desktop, go to **Settings → Developer → Edit Config**.
2. **Right-click** and open the config file in **any text editor** (for example, Sublime Text or Notepad).
3. **Copy** **and** **paste** the **Drivetrain MCP server snippet** below into the **config file** based on your machine (Windows or Mac).

{% tabs %}
{% tab title="For PC / Windows Machines" %}

```json
{
  "mcpServers": {
    "Drivetrain": {
      "command": "cmd.exe",
      "args": [
        "/C",
        "C:\\PROGRA~1\\nodejs\\npx.cmd",
        "-y",
        "mcp-remote",
        "https://[InsertTenantSubdomain].drivetrain.ai/drive/api/v1/public/atlas/sse",
        "--header",
        "apikey: <YOUR_API_KEY>"
      ]
    }
  }
}
```

{% endtab %}

{% tab title="For Mac" %}

```json
{
  "mcpServers": {
    "drivetrain": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://[InsertTenantSubdomain].drivetrain.ai/drive/api/v1/public/atlas/sse",
        "--header",
        "apikey: <YOUR_API_KEY>"
      ]
    }
  }
}
```

{% endtab %}
{% endtabs %}

**Replace the placeholders**

**Before saving** the file, make the following substitutions:

1. **\[InsertTenantSubdomain]** → your **Drivetrain subdomain** (for example, `acme`). For an EU account, keep `.eu` in the address (`acme.eu.drivetrain.ai`).
2. **\<YOUR\_API\_KEY>** → the **API key you copied** in step 1.

**Example**

If your Drivetrain subdomain is **"acme"** and your API key is **"abcd1234"**, the config would look like this:

```json
{
  "mcpServers": {
    "drivetrain": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://acme.drivetrain.ai/drive/api/v1/public/atlas/sse",
        "--header",
        "apikey: abcd1234"
      ]
    }
  }
}
```

#### Restart the client

1. **Save** the config file and **restart Claude Desktop.**
2. Once **restarted**, Drivetrain will appear as a **connected MCP server.**

{% hint style="warning" %}
Some accounts accept only OAuth sign-in for MCP. An API key connection to them is refused with an authorization error. Use [Connecting to Claude (OAuth)](#connecting-to-claude-oauth) instead.
{% endhint %}

### Connecting other MCP clients

To use OAuth sign-in with a client other than ChatGPT and Claude, such as Microsoft Copilot or Notion, Drivetrain registers the client for you. Send your Drivetrain account team:

* The client's name
* The client's redirect URI

Until the client is registered, its OAuth sign-in is refused.

You can also use the API key method: any client that accepts the same `mcpServers` configuration as Claude Desktop can use the snippet above. The client must send your key in an `apikey` header.

### Testing the connection

After connecting, open a new chat and try a simple query:

```
Show my Revenue for the last 12 months
```

```
What is my Revenue per FTE?
```

If the connection works, the client lists Drivetrain tools and answers with values from your Drivetrain account. Only the tools your role allows are listed.

If it doesn't, see [Troubleshooting MCP](/extending-drivetrain/using-the-drivetrain-mcp-server/troubleshooting.md).

### Disconnecting

* **Your own connection:** remove or disconnect the Drivetrain connector in your AI client. For an API key connection, also select **Reset Key** in **Settings → API Key** if the key may have been shared.
* **Someone else's access:** see [Set up MCP access](/extending-drivetrain/using-the-drivetrain-mcp-server/set-up-mcp-access.md#revoke-access).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://integrations.drivetrain.ai/extending-drivetrain/using-the-drivetrain-mcp-server/connect-common-mcp-clients.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
