Search for fo-semantic-mcp on MCP Registry
fo-semantic-mcp
RAG Knowledge Server for D365 F&O AI Development
Ground your AI coding agent in real F&O artifact knowledge — not guesswork
Overview
What is fo-semantic-mcp?
fo-semantic-mcp is a RAG (Retrieval-Augmented Generation) knowledge server for D365 F&O AI development. It connects your AI coding assistant to an enriched F&O artifact knowledge base — not raw AOT exports, but a semantically indexed, AI-enhanced representation of 150,000+ artifacts with 19M+ cross-reference relationships extracted from the F&O compiler.
Built on the Model Context Protocol (MCP), it gives your AI grounded F&O knowledge it can't get from training data alone. When you're developing X++ extensions or customizations, your AI IDE (Cursor, Claude Code, VS Code) automatically retrieves the exact artifacts, patterns, and dependencies it needs — reducing hallucination and enabling accurate code generation.
This is what makes AI pair programming real: your AI doesn't guess how Microsoft built SalesTable — it retrieves the actual implementation, cross-references, and business context from the index.
⚠️ Important: This is a developer tool for accessing F&O source code, metadata, and artifacts (classes, tables, forms, etc.). It is not designed for accessing F&O business data or database records. Use this MCP server to understand code structure, learn implementation patterns, and develop extensions — not to query customer orders, inventory data, or other business information.
Knowledge
Beyond Raw AOT — What Your AI Actually Gets
The artifact index is not a dump of AOT XML files. It's a purpose-built, AI-enriched knowledge base that gives your coding agent the context it needs to write correct X++ code:
Cross-Reference Graph
Compiler-extracted relationships: who calls what, which tables a form uses, class hierarchies, method dependencies — with line and column precision. Your AI traces the full dependency chain.
Business Descriptions
Every artifact enriched with AI-generated business context — what it does in plain English, not just technical names. Your AI understands purpose, not just structure.
Resolved Labels
@SYS label codes resolved to human-readable text. Your AI sees "Customer account" not "@SYS4477" — enabling natural-language understanding of F&O UI elements.
Type-Specific Metadata
EDT base types, table cache settings & indexes, form templates & data sources, class inheritance chains, enum values, data entity staging tables — structured for each artifact type.
Method Pattern Classification
Methods categorized by pattern — find, validate, insert, update, event handler — so your AI suggests the right extension approach based on what the method actually does.
Complexity Scoring
Every artifact scored for complexity. Your AI can assess difficulty before suggesting an approach, and prioritize simpler patterns when they fit.
Want to explore the index without an IDE? Use Artifact Search — the same database, with a browser interface for quick lookups and demos.
⚡ Quick Start (1 minute - No Installation!)
- Get your API key from xplusplus.ai
- Add the configuration to your IDE (see below)
- Restart your IDE - npx automatically downloads and runs the server!
- Start coding with AI assistance!
✓ No npm install needed - npx handles everything automatically!
🎁 Free plan included — every account gets 500 searches per month at no cost. That's plenty for normal day-to-day and occasional F&O development. No credit card required to start.
Why Semantic Search
Why This Beats Keyword Search for X++ Development
Natural Language Queries
Ask "forms that handle sales order header validation" — semantic embeddings (1536-dimension vectors built from 14 technical fields) find conceptually related artifacts, not just string matches.
150,000+ Artifacts Indexed
Tables, classes, forms, EDTs, enums, data entities, security objects, menu items — 15+ artifact types covering the complete F&O standard codebase.
Local File Analysis
Read and analyze XML source files from your local F&O installation for deeper context beyond what's in the index.
Any MCP-Compatible IDE
Works with Cursor IDE, Claude Code, VS Code, Claude Desktop, OpenAI Codex, Google Antigravity, and Microsoft Copilot Studio.
Integration
Getting Started
Requirements
- Node.js 18 or higher (includes npx - no separate install needed)
- API key from xplusplus.ai (sign up here)
- Optional: Local D365 F&O installation path for XML file reading
-
Get Your API Key
Sign in to xplusplus.ai and generate your API key from the dashboard.
-
Add Configuration to Your IDE
Add the MCP server configuration - npx will automatically download and run it:
Published on the official MCP registry.
-
Configure Your IDE
Add the MCP server to your IDE configuration file:
Cursor IDE:
Edit
~/.cursor/mcp.json{ "mcpServers": { "fo-semantic-mcp": { "command": "npx", "args": ["-y", "fo-semantic-mcp"], "env": { "FOINDEX_API_KEY": "your_api_key_here", "FO_LOCAL_ASSETS_PATH": "C:\\Users\\YourName\\AppData\\Local\\Microsoft\\Dynamics365\\10.0.xxxx\\PackagesLocalDirectory" } } } }Tip: Add
FO_LOCAL_ASSETS_PATHto enable reading actual F&O XML source filesNo installation needed! npx automatically downloads and runs the latest version.
Other AI Tools Setup Guides
-
Restart Your IDE
Restart Cursor IDE or Claude Desktop. npx will automatically download the MCP server on first run (takes a few seconds), then it's cached for instant startup.
-
Start Coding with AI
Your AI assistant can now automatically access F&O artifacts, find patterns, and suggest implementations using natural language.
Reference
Configuration Options
| Variable | Description | Required | Default |
|---|---|---|---|
FOINDEX_API_KEY |
Your API key from xplusplus.ai | ✅ Yes | - |
FO_LOCAL_ASSETS_PATH |
Path to F&O PackagesLocalDirectory (enables XML file reading) | 📁 Recommended | - |
FO_SEARCH_DEFAULT_THRESHOLD |
Relevance filter threshold (0-1) | No | 0.5 |
FO_SEARCH_TIMEOUT_MS |
Request timeout in milliseconds | No | 10000 |
FO_SEARCH_DEFAULT_LIMIT |
Default number of search results | No | 10 |
FO_SEARCH_MAX_LIMIT |
Maximum number of search results | No | 50 |
💡 Finding Your PackagesLocalDirectory
Windows:
C:\Users\[YourName]\AppData\Local\Microsoft\Dynamics365\[version]\PackagesLocalDirectory
PowerShell command to find it:
Get-ChildItem "$env:LOCALAPPDATA\Microsoft\Dynamics365\" -Recurse -Filter "PackagesLocalDirectory" | Select-Object FullName
Workflow
How It Works in Practice
🎯 Automatic AI Pair Programming (Most Important)
When you're writing X++ code for extensions or customizations, your AI IDE automatically calls the MCP server to retrieve out-of-box F&O objects. You don't need to manually search — your AI assistant proactively:
- Fetches the original class/table/form you're extending
- Analyzes existing patterns and methods
- Suggests proper extension approaches based on actual F&O code
- References related artifacts and dependencies automatically
Example: When extending SalesTable, Cursor IDE automatically retrieves the SalesTable class definition, studies its methods, and suggests how to properly implement your extension.
📝 Manual Queries
You can also explicitly ask your AI assistant questions like:
"Find customer payment processing examples"
"Show sales order validation patterns"
"How do I implement inventory transactions?"
"Read the SalesTable form XML"
The MCP server translates these queries into precise artifact searches and delivers the results directly to your AI coding assistant.
🎥 See It In Action
Watch a real-life demo of AI-assisted D365 F&O development with step-by-step screenshots
View Live DemoFAQ
Frequently Asked Questions
Do I need to install anything?
No! Just add the configuration to your IDE and restart. npx automatically downloads and runs the latest version. No npm install commands needed.
What is npx?
npx comes with Node.js and automatically downloads/runs npm packages. When you add the configuration, npx handles everything - download, caching, and execution.
Is this the official version?
Yes, fo-semantic-mcp is published on the official MCP registry and npm.
Does it work across all my D365 F&O projects?
Yes! Once configured in your IDE, it works for all your projects automatically. npx caches the package for fast subsequent runs.
How do I update to the latest version?
npx automatically uses the latest version. To force a fresh download, clear the npx cache: npm cache clean --force
What if I can't use npx?
For advanced users in restricted environments, you can install globally with npm install -g fo-semantic-mcp, or download ZIP archives from our GitHub Releases page. However, we recommend npx for the best experience.
Get Started
Ready to Supercharge Your F&O Development?
Get instant access to 150,000+ F&O artifacts with AI-powered semantic search and RAG knowledge
⚡ No installation needed - just add configuration and restart your IDE