d365fo-client
Verified Safeby mafzaal
Overview
This server provides a Model Context Protocol (MCP) interface for a D365 F&O client, enabling AI assistants and other MCP-compatible tools to interact with Microsoft Dynamics 365 Finance & Operations environments for metadata retrieval, CRUD operations, action execution, and data querying.
Installation
d365fo-client-mcp --transport=http --host=0.0.0.0 --port=8000Environment Variables
- D365FO_SANDBOX_BASE_URL
- D365FO_LIVE_BASE_URL
- D365FO_CLIENT_ID
- D365FO_CLIENT_SECRET
- D365FO_TENANT_ID
- MCP_AUTH_API_KEY
- MCP_AUTH_CLIENT_ID
- MCP_AUTH_CLIENT_SECRET
- MCP_AUTH_TENANT_ID
- MCP_HTTP_HOST
- MCP_HTTP_PORT
- MCP_TRANSPORT
- D365FO_VERIFY_SSL
Security Notes
The MCP server incorporates authentication mechanisms (API Key or Azure AD) which are crucial for its security. The core client handles D365 F&O authentication securely (Azure Default Credentials or client_id/secret/tenant_id via environment or Key Vault). However, the `d365fo_execute_sql` tool within the MCP server exposes direct SQL querying capabilities to the underlying SQLite metadata cache. While there's a `_validate_query_safety` mechanism mentioned, exposing raw SQL via an API, even to a local cache, is inherently a high-risk surface area if not perfectly implemented and contained. Deploying the MCP server over HTTP/SSE with inadequate network access controls or weak authentication could lead to unauthorized data access or manipulation of the metadata cache. Ensure strong authentication is enabled and only trusted entities can access the MCP server's endpoints.
Similar Servers
ms-365-mcp-server
Interacting with Microsoft 365 and Office services through the Graph API via a Model Context Protocol (MCP) server.
powerbi-mcp
Enables AI assistants to interact with Power BI Desktop and Service for querying data, managing models, and performing safe bulk operations through natural language, ensuring enterprise-grade security and preserving report visual integrity during refactoring.
mcp-reference-server
Standardize and manage fulfillment operations for AI agents by providing a universal interface to various fulfillment systems.
bc-webclient-mcp-server
Enable AI agents (like Claude) to interact with Business Central (BC) by translating high-level commands into BC WebSocket protocol interactions, specifically tailored for on-premises BC deployments via runtime patching.