Back to Home
mafzaal icon

d365fo-client

Verified Safe

by 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

Run Command
d365fo-client-mcp --transport=http --host=0.0.0.0 --port=8000

Environment 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

Stats

Interest Score42
Security Score7
Cost ClassLow
Avg Tokens150
Stars21
Forks10
Last Update2026-01-19

Tags

D365 F&OODataAPI ClientMetadataIntegrationPythonMCP ServerAI Agent Tool