Back to Home
mafzaal icon

d365fo-client

Verified Safe

by mafzaal

Overview

Provides a Model Context Protocol (MCP) server for Microsoft Dynamics 365 Finance & Operations, enabling AI agents and other MCP-compatible tools to perform metadata management, CRUD operations, action calls, label resolution, and environment monitoring.

Installation

Run Command
python -m d365fo_client.mcp.fastmcp_main

Environment Variables

  • D365FO_SANDBOX_BASE_URL
  • D365FO_BASE_URL
  • D365FO_CLIENT_ID
  • D365FO_CLIENT_SECRET
  • D365FO_TENANT_ID
  • D365FO_VERIFY_SSL
  • D365FO_LOG_LEVEL
  • D365FO_CACHE_DIR
  • D365FO_MCP_TRANSPORT
  • D365FO_HTTP_HOST
  • D365FO_HTTP_PORT
  • D365FO_AUTH_API_KEY
  • D365FO_AUTH_CLIENT_ID
  • D365FO_AUTH_CLIENT_SECRET
  • D365FO_AUTH_TENANT_ID

Security Notes

The project uses standard Azure AD authentication via `azure-identity` and `SecretStr` for sensitive environment variables, which is good. SSL verification can be optionally disabled (`verify_ssl=False`), which is a security risk if not managed carefully in production. The `DatabaseToolsMixin` allows execution of SQL queries on a local SQLite cache, and while it includes `_validate_query_safety` to prevent common injection attacks (DELETE, UPDATE, INSERT, DROP), custom SQL execution against a local database could still be a vulnerability if the validation is incomplete or bypassed, potentially leading to local data exposure. No direct 'eval' or malicious obfuscation patterns were identified for remote execution.

Similar Servers

Stats

Interest Score42
Security Score7
Cost ClassMedium
Avg Tokens750
Stars19
Forks10
Last Update2025-11-25

Tags

D365 F&OODataAPI ClientMetadataMCP ServerIntegrationPython