In short: AI agents connect to Dynamics 365 Finance & Operations through Microsoft’s Dynamics 365 ERP MCP server, which is built into recent versions of F&O. A few Microsoft platforms, such as Copilot Studio and Visual Studio Code, are allowed by default. Any other agent, such as Claude, ChatGPT or your own, is registered as an app in Microsoft Entra ID, added to Allowed MCP clients in Dynamics 365, and pointed at the server address (
https://<your-environment>.operations.dynamics.com/mcp). Every user signs in as themselves, and an agent can never do more than their security roles allow.
AI agents are only as useful as the data they can reach. Until recently, connecting one to Dynamics 365 Finance & Operations meant building custom APIs or exporting data. Microsoft has changed that with a Model Context Protocol (MCP) server built into the ERP itself. This guide explains how to connect AI agents to Dynamics 365 Finance and Operations: what you need, the setup steps for different platforms, and the security and cost questions to settle first.
What is the Dynamics 365 ERP MCP server?
The Model Context Protocol is an open standard that lets AI assistants and agents use tools and data from other systems. Many AI platforms support it, so one server can serve several of them. Microsoft’s Dynamics 365 ERP MCP server exposes Finance and Supply Chain Management to agents through three kinds of tools:
- Data tools to find and read records
- Form tools to open forms, read fields and work through the user interface the way a person would
- Action tools to run business logic, such as creating or updating records
Because the server works through the application, not straight to the database, business logic and validations still run, and every agent is limited by the user’s security roles. Microsoft states that an authenticated user can never do more through the MCP server than they can in the Dynamics 365 client.
Which AI agents can connect?
| Platform | How it connects |
|---|---|
| Microsoft Copilot Studio | Allowed by default; add the MCP server as a tool in your agent |
| Visual Studio Code | Allowed by default, for developers using MCP-enabled AI tools |
| Microsoft Finance Agent and Cowork | Allowed by default |
| Microsoft Foundry agents | Register an app and allow it; Microsoft documents this setup |
| Claude, ChatGPT and other assistants | Register an app and allow it, then add the server as a custom connector where the platform supports remote MCP servers |
| Your own agents | Register an app and allow it, then connect with any MCP client library |
The rest of this guide covers the steps for platforms that are not allowed by default.
What you need before you start
| Requirement | Details |
|---|---|
| Dynamics 365 version | 10.0.47, 10.0.46 PQU-2 or 10.0.45 PQU-7, or later |
| Environment | Tier 2 or higher, or a Unified Developer Environment. Cloud-hosted environments (CHE) are not supported |
| MCP server feature | Dynamics 365 ERP Model Context Protocol server in Feature management (enabled by default) |
| Microsoft Entra ID | Rights to register an application and grant API permissions in your tenant |
| AI platform | A plan that supports custom remote MCP servers, ideally with an admin who can add the connection once for the whole organization |
| Language | The MCP server currently supports US English (en-us) |
Start in a sandbox. You want to see what an agent can see and do before anyone connects it to production.
Step 1: Check the MCP server is enabled
In your Dynamics 365 environment, open Feature management and confirm the Dynamics 365 ERP Model Context Protocol server feature is enabled. Note your environment’s address, for example https://contoso-sandbox.operations.dynamics.com. The MCP server address is the same address with /mcp at the end.
Step 2: Register an app for the agent in Microsoft Entra ID
Each AI platform needs its own identity in your tenant, so the Dynamics 365 administrator can approve it explicitly.
- In the Microsoft Entra admin center, create a new app registration for the platform.
- Add the platform’s sign-in redirect address, from its documentation. For example, Claude uses
https://claude.ai/api/mcp/auth_callback. - Under API permissions, add the Dynamics ERP permission for MCP tools (
mcp.tools, as listed in Microsoft’s documentation) and grant admin consent if your policies require it. - Create a client secret if the platform needs one, and store it securely.
Keep the Application (client) ID. You need it in the next two steps.
Step 3: Allow the client in Dynamics 365
Go to System administration > Setup > Allowed MCP clients, add the client ID from step 2, and set Allowed to Yes. Only clients on this list can use the MCP server, which gives you a clear on/off switch for each AI platform.
Step 4: Add the connection in your AI platform
The details differ by platform, but the pattern is the same: add the MCP server address, choose OAuth sign-in, and enter the client ID (and secret) from step 2. For example:
- Claude: on Team or Enterprise plans, an owner adds a custom connector in Organization settings > Connectors, chooses to use their own OAuth client, and members then connect with their own Microsoft accounts. Developers using Claude Code can run
claude mcp add --transport http d365 https://<your-environment>.operations.dynamics.com/mcpand sign in with/mcp. - ChatGPT and other assistants: use the platform’s custom connector or remote MCP settings, where available on your plan.
- Microsoft Foundry: add the MCP server as a tool connection, following Microsoft’s Foundry guide.
- Custom agents: connect with an MCP client library and Microsoft Entra sign-in in your own code.
Most platforms reach the MCP server from their own cloud, so the address must be reachable over the internet on HTTPS. Standard Dynamics 365 cloud environments are.
Step 5: Test with read-only questions
Sign in as a test user with a typical role and start with questions such as:
- “Which vendor invoices over $10,000 are still unpaid?”
- “Show open purchase orders for vendor US-104 and their expected delivery dates.”
- “What is the on-hand quantity of item 1000 in each warehouse?”
Then repeat with a user who has fewer permissions, and confirm the answers change accordingly. Only after that should you test actions that create or change data, and only for roles where that makes sense.
Security: what to settle before going live
- Security roles are the real control. An agent inherits each user’s access. If users have broad rights today, the agent will too, so review your security roles first.
- Approve platforms one by one. Each AI platform is a separate entry in Allowed MCP clients, so you decide exactly which tools may connect, and can switch any of them off.
- Decide on actions. Many companies start read-only and add selected actions later, with clear rules about when a person must confirm a change.
- No shared accounts. Every request needs a signed-in user or a defined agent identity. There is no anonymous or shared service path, which keeps the audit trail clean.
- Data handling. Review how each AI platform handles your data, and agree an AI use policy that covers which information may be used and how outputs are checked.
What does it cost?
Besides each AI platform’s own subscription, Microsoft bills MCP tool calls from clients other than Copilot Studio in Copilot credits, at 0.1 credits per tool call. Copilot Studio bills its tool calls as agent actions instead. Users with Finance Premium or Supply Chain Management Premium licenses are exempt from the MCP tool charge for other clients. Users still need the normal Dynamics 365 licenses for what they access. See our Dynamics 365 licensing guide or estimate costs with the license cost calculator.
Current limitations
- US English only for the MCP server’s metadata and guidance
- Some controls are not supported, such as calendars, organization charts, images and file uploads
- Grid filters support “matches” only, not ranges like “between”
- The server is unavailable during environment servicing windows
Microsoft is developing the server quickly, so check its documentation for the latest list.
Frequently asked questions
Which AI agents can connect to Dynamics 365 Finance & Operations?
Copilot Studio, Visual Studio Code and a few other Microsoft platforms are allowed by default. Other agents that support remote MCP servers, such as Claude, ChatGPT, Microsoft Foundry agents or your own, can connect after an administrator registers them in Microsoft Entra ID and adds them to Allowed MCP clients.
Do we need to give an AI vendor or partner our Dynamics 365 passwords?
No. Each user signs in with their own Microsoft account through Entra ID, and the agent acts with that user’s permissions. Avoid any setup that asks for shared credentials.
Can AI agents update data in Dynamics 365?
Yes, if the signed-in user has permission, because the MCP server includes action tools. Business logic and validations still apply. Most companies start read-only.
Does this work with Dynamics AX 2012?
No. The MCP server is part of Dynamics 365 Finance & Operations in the cloud. AX 2012 customers need to upgrade to Dynamics 365 first.
How is this different from Copilot in Dynamics 365?
Copilot is built into the Dynamics 365 interface. Connecting agents through MCP lets people work with ERP data from the AI tools they already use, alongside their documents and other systems, under the same security model.
Next steps
Connecting an agent is a short technical task. Getting security roles, use cases and governance right is what makes it safe and useful. We connect AI agents to Dynamics 365 end to end, starting in your sandbox. Not sure your company is ready? Take our free Copilot readiness assessment or request a free Dynamics 365 analysis.