# Dynamics 365 MCP Server: Connecting AI Agents to Finance and Operations, Business Central and Dataverse

> Source: https://netray.co/erp-ai/dynamics-365-erp-mcp-server
> Publisher: Netray (netray.co), AI and integration engineering for ERP and manufacturing systems.
> Section: AI for ERP

## Short answer

A Dynamics 365 MCP server exposes Dynamics data and actions as Model Context Protocol tools that AI agents can discover and call. Microsoft has released MCP servers for Dataverse and Dynamics 365 ERP, and you can build custom servers over OData and API v2.0. The key design work is tool scope, identity, approval for writes and logging.

## Kind

use-case

## Erp Family

microsoft

## Erp Products

- Dynamics 365 Finance and Operations
- Dynamics 365 Business Central
- Microsoft Dataverse
- Microsoft Copilot Studio

## Industries

- Manufacturing
- Distribution
- Aerospace

## Region

Global

## Persona

Enterprise Architect

## Eyebrow

Dynamics 365 MCP

## Intro

The Model Context Protocol has become the common way to give AI agents access to business systems. Instead of building a separate plugin for every assistant, you expose a set of tools once, with names, descriptions and input schemas, and any MCP-capable client can use them: Copilot Studio, Claude, desktop assistants, or a private agent running an open-weight model.

Microsoft has adopted MCP across its stack. There are Microsoft MCP servers for Dataverse and for Dynamics 365 ERP, and Copilot Studio can consume MCP servers as tool sources. At the time of writing some of these are in preview and their tool sets are evolving, so check current documentation before designing around a specific tool.

For an enterprise architect, the questions are practical. Should agents use Microsoft's general-purpose servers or a curated custom server with a few safe tools? Under which identity do tool calls run? How are writes held for approval? How do you stop an agent from issuing a heavy query that slows the ERP? And how do private models in your own network use the same tools?

This page explains how MCP fits Dynamics 365, compares Microsoft-provided and custom servers, and sets out a design for safe, auditable agent access to Finance and Operations and Business Central.

## Pain Points

### One-off integrations for every assistant

**Detail:** Each AI assistant needs its own plugin or connector, duplicating effort and security reviews.

### Broad tools expose too much

**Detail:** General-purpose tools that can query any entity or call any action give agents more reach than any job role needs.

### Identity confusion

**Detail:** Tool calls run under a service account, losing the link to the user who asked, which breaks audit and role enforcement.

### ERP performance risk

**Detail:** Agents can issue unfiltered queries over large entities and degrade performance for users.

### Private models left out

**Detail:** Cloud-only connectors do not serve on-prem agents that need the same Dynamics access.

## Use Cases

### Read tools for common questions

**Description:** Expose curated read tools such as get customer balance, get open sales orders, get item availability and get production order status.

**Erp Objects:** F&O data entities for customers, sales order lines, on-hand inventory, production orders; Business Central API v2.0 customers, salesOrders, items

**Outcome:** Agents answer common questions through a small, reviewed tool set.

### Draft-only write tools

**Description:** Expose tools that create drafts, such as a sales quote, a purchase requisition or an unposted journal, never posted documents.

**Erp Objects:** F&O sales quotations, purchase requisitions, general journal lines; Business Central sales quotes and purchase quotes

**Outcome:** Agents can propose work that people confirm in Dynamics.

### Using Microsoft's Dataverse and ERP MCP servers

**Description:** Connect Copilot Studio or other clients to Microsoft's servers for broad access in controlled environments, with role scoping.

**Erp Objects:** Dataverse tables, F&O forms and entities exposed by Microsoft's server

**Outcome:** Fast start for exploration, then curated tools for production.

### Cross-system tools

**Description:** One MCP server combines Dynamics tools with MES, PLM and quality system tools so agents can answer cross-system questions.

**Erp Objects:** Dynamics entities plus MES work orders, PLM items, QMS records

**Outcome:** Agents span the manufacturing landscape through one protocol.

### Private agent access

**Description:** An on-prem agent on an open-weight model uses the same MCP server over the internal network.

**Erp Objects:** MCP server on internal network, F&O local business data or Business Central on-premises APIs

**Outcome:** Air-gapped or restricted environments get agent access without cloud dependencies.

### User-delegated calls

**Description:** Tool calls carry the requesting user's identity through on-behalf-of authentication so Dynamics roles apply.

**Erp Objects:** Entra ID on-behalf-of tokens, Dynamics security roles

**Outcome:** Agents see only what the user may see.

### Query guardrails

**Description:** Tools enforce filters, row limits and timeouts, and route analytical questions to a replica or lake instead of the transactional system.

**Erp Objects:** OData $filter and $top, Synapse Link or Fabric link tables

**Outcome:** Agent traffic does not slow ERP users.

## Architecture

**Overview:** An MCP server sits between agents and Dynamics. It publishes a catalogue of tools, authenticates callers, maps each tool to OData, API v2.0 or Dataverse calls with guardrails, holds writes as drafts and logs everything.

**Layers:**

#### MCP clients

**Detail:** Copilot Studio, desktop assistants, or private agents on open-weight models served with vLLM.

#### MCP server

**Detail:** Microsoft-provided for Dataverse and Dynamics ERP, or custom built with curated tools and JSON schemas.

#### Authentication

**Detail:** Entra ID with on-behalf-of flow so calls run as the user, or a narrowly scoped agent identity for autonomous tasks.

#### Dynamics APIs

**Detail:** F&O OData data entities and custom services; Business Central API v2.0 and custom API pages; Dataverse Web API.

#### Guardrails and audit

**Detail:** Row limits, timeouts, draft-only writes, rate limiting and a log of each call with user, tool, inputs and records.

## Deployment Options

### Microsoft MCP servers

**Fit:** Exploration and Copilot Studio agents in Microsoft cloud.

**Detail:** Enable per environment and scope with security roles; review the exposed tool set before production use.

### Custom MCP server in your Azure tenant

**Fit:** Production agents needing curated tools and cross-system access.

**Detail:** Hosted in Azure Container Apps or App Service with private endpoints to Dynamics.

### On-prem MCP server

**Fit:** F&O local business data, Business Central on-premises or air-gapped plants.

**Detail:** Runs on internal servers next to private models; no external connectivity required.

## Compliance

### Draft-only write tools and user-delegated identity keep posting with accountable people and preserve audit trails.

**Framework:** SOX

### MCP servers in a CUI enclave inherit access control and audit requirements; logs support the customer's evidence.

**Framework:** CMMC and NIST SP 800-171

### Tools exposing technical data are restricted to authorised users and private models.

**Framework:** ITAR and EAR

### Curated tools limit agent reach to what the use case requires.

**Framework:** Least privilege

## Integration Notes

- Start with Microsoft's servers in a sandbox to learn, then decide whether production needs a curated custom server.
- Write tool descriptions carefully; agents choose tools from descriptions, and vague ones cause wrong calls.
- Keep the tool catalogue small; large catalogues consume context and confuse models.
- Enforce $top limits and required filters on every read tool.
- Return record IDs and links with results so users can verify in Dynamics.
- Version tools and test them after each Dynamics release wave.
- Log tool calls centrally with user identity for audit.

## Product Fit

### ERPray

**Why:** Provides governed, read-only-by-default access to Dynamics data for questions and agents, with queries shown and roles respected, on-prem available.

### Custom build

**Why:** Custom MCP servers with curated Dynamics tools, cross-system tools and on-prem deployment for private agents.

## Engagement

### Tool design

**Duration:** 1-2 weeks

**Deliverables:**

- Use case to tool mapping
- Tool schemas and descriptions
- Identity design
- Guardrail rules

### Build

**Duration:** 2-4 weeks

**Deliverables:**

- MCP server with read tools
- Draft-only write tools
- Logging
- Sandbox tests

### Agent integration

**Duration:** 2-3 weeks

**Deliverables:**

- Copilot Studio or private agent connected
- Evaluation set
- Security review
- Performance test

### Operate

**Duration:** Ongoing

**Deliverables:**

- Release wave regression
- Tool usage reports
- Access reviews
- New tools backlog

## Buyer Questions

- Which tools will agents see, and who approved each?
- Do tool calls run as the user or as a service identity?
- How are writes held for approval?
- What limits stop heavy queries?
- Can private models use the same server?
- How are tool calls logged and reviewed?

## Faq

### What is a Dynamics 365 MCP server?

**Answer:** It is a server that implements the Model Context Protocol and exposes Dynamics 365 data and actions as tools AI agents can discover and call. Microsoft provides MCP servers for Dataverse and Dynamics 365 ERP, and organisations can build custom servers over F&O OData, Business Central API v2.0 and the Dataverse Web API.

### Should I use Microsoft's MCP server or build my own?

**Answer:** Microsoft's servers are a fast way to start and work well with Copilot Studio. For production, many organisations add a curated custom server with a small set of reviewed tools, draft-only writes, row limits and cross-system tools. Check the current status and tool set of Microsoft's servers, as some are in preview.

### Can a private model use a Dynamics 365 MCP server?

**Answer:** Yes. MCP is model-agnostic. An agent running an open-weight model on your own GPUs can call an MCP server on your network that talks to Dynamics APIs. This is how air-gapped and restricted environments give agents Dynamics access.

### How do I keep agents from changing data?

**Answer:** Expose read tools by default and only add write tools that create drafts, such as quotes, requisitions or unposted journals. Run calls as the user so their roles apply, and require confirmation in Dynamics for anything that posts.

### Will MCP agents slow down Dynamics?

**Answer:** They can if tools allow unfiltered queries. Enforce filters, row limits and timeouts, cache reference data and send analytical questions to Synapse Link or Fabric link data rather than the transactional system.

### Does Business Central support MCP?

**Answer:** Business Central can be exposed through custom MCP servers over its API v2.0 and custom API pages, and Microsoft has been adding MCP support for Business Central in recent release waves. Check the current release plan for status.

### How is MCP different from Power Platform connectors?

**Answer:** Connectors serve Power Automate, Power Apps and Copilot Studio inside Microsoft's platform. MCP is an open protocol any agent can use, including non-Microsoft and private agents. Many organisations use both.

## Search terms

dynamics 365 mcp server, dynamics 365 erp mcp server, dataverse mcp server, business central mcp server, mcp dynamics 365 finance and operations, copilot studio mcp, d365 mcp connector, model context protocol dynamics 365, ai agent dynamics 365 api, private agent mcp dynamics

---
Talk to an engineer: https://netray.co/contact?intent=erp_ai | Machine catalog: https://netray.co/agent/catalog.json
