D365 MCP Server

Give your coding agent direct access to Dynamics 365 / Dataverse metadata and web resources through a Model Context Protocol (MCP) server.

Local serverstdioTypeScript

What is the D365 MCP Server?

Give your coding agent direct access to Dynamics 365 / Dataverse metadata and web resources through a Model Context Protocol (MCP) server.

What you get

  • search_entities: Search Dataverse tables by logical or display name
  • get_entity_plugins: List plugin steps registered for a specific entity
  • find_system_jobs: Find system jobs (async operations) with flexible filters (failed by default)
  • health_check_environment: Run a quick environment health summary using system jobs and plugin traces
  • search_webresources: Find web resources by name/display name
  • get_webresource_content: Read decoded web resource content by ID or name

Configuration and credentials

  • Node.js 18+ (recommended: latest LTS) - A Dynamics 365 / Dataverse environment URL - Microsoft Entra app registration with access to your Dataverse org - Tenant ID, Client ID, and Client Secret Required environment variables: - TENANT_ID - CLIENT_ID - CLIENT_SECRET - DYNAMICS_365_URL (example: https://orgname.crm.dynamics.com) Optional logging variables: - MCP_LOG_FILE (default

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
search_entitiesSearch Dataverse tables by logical or display name.
get_entity_pluginsList plugin steps registered for a specific entity.
find_system_jobsFind system jobs (async operations) with flexible filters (failed by default).
health_check_environmentRun a quick environment health summary using system jobs and plugin traces.
search_webresourcesFind web resources by name/display name.
get_webresource_contentRead decoded web resource content by ID or name.

How to install the D365 MCP Server

{
  "mcpServers": {
    "D365 Troubleshooter MCP": {
      "command": "npx",
      "args": ["-y", "d365-troubleshooter-mcp"],
      "env": {
        "TENANT_ID": "YOUR_TENANT_ID",
        "CLIENT_ID": "YOUR_CLIENT_ID",
        "CLIENT_SECRET": "YOUR_CLIENT_SECRET",
        "DYNAMICS_365_URL": "https://orgname.crm.dynamics.com"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Node.js 18+ (recommended: latest LTS) - A Dynamics 365 / Dataverse environment URL - Microsoft Entra app registration with access to your Dataverse org - Tenant ID, Client ID, and Client Secret Required environment variables: - TENANT_ID - CLIENT_ID - CLIENT_SECRET - DYNAMICS_365_URL (example: https://orgname.crm.dynamics.com) Optional logging variables: - MCP_LOG_FILE (default
VariableDescriptionRequired
TENANT_IDConfiguration value read at startup.Optional
CLIENT_IDConfiguration value read at startup.Optional
CLIENT_SECRETCredential the server authenticates with.Yes
DYNAMICS_365_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • “Use D365 to search entities.”
  • “Use D365 to get entity plugins.”
  • “Use D365 to find system jobs.”

Frequently asked questions

Give your coding agent direct access to Dynamics 365 / Dataverse metadata and web resources through a Model Context Protocol (MCP) server. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.