Skip to main content
The Dataverse MCP server gives AI agents access to the tables and records behind Dynamics 365 and Power Apps. Connect it to Spojit to look up accounts and contacts, create records from other systems, or answer questions about your data.
Spojit connects to this server through a custom MCP server 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 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.
2

Copy Spojit's redirect URI

In Spojit, go to Connections, click Add custom server, and choose OAuth 2.0. Copy the Redirect URI shown in the form (for example https://miraxa.spojit.com/api/connectors/oauth/callback).
3

Register an Entra app

In the Microsoft Entra admin center, go to Identity > Applications > App registrations and select New registration. Name it (for example Spojit Dataverse MCP), choose the supported account types, add a Web redirect URI with Spojit’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, 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:
Environments outside North America use a regional host such as crm4.dynamics.com; copy the host from your environment URL.

Connect in Spojit

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. Spojit marks the connection Connected.
If the form does not prefill, choose OAuth 2.0 and enter the Microsoft identity platform endpoints 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.

Troubleshooting

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.
Make sure Scopes includes offline_access, then click Reconnect.

Learn more