Enterprise2-minute read7 languages

How to Connect Microsoft Dynamics 365 to MCP

Integrate Dynamics 365 Sales, Customer Service, and Finance with AI agents via MCP. Manage accounts and opportunities through the AnythingMCP dashboard.

HCBy HelpCode teamUpdated 2 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Summary

Integrate Dynamics 365 Sales, Customer Service, and Finance with AI agents via MCP. Manage accounts and opportunities through the AnythingMCP dashboard.

Connect Dynamics 365 to AI Agents

Microsoft Dynamics 365 is a leading ERP and CRM platform. By connecting D365 to MCP with AnythingMCP, AI agents can access accounts, opportunities, cases, and financial data through natural language.

Ready-made connectors: AnythingMCP has connectors for Dynamics 365 Business Central and Dynamics 365 Sales, which also covers other Dataverse apps. You sign in with your Microsoft account and need none of the steps below. The steps below are for building your own connector to other Dynamics 365 APIs.

Step-by-Step Guide

Step 1: Deploy AnythingMCP

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Step 2: Create a REST Connector

Open the AnythingMCP dashboard at http://localhost:3000 and create a new REST connector. Set the base URL to your Dynamics 365 Web API endpoint (e.g., https://yourorg.crm.dynamics.com/api/data/v9.2).

Step 3: Configure Authentication

In the connector settings, configure OAuth 2.0 with your Azure AD App Registration credentials. Use Client Credentials flow with appropriate Dynamics 365 API permissions.

Step 4: Import and Customize Tools

Configure endpoints for accounts, opportunities, leads, invoices, and cases in the dashboard. Customize tool names and descriptions for AI agent clarity.

Step 5: Test and Connect

Test each tool in the dashboard, then configure your MCP client:

{
  "mcpServers": {
    "dynamics365": {
      "url": "http://localhost:4000/mcp"
    }
  }
}

AI Agent Use Cases

  • "Show me all opportunities closing this quarter over $100k"
  • "Create a lead for Sarah at GlobalTech, industry: Technology"
  • "What are the top 10 accounts by revenue?"
  • "Open a high-priority service case for Contoso Ltd"
  • "Show unpaid invoices older than 30 days"

Best Practices

  1. Register an Azure AD app with Dynamics 365 API permissions
  2. Use $select to limit returned fields for efficiency
  3. OData filters — Leverage $filter, $top, $orderby for efficient queries
  4. Security roles — Application user must have appropriate D365 security roles
  5. Test in sandbox — Use a Dynamics 365 sandbox environment first

Next Steps

Was this guide helpful?

Ship MCP to your stack in 60 seconds.

Spin up AnythingMCP on managed Cloud or self-host it on your infrastructure. Free for 7 days, no credit card.

Related guides

Connectors

Cal.com to MCP: Bookings, Free Slots and Call Transcripts in any AI Agent

Read a Cal.com scheduling account from Claude, ChatGPT or Copilot: event types, bookings with attendees, Cal Video recordings and transcripts, free time slots, availability schedules and connected calendars. Booking, rescheduling and cancelling are included but installed switched off.

Connectors

DaData to MCP: Russian Companies by INN, Addresses and Banks in any AI Agent

Suggest and look up Russian addresses, companies and sole proprietors by INN or OGRN (ЕГРЮЛ/ЕГРИП), banks by BIC, full names and emails, reverse geocode coordinates, find the city of an IP and search Russian reference lists with DaData. Optional paid standardisation of addresses, phones and names, switched off until you allow it.

Connectors

Finnhub to MCP: Live Quotes, Company Financials and Earnings in any AI Agent

Give your AI live market data from Finnhub: stock, forex and crypto quotes, company profiles and key financials, company and market news, analyst recommendations, earnings and IPO calendars, insider transactions, SEC filings and market status. Works on Finnhub's free plan; read-only.

Connectors

idealo to MCP: Maintain Your Price Comparison Offers from any AI Agent

Maintain your shop's offers in the idealo price comparison from an AI agent through idealo's Partner Web Service: read an offer by SKU, and with your approval create or replace offers, change prices, delivery times and titles, or remove offers. For shops listed on idealo.

Connectors

Kittl to MCP: Generate Designs, Mockups and Brand Kits from any AI Agent

Create designs in Kittl from Claude, ChatGPT or Copilot through Kittl's official MCP server: generate images and videos, run Kittl AI workflows for ads, product shots and packaging, build brand kits from a website, render mockups, remove backgrounds, upscale and vectorize, and work with the Kittl workspace.

Connectors

OLX to MCP: Adverts, Buyer Messages and Wallet of Your OLX Account in any AI Agent

Manage your OLX classifieds account (Poland, Romania, Bulgaria, Portugal, Ukraine, Kazakhstan, Uzbekistan) from Claude, ChatGPT or Copilot: your adverts with status, statistics and moderation reasons, buyer message threads with replies, wallet balance, billing and invoices, and categories, attributes and locations. OAuth sign-in, one install per country.