Skip to main content
At AWS re:Invent? We're in Las Vegas Nov 30 – Dec 2. Let's meet in person. Let's meet.Pick a time

Set up the Microsoft Dynamics 365 (CRM) MCP server

Microsoft's remote Dataverse MCP server lets AI agents read and update the records behind the Dynamics 365 CRM apps: accounts, contacts, leads, opportunities, cases, and work orders, all under each user's own Dataverse security roles. This guide covers preparing the Dataverse environment, registering a Microsoft Entra app for OAuth, allowing that app as an MCP client, and connecting the server to Mintive from the catalog.

What this connector covers​

Dynamics 365 Sales, Customer Service, Field Service, and Contact Center store their records in the same Dataverse environment, so one connector reaches all of them:

AppExample tables
Salesaccount, contact, lead, opportunity, quote
Customer Serviceincident (cases), knowledgearticle, queue
Field Servicemsdyn_workorder, bookableresourcebooking
Contact Centermsdyn_ocliveworkitem (conversation history)

The lead, opportunity, and incident tables only exist once the matching Dynamics 365 app is installed in the environment. An environment with only a Dataverse database has the core tables, such as account and contact.

The Copilot features of Dynamics 365 Sales and Customer Service (lead research, opportunity summaries, case summaries) are served by separate Microsoft MCP servers and aren't part of this connector.

Prerequisites​

  • A Mintive admin account
  • A Power Platform environment with a Dataverse database, and the Power Platform administrator role
  • Application Administrator, Cloud Application Administrator, or Global Administrator in the Microsoft Entra tenant
  • Users need a work or school account in the tenant and a Dataverse security role in the environment

Prepare the Dataverse environment​

  1. Sign in to the Power Platform admin center and go to Manage > Environments, then select your environment.

  2. If the environment shows an Add Dataverse card, click Add Dataverse, pick a language and currency, and wait for provisioning to finish. The Settings button only appears once the environment has a Dataverse database.

    Power Platform admin center environment page without a Dataverse database, showing the Add Dataverse card and no Settings button in the top bar
  3. Click Membership in the top bar, then Add me, so your account holds the System Administrator security role inside the environment. The allowed MCP client list is restricted to that role, and being a tenant or Power Platform admin doesn't grant it.

  4. Copy the Environment URL from the Details card, for example contoso.crm.dynamics.com. The region part of the host varies (crm, crm3, crm4, and so on).

    Environment page with a Dataverse database, showing Settings and Membership in the top bar and the Environment URL in the Details card
  5. Click Settings, expand Product, and select Features.

  6. Scroll to Dataverse Model Context Protocol and make sure Allow MCP clients to interact with Dataverse MCP server (GA version) is checked.

    Dataverse Model Context Protocol feature settings with Allow MCP clients to interact with Dataverse MCP server (GA version) checked, the Preview version unchecked, and the Go to Advanced Settings link

Register a Microsoft Entra app​

Microsoft Entra doesn't support dynamic client registration, so an admin registers an app once and Mintive uses its client ID and secret for the OAuth flow.

  1. Go to portal.azure.com > Microsoft Entra ID > App registrations.

    Azure portal Default Directory blade with Microsoft Entra ID highlighted in the left sidebar and App registrations selected under Manage
  2. Click New registration.

    Azure portal App registrations page with the New registration button highlighted in the top toolbar
  3. Enter a name, for example Mintive Dynamics 365, and under Supported account types, select Single tenant only.

  4. Under Redirect URI (optional), select Web and enter the redirect URI for your Mintive region:

    Mintive regionRedirect URI
    UShttps://app.mintmcp.com/oauth/callback
    EUhttps://eu.mintmcp.com/oauth/callback
    Register an application form with a Name, Single tenant account type, and a Web redirect URI of https://app.mintmcp.com/oauth/callback
  5. Click Register.

  6. Go to API permissions > Add a permission > Microsoft APIs, and select Dynamics CRM > Delegated permissions. Under mcp, check mcp.tools, then click Add permissions.

    App registration API permissions page with Add a permission highlighted and the Request API permissions panel for Dynamics CRM showing Delegated permissions and mcp.tools checked under mcp
  7. Click Grant admin consent and confirm, so users are not individually prompted to consent.

    API permissions page with the Grant admin consent for Default Directory button and the grant admin consent confirmation dialog showing Yes and No
  8. Go to Certificates & secrets > Client secrets > New client secret.

    Certificates & secrets page with the Client secrets tab selected and the New client secret button
  9. Enter a description and expiry, then click Add.

    Add a client secret panel with a Description and Expires field and the Add button
  10. Copy the secret Value immediately, because it isn't shown again.

    Client secrets table showing a secret with its Value column and copy button
  11. On the Overview page, copy the Application (client) ID.

    App registration Overview tab showing the Essentials panel with Application (client) ID and Directory (tenant) ID

Allow the app as an MCP client​

Dataverse only accepts MCP connections from client apps on the environment's allowed list, which by default enables Microsoft Copilot Studio.

  1. Back in the Power Platform admin center, open the environment's Settings > Product > Features.

  2. Under Dataverse Model Context Protocol, click Advanced Settings. The Active Allowed MCP Clients list opens in a new tab.

  3. Click New and fill in the form:

    FieldValue
    NameMintive
    Unique Namenew_Mintive
    Application IdThe Application (client) ID from your Entra app
    Is EnabledYes

    The Unique Name must start with a customization prefix such as new_, because Dataverse stores each allowed client as a solution component.

  4. Click Save & Close and confirm the client appears in the list with Is Enabled set to Yes.

    Active Allowed MCP Clients list showing Microsoft's default clients and a Mintive entry with the unique name new_Mintive enabled

Add Microsoft Dynamics 365 (CRM) to Mintive​

Microsoft Dynamics 365 (CRM) is listed in the Mintive catalog. Because Entra doesn't support dynamic client registration, you supply the client ID and secret from the app you registered above.

  1. In Mintive, go to MCP gateway > Catalog.

  2. Find Microsoft Dynamics 365 (CRM) and click Install.

  3. Enter the server URL: your Environment URL followed by /api/mcp, for example https://contoso.crm.dynamics.com/api/mcp.

  4. Under OAuth client, select Use your own OAuth client and leave Override OAuth endpoints unchecked, because the server advertises its own authorization endpoints.

  5. Paste the Application (client) ID in the Client ID field and the secret Value in the Client Secret field. The secret is required for an app registered on the Web platform, even though the field is marked optional.

    Mintive OAuth client settings with Use your own OAuth client selected, Override OAuth endpoints unchecked, and the Client ID and Client Secret fields
  6. Click Install.

Each user signs in with their own Microsoft account on first use, so tool calls run under their identity and Dataverse security roles. Connect one install per environment: to reach several environments, install the connector once for each Environment URL.

Available tools​

Tool groupToolsWhat it does
Discoverysearch, describeFinds tables, skills, scopes, and Custom APIs, and returns table schemas with column logical names
Queryread_query, search_dataRuns Dataverse SQL SELECT queries, and searches record content when Dataverse search is enabled
Recordscreate_record, update_record, delete_recordCreates, updates, and deletes rows, one at a time or in batches
Tablescreate_table, update_table, delete_tableCreates tables, adds columns and choice options, and deletes tables
Filesinit_file_upload, commit_file_upload, file_downloadUploads files to and downloads files from file columns
Skillsupsert_skill, delete_skill, create_skill_resourceManages Dataverse business skills and their resource files
Custom APIsinvoke_apiRuns a Dataverse Custom API by name

The delete tools and invoke_api are marked destructive, and the delete tools require explicit user approval in their arguments. To limit what users can reach, for example to a read-only set of search, describe, and read_query, disable tools with tool customization.

Licensing and Copilot Credits​

Microsoft bills Dataverse MCP tool calls made by agents built outside Microsoft Copilot Studio against Copilot Credits, at the text and generative AI tools (basic) rate, and search_data at a usage-based rate. Users with qualifying Dynamics 365 Premium licenses or a Microsoft 365 Copilot license aren't charged for accessing Dynamics 365 data. See Microsoft's Dataverse MCP billing rates for current pricing.

Troubleshooting​

  • No Settings button on the environment: the environment has no Dataverse database. Click Add Dataverse on the environment page.

  • "You do not have permission to access these records" on Active Allowed MCP Clients: your account doesn't hold the System Administrator security role in the environment. Click Membership > Add me on the environment page, wait a minute, and reload.

    Active Allowed MCP Clients page showing the error You do not have permission to access these records
  • 0x800608ad "Export key attribute uniquename for component allowedmcpclient must start with a valid customization prefix": the Unique Name has no publisher prefix. Use new_Mintive, or the prefix of your environment's default publisher under Solutions > Publishers in Power Apps.

    New Allowed MCP Client form with Unique Name set to Mintive and the error dialog about a valid customization prefix
  • AADSTS7000218 after signing in: the app is registered on the Web platform but Mintive has no client secret. Paste the secret Value in Client Secret.

  • AADSTS700025 after signing in: the redirect URI is registered under Mobile and desktop applications, which can't use a client secret. Move the redirect URI to the Web platform.

  • Sign-in succeeds but the server rejects requests: the app isn't enabled as an allowed MCP client, or the Environment URL in Mintive points at a different environment. Check the Active Allowed MCP Clients list and the server URL.

  • search_data doesn't appear in the tool list: Dataverse search is off for the environment. Turn it on under Settings > Product > Features > Dataverse search.

  • Queries against lead, opportunity, or incident fail: the Dynamics 365 Sales or Customer Service app isn't installed in the environment, so those tables don't exist.

Security considerations​

  • Each user authenticates with their own Microsoft account, so tool calls are bounded by their Dataverse security roles and row-level security.
  • The allowed MCP client list controls which apps can call the server per environment. Set Is Enabled to No on the Mintive entry to cut off access without deleting the Entra app.
  • The server exposes write and schema tools, including table deletion. Disable the tools your team doesn't need with tool customization.
  • Client secrets expire after at most 24 months. Add a new secret and update it in Mintive before the old one expires, or every connection fails.
  • Entra Conditional Access policies apply to these sign-ins the same way they apply to Dynamics 365.
  • All tool calls flow through the Mintive gateway, so they are attributed to individual users in the audit log.

Next steps​