← Back to directory
D

D365 F&O MCP Server

Community
AI tools grounded in real metadata for Dynamics 365 Finance & Operations
Category
Dev Tools #158 of 438
Stars
★ 160 Popular
Transport
stdio (local process) · Streamable HTTP
Runtime
Node.js 24+
Credentials
No credential needed
License
MIT
Last commit
Tools
6
57FMRS · C

This server provides strong tooling to ground AI code generation in real metadata, aiming to dramatically reduce compilation errors and improve code quality in X++. It offers features like pattern validation, safe writes, and security tracing. However, it requires a live D365FO environment and Node.js 24+, and has a steep learning curve.

Strongest · Documentation 15/20 Weakest · Reliability 8/20

Reliability
8/20
Security and permissions
9/20
Maintenance
12/20
Documentation
15/20
Setup experience
13/20
Why each score
Reliability 8/20
Evidence: The README claims 26 tools and includes detailed architecture, testing, and workflows. However, this review is based solely on static source files, and actual execution cannot be verified. No real CI configurations or test files are visible, so reproducibility of key paths is not sufficiently evidenced. Deduction: Lack of verifiable execution evidence reduces the score below 12.
Security and permissions 9/20
Evidence: The server uses standard MCP communication, no credentials in the visible examples. Read operations access local metadata, write operations (e.g., file creation) require explicit client requests. No destructive operations by default. Deduction: No deep security audit or least-privilege details; user confirmation for write operations is not documented in the source.
Maintenance 12/20
Evidence: The repository is active, with 125 stars, only 1 open issue, MIT license, and continuous releases (npm latest package). There are indications of documentation and tests but not verified. Deduction: Commit frequency, release history, and maintenance activity are not confirmed from source files.
Documentation 15/20
Evidence: The README is very comprehensive, including installation (PowerShell, npm, Azure), usage examples, architecture diagrams, and links to detailed docs (QUICK_START, SETUP, MCP_TOOLS, etc.). It provides tool descriptions, architecture, and deployment options. Deduction: Although documentation is extensive, some parts (e.g., troubleshooting, limitations) are not deep and rely on external links.
Setup experience 13/20
Evidence: Setup instructions are given in one-liner forms for npm and PowerShell installation, with Azure deployment options. It provides editor integration examples. Deduction: Installation requires Node.js 24+ and a specific D365FO environment, which may be complex; no actual runtime verification, so score is below 15.

Static review · not runListed 2026-08-07

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesRuns commands or code

Best for

  • AI-assisted development for Dynamics 365 Finance & Operations
  • X++ developers looking to reduce compilation errors
  • Teams using Claude Code, GitHub Copilot, or Cursor

Not for

  • Non-D365FO projects
  • Scenarios where AI should not reference actual metadata
  • Those unfamiliar with MCP or X++ development

Required permissions

  • Read access to D365FO metadata index
  • Write access to metadata objects (via C# bridge or XML writers)
  • Ability to run MSBuild and DB sync in development environment
  • Install Node.js and npm packages if not present

Risks and side effects

  • Code generation still requires human review despite gates
  • Metadata index may expose sensitive information if deployed on shared server
  • Changing D365FO platform requires updates to server for compatibility

Setup

Before you start

Runtime:Node.js 24+

On a D365FO VM, run as Administrator in PowerShell: irm https://raw.githubusercontent.com/dynamics365ninja/d365fo-mcp-server/main/install.ps1 | iex. Alternatively, if Node.js 24+ is installed, run npm install -g d365fo-mcp and d365fo-mcp setup. For a shared server, run npx d365fo-mcp connect https://your-server.azurewebsites.net.

Check that it works

The client's tool list should show extension_info, object_patterns, prepare, validate_code, generate_object, and d365fo_file; calling extension_info on a known class and getting exact signatures from the metadata index confirms the connection works.

Troubleshooting

  1. Check Node.js version (requires 24+)
  2. Verify server URL and MCP configuration
  3. Ensure metadata index is up to date
  4. Check that C# bridge build succeeded

Things to try

Once connected, you can ask your AI assistant things like:

  • Run extension_info(mode="coc") on CustTable and list all existing CoC wrapper methods.
  • Analyze the SimpleListForm form pattern and give me the correct pattern spec for a new form.
  • Generate a new form cloned from a reference form, validate it against the pattern catalog, then write it to the project.
  • Use validate_code(mode="references") to prove every identifier in this X++ snippet exists in our codebase.

Tools 6

extension_info read-only
Retrieves extension info, including CoC wrappers, with mode 'coc'.
object_patterns read-only
Analyzes or validates form patterns, with domain 'form' and actions 'analyze', 'spec', 'validate'.
prepare read-only
Issues grounding tokens to ensure generated code is based on real metadata.
validate_code read-only
Validates code references (mode 'references') or syntax (mode 'syntax').
generate_object writes
Generates objects by cloning from reference forms, with objectType 'form'.
d365fo_file writes
Creates or modifies metadata files, with action 'create', and registers them in the project.

Use cases

Verify AI-generated X++ code references and method signatures
Automatically clone reference forms and validate against Microsoft patterns
Find the correct label key (@SYS or @MODULE)
Trace security chains (Role → Duty → Privilege → Entry Point)
Run MSBuild compilation and DB sync from chat

Supported clients

Claude Desktop
GitHub Copilot
Claude Code
Cursor

Listed from the project's documentation, not tested by this site.

Overview

This MCP server pre-indexes your entire D365FO installation (580,000+ symbols across standard, ISV, and custom models) and exposes it via 26 specialized MCP tools. It ensures AI-generated code is based on real method signatures, fields, labels, and form patterns, reducing compilation errors and hallucinated code. It supports guided form pattern development, safe metadata writes, SDLC integration (MSBuild, DB sync, best practices), and a queryable X++ knowledge base.

Similar servers

Context7 80 · B

Upstash's official server providing up-to-date third-party library docs for AI coding assistants

★ 63.3k · Tools 2 Compare with this →

Source revision 355998507dc8 Data synced 2026-10-19 Read the FMRS scoring method