Edit

Share via


Dynamics 365 ERP Analytics MCP for finance and operations apps (preview)

Important

This feature is a preview feature. It's subject to the preview supplemental terms of use. Preview features aren't meant for production use and might have restricted functionality. These features are available before an official release, so that customers can get early access and provide feedback.

The Model Context Protocol (MCP) is an open standard that connects AI agents to various data systems to enhance the relevance of agent responses. The Dynamics 365 ERP Analytics MCP server enables AI agents to access and analyze Business performance analytics data through natural language, unlocking powerful analytical capabilities for finance and operations insights.

Business performance analytics transforms raw transactional data from Dynamics 365 finance and operations into optimized analytical datasets across three key value chains:

  • Record-to-Report - financial data, P&L, budgets.
  • Procure-to-Pay - purchase orders, vendor management.
  • Order-to-Cash - sales orders, invoicing, receivables.

The ERP Analytics MCP server exposes this analytical layer to AI agents through the Model Context Protocol, enabling agents to generate insights, perform analyses, and answer complex business questions using natural language.

Prerequisites

Before using the ERP Analytics MCP server, ensure your environment meets the technical requirements:

  • Dynamics 365 finance and operations - Version 10.0.38 or higher required.
  • Business performance analytics - Version 2.4.3224 or higher required. To install Business performance analytics, see Business performance analytics installation guide.
  • User roles and permissions:
    • Basic user role in Dynamics 365 finance and operations environment.
    • Business performance analytics user role for accessing analytical data.
  • Agent platform - The agent platform on which you're building your agent must support MCP connections.

Natural language to analytics and insights

The ERP Analytics MCP server enables users to ask analytical questions in plain natural language and receive data-driven insights without writing DAX queries or navigating complex reporting interfaces. Simply describe what you want to know, and the AI agent generates the appropriate analysis by:

  • Understanding your analytical intent from natural language.
  • Retrieving the relevant Business performance analytics data model schema.
  • Generating and executing optimized DAX queries.
  • Returning structured insights you can act on.

For example, you can ask "Which vendors have the best on-time delivery performance this quarter?" and immediately receive a ranked analysis with supporting metrics.

How ERP Analytics MCP works

Unlike traditional API approaches that require custom engineering for each analytical operation, the ERP Analytics MCP server provides a small set of powerful tools that enable agents to dynamically query your Business performance analytics data.

Dynamic analytical context

The MCP server dynamically exposes your Business performance analytics data model to agents, including dimensional models, measures, and relationships. The security role of the authenticated user determines which data the agent can access. The system enforces row-level security (RLS) based on user roles, ensuring that agents only work with data the user has permission to access.

When the agent calls tools from the MCP server, it receives the analytical data model schema. This includes fact tables, dimension tables, measures, and relationships - the same analytical layer that powers Business performance analytics reports. Because the schema is dynamically retrieved, any updates to your Business performance analytics environment are automatically available to agents through the MCP framework.

ERP Analytics MCP tools

The following tools are available in the Dynamics 365 ERP Analytics MCP server. The agent orchestration uses these tools to translate natural language prompts into analytical operations.

Tool Description
get-bpa-dataset-schema Retrieves the schema of dimensional models, including tables, columns, measures, and relationships from your Business performance analytics environment.
execute-dax-query Executes DAX (Data Analysis Expressions) queries against your Business performance analytics data with automatic row-level security enforcement.

The agent uses these tools to understand your data model and generate appropriate DAX queries to answer analytical questions. Data is returned as JSON that agents can analyze and present.

Two-tier analytical architecture

The ERP Analytics MCP server leverages a two-tier calculation system:

  • Business performance analytics pre-transforms - Business performance analytics aggregates Dynamics 365 finance and operations transactional data into optimized dimensional models. These transforms currently run twice daily (12-hour intervals).
  • On-demand DAX queries - Agents generate custom calculations based on user questions by analyzing the facts, measures, and dimensional models to construct appropriate DAX queries.

This architecture enables agents to answer complex analytical questions without requiring custom API development for each scenario. The agent can dynamically construct queries for aggregations, trend analysis, comparative analysis, top/bottom performers, anomaly detection, and complex calculations.

Example queries

The MCP server supports natural language queries for analytical operations on yourBusiness performance analytics data:

Financial analysis:

  • What is our profit and loss trend over the last 12 months?
  • Show me our budget variance for this fiscal year.
  • What are our top expense categories this quarter?

Vendor analysis:

  • Which vendors have the best on-time delivery performance?
  • Calculate average payment cycle time by vendor.
  • Identify vendors with the highest return rates.

Customer analysis:

  • Who are our top 10 customers by revenue?
  • Show me customer concentration risk analysis.
  • Calculate average days sales outstanding.

Product analysis:

  • What are our most profitable product lines?
  • Identify products with declining sales trends.
  • Calculate inventory turnover by product category.

Combining with Dynamics 365 ERP MCP

The ERP Analytics MCP server works alongside the Dynamics 365 ERP MCP server to enable powerful agent workflows that combine analytical insights with transactional actions:

  • Insights to action - Explore Business performance analytics data to identify issues, then trigger Dynamics 365 finance and operations actions through the Dynamics 365 ERP MCP server.
  • Action informed by insights - Start with a task in Dynamics 365 finance and operations, then use Business performance analytics data to optimize decisions. For example, requisition management with vendor performance analysis.

Agents can use both servers together to create comprehensive workflows that span from data analysis to business process execution.

See also