# Connect Claude Desktop for Yourself

Add your Dtwo gateway to Claude Desktop as a custom connector, just for yourself.

## Overview

This guide adds your Dtwo gateway to Claude Desktop as a custom connector, just for you.

This works on Free, Pro, and Max plans. On Team and Enterprise plans, members can't add custom connectors of their own, so an Owner adds Dtwo for everyone. See [Roll Out Dtwo in Claude Desktop](/docs/connect-client-claude-desktop).

## Set up Claude Desktop

Select how your gateway signs people in.

<div class="doc-tabs" data-tabs>

<div class="doc-tablist doc-tablist-cards" role="tablist" aria-label="Sign-in type">
<button type="button" role="tab" class="doc-tab" data-tab="dtwo" aria-selected="true"><img src="/favicon.svg" alt="" width="36" height="36" data-no-lightbox>Dtwo authentication</button>
<button type="button" role="tab" class="doc-tab" data-tab="entra"><img src="/logos/azure.svg" alt="" width="36" height="36" data-no-lightbox>Microsoft Entra ID</button>
<button type="button" role="tab" class="doc-tab" data-tab="okta"><img src="/logos/okta.png" alt="" width="36" height="36" data-no-lightbox>Okta</button>
</div>

<div class="doc-tabpanel" data-panel="dtwo" role="tabpanel">

<p class="doc-step">Step 1: Add the gateway to Claude Desktop</p>

1. In Claude Desktop, open **Customize → Connectors** and click **Add custom connector**.
2. Name the connector after your gateway and enter your gateway's MCP URL. Copy it from your gateway's **Overview** tab in the Dtwo UI. It must start with `https://`.
3. Click **Add**, then **Connect**, and sign in with your Dtwo account when your browser opens.
4. Start a new chat, click **+** in the message box, choose **Connectors**, and switch your gateway's connector on. A connector that's added but switched off is never used.

<p class="doc-step">Step 2: Verify the connection</p>

1. In a new chat, ask Claude which tools it has through your gateway. It should list the tools from the MCP servers behind your gateway.

</div>

<div class="doc-tabpanel" data-panel="entra" role="tabpanel">

<p class="doc-step">Step 1: Get Claude Desktop's client ID from Microsoft Entra ID</p>

If you've already registered Claude Desktop as an app in Microsoft Entra ID, go to **App registrations**, open the Claude Desktop app, and copy the **Application (client) ID** from its **Overview** page. This is your `<ClientId>`.

If you haven't registered Claude Desktop in Microsoft Entra ID yet, follow [Register Claude Desktop in Microsoft Entra ID](/docs/register-claude-desktop-entra), then come back here.

<p class="doc-step">Step 2: Add the gateway to Claude Desktop</p>

For Free, Pro, and Max plans.

1. In Claude Desktop, open **Customize → Connectors** and click **Add custom connector**.
2. Name the connector after your gateway and enter your gateway's MCP URL. Copy it from your gateway's **Overview** tab in the Dtwo UI. It must start with `https://`.
3. Choose **Use your own OAuth client** (or open **Advanced settings**, depending on your version) and enter the `<ClientId>` you registered with your identity provider.
4. Click **Add**, then **Connect**, and sign in when your browser opens.
5. Start a new chat, click **+** in the message box, choose **Connectors**, and switch your gateway's connector on. A connector that's added but switched off is never used.

<p class="doc-step">Step 3: Verify the connection</p>

1. In a new chat, ask Claude which tools it has through your gateway. It should list the tools from the MCP servers behind your gateway.

</div>

<div class="doc-tabpanel" data-panel="okta" role="tabpanel">

<p class="doc-step">Step 1: Get Claude Desktop's client ID from Okta</p>

If you've already registered Claude Desktop as an app in Okta, go to **Applications and Resources → Applications**, open the Claude Desktop app integration, and copy the **Client ID** from its **General** tab. This is your `<ClientId>`.

If you haven't registered Claude Desktop in Okta yet, follow [Register Claude Desktop in Okta](/docs/register-claude-desktop-okta), then come back here.

<p class="doc-step">Step 2: Add the gateway to Claude Desktop</p>

For Free, Pro, and Max plans.

1. In Claude Desktop, open **Customize → Connectors** and click **Add custom connector**.
2. Name the connector after your gateway and enter your gateway's MCP URL. Copy it from your gateway's **Overview** tab in the Dtwo UI. It must start with `https://`.
3. Choose **Use your own OAuth client** (or open **Advanced settings**, depending on your version) and enter the `<ClientId>` you registered with your identity provider.
4. Click **Add**, then **Connect**, and sign in when your browser opens.
5. Start a new chat, click **+** in the message box, choose **Connectors**, and switch your gateway's connector on. A connector that's added but switched off is never used.

<p class="doc-step">Step 3: Verify the connection</p>

1. In a new chat, ask Claude which tools it has through your gateway. It should list the tools from the MCP servers behind your gateway.

</div>

</div>

---

Having trouble? Email [support@dtwo.ai](mailto:support@dtwo.ai).