Skip to main content
Glama
Dynamics 365 Business Central MCP Server

Dynamics 365 Business Central MCP Server

by Code-Ninety

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
D365_MODENoRuntime mode for the server. Use 'sandbox' for the zero-credential in-memory sandbox or 'live' to connect to Microsoft Dynamics 365 Business Central OData v4 APIs.sandbox
D365_CLIENT_IDNoMicrosoft Entra ID client ID. Required when D365_MODE is 'live'.
D365_READ_ONLYNoRead-only default. When true, all mutation paths are disabled. Set to false explicitly to enable controlled draft writes.true
D365_TENANT_IDNoMicrosoft Entra ID tenant ID. Required when D365_MODE is 'live'.
D365_COMPANY_IDNoDynamics 365 Business Central company ID. Required when D365_MODE is 'live'.
D365_REDACT_PIINoDeterministic recursive PII redaction. When true, nested values are scrubbed for IBANs, Pakistani CNICs, US SSNs, email addresses, and phone numbers before leaving the server.true
D365_CLIENT_SECRETNoMicrosoft Entra ID client secret. Required when D365_MODE is 'live'.
D365_ENVIRONMENT_NAMENoDynamics 365 Business Central environment name. Required when D365_MODE is 'live'.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Governed Microsoft Dynamics 365 Business Central MCP server. Read-only by default with deterministic PII redaction and HMAC write approvals.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
bc_get_customer_ledgerC

Read Business Central customer ledger entries with PII redaction.

bc_get_gl_trial_balanceC

Read Business Central general ledger trial balance rows.

bc_get_purchase_ordersC

Read Business Central purchase orders filtered by status or vendor number.

bc_validate_tax_invoiceC

Validate an invoice payload against PK_FBR_IRIS, SA_ZATCA_P2, or AE_UAE_VAT.

bc_request_write_approvalB

Issue a short-lived HMAC-SHA256 approval token for a controlled draft write.

bc_create_draft_journalB

Create an unposted draft general journal batch. Requires D365_READ_ONLY=false and a valid HMAC approval token.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.2/5.0

Scored across 6 tools

Disambiguation5/5

Each tool targets a distinct resource or action: three different read surfaces, one tax validation, one approval-token issuance, and one draft-journal creation. The approval-token tool and draft-journal tool are related but clearly differentiated by their descriptions.

Naming Consistency5/5

All tools use a consistent `bc_` prefix followed by a snake_case verb_noun pattern, such as `bc_get_customer_ledger`, `bc_validate_tax_invoice`, and `bc_create_draft_journal`. The convention is predictable throughout the set.

Tool Count4/5

Six tools is a reasonable, well-scoped size for a focused finance and compliance subset, and each tool has a clear role. It is slightly thin for a broad Dynamics 365 Business Central server, but not unreasonably so.

Completeness3/5

The set covers several read scenarios plus a controlled draft-write workflow, but lifecycle coverage is notably incomplete: there is no way to read, update, post, or delete the created draft journal. Broader Business Central operations such as vendor, item, sales-order, or posting workflows are also absent.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues