> For the complete documentation index, see [llms.txt](https://docs.datalogz.io/guides/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.datalogz.io/guides/datalogz-mcp-servers/connecting-to-an-mcp-server.md). Agents can also search and read this documentation through its [MCP server](https://docs.datalogz.io/guides/~gitbook/mcp).

# Connecting to an MCP Server

The Control Tower MCP server speaks the standard Model Context Protocol, so any compliant client can connect to it ([Claude Desktop](#claude-desktop), [Claude Code](#claude-code), Cursor, VS Code, [Databricks Genie](#databricks-genie) or your own agent built on an MCP SDK).

#### Before you start

* **At least one connector onboarded and scanned.** The server reports on data Control Tower has already collected; it does not scan anything itself. See the Connector Onboarding Guide.
* **A Control Tower credential.** The agent inherits that credential's connector scope and it sees exactly what the credential is entitled to see, and nothing else.
* **Admin access to AI Workspaces.** You need to be able to add new connectors to Claude, Copilot, Genie or Microsoft 365 Copilot
* For **Microsoft 365 Copilot**, access to the [Teams Developer Portal](https://dev.teams.microsoft.com). The admin-center method also requires the **Global Administrator** or **AI Administrator** role.

Connect your AI client to Control Tower with this URL:

```
https://app.datalogz.io/mcp
```

When using clients that support DCR, use the HTTPS URL supplied by Datalogz. You do not need a client ID, client secret, or API token. When prompted, sign in with a verified Control Tower administrator account and approve access.

The examples use `https://app.datalogz.io`. If Datalogz supplied a different URL for your deployment, use that origin consistently for the MCP and OAuth endpoints.

### Claude Desktop

1. Open **Customize > Connectors**.
2. Select **Add custom connector** and enter the Control Tower MCP URL.
3. Leave the advanced OAuth client ID and secret fields empty, then select **Add**.
4. Select **Connect** and complete the browser sign-in.

For Team and Enterprise plans, an organization owner must first add the connector from **Organization settings > Connectors > Add > Custom > Web**. Members can then connect it from **Customize > Connectors**.

Enable Control Tower for a conversation from **+ > Connectors**.

### Claude Code

Add Control Tower for all your projects:

```bash
claude mcp add --transport http --scope user \
  control-tower "https://app.datalogz.io/mcp"
```

In Claude Code, run `/mcp`, select `control-tower`, and complete the browser sign-in.

### ChatGPT desktop app

In newer app versions, MCP management is not shown in the Settings sidebar:

1. From the main app open the command menu with `Command+K` on macOS or `Ctrl+K` on Windows and Linux.
2. Search for `MCP` and select **MCP Servers**.
3. Select **Add Server**.
4. Name it `Control Tower`, choose **Streamable HTTP**, enter the Control Tower MCP URL, `https://app.datalogz.io/mcp` and select **Save**.
5. Select **Authenticate**, complete the browser sign-in, and restart the app if prompted.

If the MCP command is unavailable, configure the shared MCP connection from a terminal and then restart the app (see "Codex" below)

### Codex

Add the server and start OAuth sign-in:

```bash
codex mcp add control-tower --url "https://app.datalogz.io/mcp"
codex mcp login control-tower
```

Skip these commands if you already added the server for the ChatGPT desktop app.

Run `codex mcp list`, or use `/mcp` in the Codex terminal UI, to confirm the connection. Codex and the ChatGPT desktop app share MCP configuration on the same computer.

### Microsoft Copilot Studio

1. Open your agent's **Tools** page and select **Add a tool > New tool > Model Context Protocol**.
2. Enter a name, a short description, and the Control Tower MCP URL.
3. For authentication, select **OAuth 2.0 > Dynamic discovery**.
4. Select **Create**, then **Next**.
5. Create a new connection, complete the browser sign-in, and select **Add to agent**.

### Microsoft 365 Copilot

There are two methods possible at the moment:

* **Microsoft 365 admin center:** Add the MCP server as a custom connector.
* **Custom plugin:** Upload a plugin that includes the MCP connection, for example in Copilot Cowork.

#### 1. Create an OAuth client in Datalogz

1. In Control Tower, open **Organization > OAuth Clients** and select **New OAuth Client**.
2. Enter a name, such as `Microsoft 365 Copilot`.
3. Set **Type** to **Interactive PKCE**.
4. Set **Client authentication** to **Confidential (client secret)**.
5. Under **Redirect URIs**, select the **Microsoft 365 Copilot** preset or enter this exact URL:

   ```
   https://teams.microsoft.com/api/platform/v1.0/oAuthRedirect
   ```
6. Select **Create** and securely save the **Client ID** and **Client Secret**. The secret is shown only once.

#### 2. Register OAuth in Microsoft

In the [Teams Developer Portal](https://dev.teams.microsoft.com), open **Tools > OAuth client registration** and create a registration using these values. This follows Microsoft's [OAuth configuration guide](https://learn.microsoft.com/en-us/microsoft-365/copilot/extensibility/plugin-authentication-oauth#use-the-teams-developer-portal).

<table data-search="false"><thead><tr><th>Field</th><th>Value</th></tr></thead><tbody><tr><td>Registration name</td><td><code>Datalogz Control Tower</code></td></tr><tr><td>Base URL</td><td><code>https://app.datalogz.io/mcp</code></td></tr><tr><td>Restrict usage by organization</td><td><strong>My organization only</strong></td></tr><tr><td>Restrict usage by Teams app</td><td><strong>Any Teams app</strong></td></tr><tr><td>Client ID</td><td>The client ID created in Datalogz</td></tr><tr><td>Client secret</td><td>The client secret created in Datalogz</td></tr><tr><td>Authorization endpoint</td><td><code>https://app.datalogz.io/api/v0/oauth/authorize</code></td></tr><tr><td>Token endpoint</td><td><code>https://app.datalogz.io/api/v0/oauth/token</code></td></tr><tr><td>Refresh endpoint</td><td><code>https://app.datalogz.io/api/v0/oauth/token</code></td></tr><tr><td>Scope</td><td><code>ct:mcp</code></td></tr><tr><td>Enable Proof Key for Code Exchange (PKCE)</td><td><strong>On</strong> — required by Datalogz</td></tr><tr><td>Client password authentication method</td><td><strong>Request body parameters (default)</strong></td></tr></tbody></table>

Select **Save** and copy the **OAuth client registration ID** generated by Microsoft. Use this ID when adding the connector or configuring the plugin. It is different from the Datalogz client ID entered above.

#### 3. Choose a connection method

**Method 1: Add the MCP server in the admin center**

1. Open [Add a connector in the Microsoft 365 admin center](https://admin.cloud.microsoft/#/copilot/connectors/add).
2. Under **Connect to MCP server**, select **Add**. You can also reach this page through **Copilot > Connectors > Gallery > Created by your org > Create a new connector**.
3. Complete the form:

<table data-search="false"><thead><tr><th>Field</th><th>Value</th></tr></thead><tbody><tr><td>Display name</td><td><code>Datalogz Control Tower</code></td></tr><tr><td>Description</td><td>Query BI inventory, metadata, lineage, and usage data collected by Datalogz Control Tower.</td></tr><tr><td>MCP endpoint URL</td><td><code>https://app.datalogz.io/mcp</code></td></tr><tr><td>Developer name</td><td><code>Datalogz</code></td></tr><tr><td>Website URL</td><td><code>https://docs.datalogz.io/guides/datalogz-mcp-servers/connecting-to-an-mcp-server</code></td></tr><tr><td>Privacy policy URL</td><td><code>https://www.datalogz.io/our-privacy-policy</code></td></tr><tr><td>Terms of use URL</td><td><code>https://www.datalogz.io/our-eula</code></td></tr><tr><td>Authentication type</td><td><strong>OAuth 2.0</strong></td></tr><tr><td>OAuth registration ID</td><td>The Microsoft OAuth client registration ID from step 2</td></tr></tbody></table>

4. Review and accept the required **Notice**, then save the connector.
5. Open **Your connections**, select the connector, and configure **Staged rollout** for the users or groups who need access.

For deployment and access controls, see Microsoft's [custom federated connector guide](https://learn.microsoft.com/en-us/microsoft-365/copilot/connectors/set-up-custom-federated-connectors).

**Method 2: Upload a custom plugin**

Follow Microsoft's [plugin development guide](https://learn.microsoft.com/en-us/copilot/cowork/cowork-plugin-development) to package the Datalogz MCP connection. Use `https://app.datalogz.io/mcp` as the server URL and configure **OAuthPluginVault** with the Microsoft OAuth client registration ID from step 2.

Upload the plugin ZIP using Microsoft's [Copilot Cowork upload instructions](https://learn.microsoft.com/en-us/copilot/cowork/cowork-plugins#upload-your-own-plugin-package), or have an administrator [deploy it through the admin center](https://learn.microsoft.com/en-us/microsoft-agent-365/admin/manage-plugins-skills-mcp-servers#upload-plugins-or-skills).

#### 4. Connect and verify

1. Open Copilot and start a new conversation. In Cowork, enable the Datalogz plugin in **Sources & Skills**.
2. Select **Connect** when prompted, sign in with your verified Control Tower administrator account, and approve access.

Confirm that Copilot retrieves the connector list from Datalogz. The server reports on data from your latest Control Tower scans.

#### Troubleshooting

* **Sign-in fails:** Check the exact redirect URI, Datalogz client ID and secret, and that PKCE is enabled. The Datalogz client must be **Interactive PKCE** with **Confidential (client secret)** authentication.
* **The connector or plugin is unavailable:** Ask your Microsoft 365 administrator to check deployment and user access. Refresh Copilot or start a new conversation after changes.
* **Access has expired or been revoked:** Reconnect and approve access in Datalogz again.

### Databricks Genie

Register the MCP server in Unity Gateway

1. In your Databricks workspace, open **Unity Gateway** and select the **MCPs** tab.
2. Click **+ MCP** and choose **Connect an existing MCP server**.
3. Choose a **catalog** and **schema**, and enter an **MCP name**, for example `datalogz_control_tower`. The name can't be changed later.
4. Click **Create new connection** and fill in the fields:

| Field                          | Value                                                                                                                                 |
| ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------- |
| **MCP server URL**             | `https://app.datalogz.io/mcp`                                                                                                         |
| **Authentication method**      | OAuth Machine to Machine                                                                                                              |
| **Client ID**                  | The [client ID](https://docs.datalogz.io/guides/organizational-setup/connected-apps-oauth-clients.md) from Datalogz Control Tower     |
| **Client secret**              | The [client secret](https://docs.datalogz.io/guides/organizational-setup/connected-apps-oauth-clients.md) from Datalogz Control Tower |
| **Token endpoint**             | `https://app.datalogz.io/api/v0/oauth/token`                                                                                          |
| **OAuth scope**                | `ct:mcp`                                                                                                                              |
| **Credential Exchange Method** | Header only                                                                                                                           |

5. Click **Create & load tools**. Databricks requests a token from Control Tower and lists the available tools.
6. Under **Tools**, select the Control Tower tools you want to make available.
7. Click **Create MCP Service**.
8. Select **Genie One** or **Genie Code**.

<div data-with-frame="true"><figure><img src="https://1435452537-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI51V8nP3ZjMKt2bCO9HR%2Fuploads%2FuWzDrzbclFJcvVWCllL1%2FScreenshot%202026-11-02%20at%2015.54.00.png?alt=media&amp;token=a8a4b23a-ce89-460a-8b93-0feb013871b6" alt="" width="375"><figcaption></figcaption></figure></div>

Your server is now available at:

```
https://<your-workspace-hostname>/ai-gateway/mcp-services/<catalog>.<schema>.<mcp-name>
```

{% hint style="info" %}
**The MCP server is available for Genie One and Genie Code only:**

* Genie One and Genie Code are general agents. They plan, call tools and string steps together, so they can take MCP servers, Datalogz included.
* A Genie Agent is still a text-to-SQL space. It’s curated over at most 50 Unity Catalog tables, with your instructions and example SQL. Its “tools” are those tables, and nothing I found lets you attach an external MCP server to one.
  {% endhint %}

### Manually create a client

In Datalogz Control Tower:

1. Go to **Settings** > **OAuth Clients**.
2. Click **New OAuth Client**.
3. Fill out the following fields:

<figure><img src="https://1435452537-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI51V8nP3ZjMKt2bCO9HR%2Fuploads%2FgNzo1NA41qn52aQrqZpK%2FScreenshot%202026-11-11%20at%2002.01.51.png?alt=media&amp;token=194e1fce-af3f-47ef-b4fa-2f80be770f5a" alt="" width="375"><figcaption></figcaption></figure>

<table><thead><tr><th width="262.61328125">Value</th><th>Description</th></tr></thead><tbody><tr><td><strong>Name</strong></td><td>The name you choose for the Client.</td></tr><tr><td><strong>Type</strong></td><td>You can create two types of OAuth clients. For the MCP oAuth client, you select the <strong>Interactive PKCE</strong> type.</td></tr><tr><td><strong>Client authentication</strong></td><td>Some solutions, such as <strong>Microsoft 365 Copilot</strong> require confidential credentials and do not work with public ones</td></tr><tr><td><strong>Redirect URIs</strong></td><td>Select or fill out the callback URIs. If you want to add the MCP server to Claude or Copilot, you can select the predefined URIs.</td></tr></tbody></table>

4. Click **Create**.
5. Copy the **Client ID**.

In Claude:

1. Go to **Organization Settings**.
2. Click **Connectors** > **+ Add**
3. Select **Custom** and then **Web**.
4. Fill out the following fields:

<figure><img src="https://1435452537-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI51V8nP3ZjMKt2bCO9HR%2Fuploads%2FGOahfj8gXjGWNKbFF0Y7%2FScreenshot%202026-08-20%20at%2016.20.09.png?alt=media&amp;token=0c79761d-91da-482a-9418-8283d580d4eb" alt="" width="375"><figcaption></figcaption></figure>

<table><thead><tr><th width="262.61328125">Value</th><th>Description</th></tr></thead><tbody><tr><td><strong>Name</strong></td><td>The name you choose for the MCP server.</td></tr><tr><td><strong>Remote MCP server URL</strong></td><td>Type https://app.datalogz.io/mcp</td></tr></tbody></table>

{% embed url="<https://app.arcade.software/share/XeB1Bds0IWBRd1hBn2ES>" %}

### Troubleshooting

* Confirm that the URL uses **HTTPS** and ends in `/mcp`.
* **If authentication expires or is revoked**, reconnect the server and sign in again.
* **If approval is denied**, ask a Control Tower account administrator to complete the connection.
* **If a tool returns nothing at all.** Your credential may have no access to the connector in question.&#x20;
* **If a platform-specific tool refuses your asset.** Usage, viewer, workspace-access and capacity tools are Power BI only. Similarity is Power BI and Tableau. Downstream impact is Power BI, Tableau and Sigma. See the Tool reference.
* **If the numbers look stale.** The server reads what the last connector scan wrote. Check scan status in the app rather than retrying the query.

For client-specific details, see the official setup guides for [Claude connectors](https://claude.com/docs/connectors/custom/remote-mcp), [Claude Code](https://code.claude.com/docs/en/mcp), [ChatGPT and Codex](https://learn.chatgpt.com/docs/extend/mcp), and [Microsoft Copilot Studio](https://learn.microsoft.com/en-us/microsoft-copilot-studio/mcp-add-existing-server-to-agent).


---

# 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://docs.datalogz.io/guides/datalogz-mcp-servers/connecting-to-an-mcp-server.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.
