XPP-MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
XPP-MCP
An MCP (Model Context Protocol) server for Microsoft Dynamics 365 Finance & Operations X++ development.
Pure TypeScript. No C# sidecar. No VS2022 required for object creation.
Đọc bằng tiếng Việt: README.vi.md
What It Does
XPP-MCP connects Claude Desktop directly to your D365 F&O development environment, letting you create, inspect, and manage AOT objects through natural language — without opening Visual Studio.
It reads descriptor XMLs directly from PackagesLocalDirectory, writes AOT XML atomically
to the correct path, and wraps the D365 command-line build tools for headless compile and sync.
Related MCP server: FO Semantic MCP Server
Features
16 object types in one call — AxTable, AxClass, AxEnum, AxEdt, AxQuery, AxForm, AxSecurityPrivilege/Duty/Role, AxMenuItemDisplay/Action/Output, AxMenu, AxMenuExtension, AxTableExtension
35 form patterns — Dialog, SimpleList, SimpleListDetails, DetailsMaster, and more, with correct PatternVersion defaults confirmed from 5,682 real Foundation forms
Correct form control types — pass
fieldTypesmap to emitAxFormDateControl,AxFormIntegerControl,AxFormComboBoxControl(enum) etc. — not justAxFormStringControlVS2022 independent for object creation — writes AOT XML directly; VS2022 not needed to create objects
Headless compile + validate — wraps
xppc.exe(compile) andDataContractSerializer(XML validation); DB sync requires VS2022Build logs in subfolder — logs written to
<Model>\xpp-mcp-logs\to keep the model root cleanLabel auto-management — auto-creates
AxLabelFiledescriptor +.label.txtwhen you pass plain textModel-aware path resolution — reads every descriptor XML at startup; handles multi-model packages (e.g. ApplicationSuite → Foundation) correctly
Microsoft best practices built-in — naming conventions, required field groups, security chain enforcement, form pattern validation
3 Tools
Tool | What it does |
|
|
|
|
|
|
Quick Start
1. Build
cd C:\xpp-mcp
npm install
npm run build2. Configure config.json
{
"packagesRoot": "C:\\AOSService\\PackagesLocalDirectory",
"defaultModel": "MM",
"binPath": "C:\\AOSService\\PackagesLocalDirectory\\bin",
"defaultLocale": "en-US",
"useLabels": true
}3. Start the Server
Option A — Claude Desktop manages it automatically (recommended)
Add to %APPDATA%\Claude\claude_desktop_config.json and restart Claude Desktop:
{
"mcpServers": {
"xpp-mcp": {
"command": "node",
"args": ["C:/xpp-mcp/build/index.js"],
"cwd": "C:/xpp-mcp"
}
}
}Option B — Manual / foreground
cd C:\xpp-mcp
powershell -ExecutionPolicy Bypass -File Start-MD365XppMcp.ps1Or double-click start.bat.
Option C — Auto-start at Windows login (run once as Administrator)
cd C:\xpp-mcp
powershell -ExecutionPolicy Bypass -File Start-MD365XppMcp.ps1 -AsServiceExpected output on startup:
[xpp-mcp] Loaded 176 models (3 custom: BB, CC, MM)
[xpp-mcp] Server readyStarting & Managing the Server
Start scripts
File | Purpose |
| Main PowerShell script — foreground run, scheduled task install/remove |
| Simple double-click launcher |
| Auto-generated by |
Foreground (manual)
# From the project folder
powershell -ExecutionPolicy Bypass -File C:\xpp-mcp\Start-MD365XppMcp.ps1Press Ctrl+C to stop.
Auto-start at login (scheduled task)
Install — run once as Administrator:
cd C:\xpp-mcp
powershell -ExecutionPolicy Bypass -File Start-MD365XppMcp.ps1 -AsServiceThe task starts immediately and restarts automatically if it stops (1-minute retry, up to 99 times).
Task management commands
# Check status
Get-ScheduledTask -TaskName XPP-MCP | Select-Object TaskName, State
# Stop
Stop-ScheduledTask -TaskName XPP-MCP
# Start
Start-ScheduledTask -TaskName XPP-MCP
# Remove auto-start permanently
powershell -ExecutionPolicy Bypass -File C:\xpp-mcp\Start-MD365XppMcp.ps1 -RemoveView logs
Get-Content C:\xpp-mcp\logs\xpp-mcp.log -Tail 30 -WaitThe -Wait flag tails the log live (like tail -f). Press Ctrl+C to stop watching.
Requirements
Node.js 20+
Windows (D365 F&O dev VM)
PackagesLocalDirectoryaccessible (typicallyC:\AOSService\PackagesLocalDirectory)
Documentation
docs/ARCHITECTURE.md— design, components, tool APIdocs/CLAUDE-DESKTOP-CONFIG.md— Claude Desktop setup and full usage examplesdocs/VSCODE-CONFIG.md— VS Code + Claude Code extension setupdocs/SKILL-xpp-mcp.md— Claude skill file (import into your Claude account)
Utility Scripts
Script | Purpose |
| Byte-level repair of |
| D365 DataContractSerializer XML validation |
| Fix HTML entities ( |
| Diagnose broken CDATA content before fixing |
All scripts accept -ModelPath "C:\AOSService\PackagesLocalDirectory\<Model>\<Model>".
VS Code / Other MCP Clients
This server uses the standard MCP stdio transport and works with any MCP-compatible client.
VS Code + Claude Code extension — see
docs/VSCODE-CONFIG.mdfor full setupClaude Code CLI — same
~/.claude/settings.jsonconfig as VS CodeOther MCP clients — use the same
command/args/cwdblock their config expects
Disclaimer
This tool is intended for use on local development machines, personal VHD/VMs, or environments where you have explicit authorization from the system and data owner.
Do not use this tool on production systems, shared environments, or customer environments without explicit written approval from the appropriate stakeholders.
Microsoft Dynamics 365 license requirement
This tool requires a valid Microsoft Dynamics 365 Finance & Operations developer license. It depends on and invokes Microsoft-owned binaries that are part of the licensed D365 F&O development environment:
xppc.exe— X++ compilerxppbp.exe— Best practice checkerSyncEngine.exe— Database sync engine
These binaries are proprietary software owned by Microsoft Corporation and are subject to Microsoft's software license terms. This tool does not distribute, modify, or circumvent any Microsoft software. Users are solely responsible for ensuring they hold the appropriate Microsoft licenses before using this tool.
What this tool does to your system:
Writes AOT XML files directly to
PackagesLocalDirectory(bypasses VS2022 project system)Executes
xppc.exeandxppbp.exefrom the D365 bin directoryCreates and modifies label files (
.label.txt) in your model folder
Incorrect use can corrupt AOT metadata, break model builds, or cause unrecoverable changes to your D365 development environment. Always ensure your work is committed to source control (Azure DevOps / Git) before using this tool.
This project is independent and is not affiliated with, endorsed by, or supported by Microsoft Corporation. "Dynamics 365", "Finance & Operations", "X++", and all related product names are trademarks of Microsoft Corporation.
The tooling and documentation provided here are for development assistance purposes only. No guarantees are made regarding accuracy, completeness, or fitness for any particular purpose. The authors accept no responsibility for any errors, omissions, metadata corruption, data loss, or other damages — direct or indirect — that may result from use of this tool.
Use at your own risk.
License
MIT License — free for everyone, including commercial use.
See LICENSE for full terms.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
D365 F&O: 90 AI tools over 200K+ objects, 25M+ cross-refs, 24M+ label translations.
Read-only finance and operations controls for AI agents with evidence and safe next actions.
Design domain models and generate deterministic multi-stack code, driven by your coding agent.
List, read, edit, and deploy your GenMB AI-generated apps from any MCP client.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables D365 F\&O development including object creation, modification, deletion, and analysis through the MCP standard.42MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI assistants to search and analyze Microsoft Dynamics 365 Finance & Operations artifacts, read local source code, and generate context-aware solutions through natural language.12-
- FlicenseNot gradedqualityDmaintenanceEnables natural language querying of Dynamics 365 Finance & Operations by using Azure OpenAI to generate OData queries, fetch data, and refine responses.1-
- AlicenseAqualityAmaintenanceEnables AI-assisted X++ development for Dynamics 365 Finance and Operations by pre-indexing the entire codebase and providing 54 specialized tools for metadata lookup, code generation, and best practice validation.20449 npm175MIT