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

# Connect the Dynamics 365 (Dataverse) MCP server

> Connect the Microsoft Dataverse MCP server behind Dynamics 365 and Power Apps to Condotta: register a Microsoft Entra app, allow it in the Power Platform admin center, and sign in.

The **Dataverse MCP server** gives AI agents access to the tables and records behind Dynamics 365 and Power Apps. Connect it to Condotta to look up accounts and contacts, create records from other systems, or answer questions about your data.

> [!NOTE]
>
> Condotta connects to this server through a [custom MCP server](https://docs.condotta.ai/connectors/remote-mcp-servers/custom.md) connection, so you add it with **Add custom server** rather than from the connector catalog. Microsoft maintains it and decides which tools it offers; see [Microsoft's guide to connecting non-Microsoft clients to Dataverse MCP](https://learn.microsoft.com/en-us/power-apps/maker/data-platform/data-platform-mcp-other-clients) for the current list.

## Before you start

The remote endpoint requires your own Microsoft Entra app, allowed for your environment.

**1. Enable the Dataverse MCP server**

The server must be enabled for the environment. See [Configure the Dataverse MCP server](https://learn.microsoft.com/en-us/power-apps/maker/data-platform/data-platform-mcp-disable "Microsoft Learn: Configure the Dataverse MCP server").

**2. Copy Condotta's redirect URI**

In Condotta, go to **Connections**, click **Add custom server**, and choose **OAuth 2.0**. Copy the **Redirect URI** shown in the form (for example `https://app.condotta.ai/api/connectors/oauth/callback`).

**3. Register an Entra app**

In the [Microsoft Entra admin center](https://entra.microsoft.com/), go to **Identity > Applications > App registrations** and select **New registration**. Name it (for example `Condotta Dataverse MCP`), choose the supported account types, add a **Web** redirect URI with Condotta's redirect URI, and register. Copy the **Application (client) ID** and **Directory (tenant) ID**.

**4. Create a client secret**

Under **Certificates & secrets**, create a new client secret and copy its value.

**5. Grant the MCP permission**

Under **API permissions**, select **Add a permission > Microsoft APIs > Dynamics CRM**, choose **mcp.tools**, and add it.

**6. Allow the app for your environment**

In the [Power Platform admin center](https://admin.powerplatform.microsoft.com/ "Microsoft: Power Platform admin center"), go to **Manage > Environments**, select the environment, then **Settings > Product > Features**. Under **Dataverse Model Context Protocol**, select **Advanced Settings**, add a client entry with your **Application (client) ID**, set **Is Enabled** to **Yes**, and save.

## Server URL

Use your environment URL with `/api/mcp`:

```
https://<your-org>.crm.dynamics.com/api/mcp
```

Environments outside North America use a regional host such as `crm4.dynamics.com`; copy the host from your environment URL.

## Connect in Condotta

**1. Add a custom server**

In **Add custom server**, enter a **Name** such as `Dataverse` and paste the **Server URL**.

**2. Choose Auto authentication**

Choose **Auto** and click **Save & connect**. Because Dataverse needs your own Entra app, the **OAuth 2.0** form opens with Microsoft's sign-in endpoints already filled in.

**3. Enter your app's credentials**

Paste the **Application (client) ID** as **Client ID** and the secret value as **Client Secret**, then click **Save & connect**.

**4. Sign in with Microsoft**

Microsoft opens its sign-in page. Sign in with an account that can use the environment and accept the permissions. Condotta marks the connection **Connected**.

If the form does not prefill, choose **OAuth 2.0** and enter the [Microsoft identity platform endpoints](https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow) for your tenant: **Authorization URL** `https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/authorize` and **Token URL** `https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token`, with **Scopes** `https://<your-org>.crm.dynamics.com/.default offline_access`.

## Use it in a workflow

Add a **Connector** node, pick your Dataverse server under **Custom Servers**, and choose **Agent Mode** or **Direct Mode**. See [Use a custom server in a workflow](https://docs.condotta.ai/connectors/remote-mcp-servers/custom.md#use-a-custom-server-in-a-workflow).

## Troubleshooting

> [accordion] Sign-in succeeds but calls are rejected
>
> The app's client ID is not enabled under **Dataverse Model Context Protocol > Advanced Settings** for this environment, or the **mcp.tools** permission is missing.

> [accordion] Admin consent is required
>
> Your tenant requires an administrator to consent to the app's permissions. Ask an Entra admin to grant consent on the app's **API permissions** page.

> [accordion] The connection stops refreshing
>
> Make sure **Scopes** includes `offline_access`, then click **Reconnect**.

## Learn more

* [Connect to Dataverse with MCP in non-Microsoft clients](https://learn.microsoft.com/en-us/power-apps/maker/data-platform/data-platform-mcp-other-clients)
* [Connect to Dataverse with model context protocol](https://learn.microsoft.com/en-us/power-apps/maker/data-platform/data-platform-mcp "Microsoft Learn: Connect to Dataverse with model context protocol")

> [card] [Try this free for 14 days](https://preview.condotta.ai/signup)
>
> Start a 14-day trial on Band 1. At day 14, choose your band, or stop.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.