---
title: "Connect Business Central (on-prem) to Claude: Manage Order Flows"
slug: connect-business-central-on-prem-to-claude-manage-order-flows
date: 2026-11-22
author: Yuvraj Muley
categories: ["AI & Agents"]
excerpt: Learn how to connect Microsoft Dynamics 365 Business Central (on-premises) to Claude using a managed MCP server to automate order and inventory workflows.
tldr: "A comprehensive engineering guide on connecting Microsoft Dynamics 365 Business Central (on-premises) to Claude. Learn to overcome OData complexities, securely generate MCP servers, and orchestrate complex ERP workflows."
canonical: https://truto.one/blog/connect-business-central-on-prem-to-claude-manage-order-flows/
---

# Connect Business Central (on-prem) to Claude: Manage Order Flows


If you need to connect Microsoft Dynamics 365 Business Central (on-premises) to Claude to automate sales order fulfillment, monitor inventory, or orchestrate financial workflows, you need a [Model Context Protocol (MCP) server](https://truto.one/what-is-mcp-and-mcp-servers-and-how-do-they-work/). This server acts as the translation layer between Claude's tool calls and your on-premise ERP's REST APIs. You can either build, host, and maintain this infrastructure yourself, or use a managed integration platform like Truto to dynamically generate a [secure, authenticated MCP server URL](https://truto.one/managed-mcp-for-claude-full-saas-api-access-without-security-headaches/). 

If your team uses ChatGPT, check out our guide on [connecting Microsoft Dynamics 365 Business Central (on-premises) to ChatGPT](https://truto.one/connect-business-central-on-prem-to-chatgpt-audit-financials/) or explore our broader architectural overview on [connecting Microsoft Dynamics 365 Business Central (on-premises) to AI Agents](https://truto.one/connect-business-central-on-prem-to-ai-agents-automate-erp/).

Giving a Large Language Model (LLM) read and write access to a sprawling, mission-critical ERP like Business Central (on-premises) is a serious engineering challenge. You have to handle OData v4 intricacies, strict concurrency controls, deeply nested transactional payloads, and rigid API rate limits. Every time Microsoft updates an endpoint or deprecates a legacy SOAP service, you have to update your server code, redeploy, and test the integration.

This guide breaks down exactly how to use Truto to generate a secure, managed MCP server for Microsoft Dynamics 365 Business Central (on-premises), connect it natively to Claude Desktop, and execute complex order management workflows using natural language.

> Want to give your AI agents secure, authenticated access to Business Central and 100+ other SaaS APIs? Let's talk about [managed MCP architecture](https://truto.one/managed-mcp-for-claude-full-saas-api-access-without-security-headaches/).
>
> [Talk to us](https://truto.one/book-a-demo/)

## The Engineering Reality of the Business Central API

A custom MCP server is a self-hosted integration layer. While the open MCP standard provides a predictable way for models to discover tools, the reality of implementing it against Microsoft Dynamics 365 Business Central (on-premises) is painful. 

Business Central is an ERP—its data model is built for rigid financial compliance, not for simple stateless CRUD operations. If you decide to [build a custom Business Central MCP server](https://truto.one/how-to-build-mcp-servers-for-ai-agents-2026-hands-on-architecture-guide/), here are the specific integration challenges you will face:

**The Multi-Company Routing Context**
Business Central is designed to manage multiple legal entities under a single tenant. As a result, almost every single API request must be scoped to a specific `company_id`. An LLM does not natively understand that it needs to inject a UUID into every URL path (e.g., `/companies({id})/salesOrders`). Your MCP layer must strictly enforce this context, caching the available company IDs and ensuring the LLM explicitly provides the target environment and company for every operation. 

**Deeply Nested Transactional Payloads**
Creating a sales order in Business Central isn't a flat JSON payload. Endpoints like `create_sales_order` expect nested collections—specifically `salesOrderLines` that dictate the item variants, dimensions, unit of measure codes, and tax groups. If the LLM tries to hallucinate a flat structure, the API will reject it. Your MCP server must expose strictly typed JSON Schemas that force the LLM to construct these deep payloads correctly, ensuring line items map accurately to real inventory IDs.

**Strict ETag-Based Concurrency Control**
Because Business Central is a financial system of record, it uses optimistic concurrency via ETags. If an LLM needs to update an order (e.g., `update_sales_order_by_id`), it cannot simply PATCH the resource. It must first execute a GET request to retrieve the current `@odata.etag`, and then pass that exact string in the `If-Match` header of the subsequent update. If another process modifies the record in between, the ETag changes, and the update fails. The MCP layer must coordinate this multi-step requirement or explicitly instruct the LLM on the required sequence.

## Generating the MCP Server

Rather than building an OData translation layer from scratch, you can use Truto to automatically derive an MCP server from your connected Business Central instance. Truto generates tool schemas directly from the ERP's resource documentation, meaning tools are always accurate to the API.

You can create this MCP server in two ways: via the Truto UI or programmatically via the API.

### Method 1: Via the Truto UI

For teams who want to instantly spin up a server for Claude Desktop:

1. Log into your Truto dashboard and navigate to the **Integrated Accounts** page.
2. Select your connected Microsoft Dynamics 365 Business Central (on-premises) account.
3. Click the **MCP Servers** tab.
4. Click **Create MCP Server**.
5. Select your desired configuration (e.g., name the server, filter to specific tags or operations like `read` or `write`, and set an expiration date if needed).
6. Click **Generate** and copy the resulting MCP server URL (it will look like `https://api.truto.one/mcp/a1b2c3d4...`).

### Method 2: Via the Truto API

For platform engineers building scalable AI features, you can generate MCP servers programmatically. This is ideal when provisioning dedicated ERP-connected agents for individual users within your own SaaS application.

Execute a `POST` request to the `/integrated-account/:id/mcp` endpoint:

```bash
curl -X POST https://api.truto.one/admin/integrated-accounts/{integrated_account_id}/mcp \
  -H "Authorization: Bearer <YOUR_TRUTO_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Business Central Order Ops",
    "config": {
      "methods": ["read", "write", "custom"]
    },
    "expires_at": "2025-12-31T23:59:59Z"
  }'
```

The API returns a secure, ready-to-use URL payload:

```json
{
  "id": "abc-123",
  "name": "Business Central Order Ops",
  "config": { "methods": ["read", "write", "custom"] },
  "expires_at": "2025-12-31T23:59:59Z",
  "url": "https://api.truto.one/mcp/a1b2c3d4e5f67890"
}
```

## Connecting the MCP Server to Claude

Once you have the Truto MCP URL, connecting it to Claude requires zero additional coding. The URL itself contains the cryptographic token needed to authenticate the specific Business Central environment.

### Method A: Via the Claude UI

If you are using Claude's enterprise or team tiers with UI-based connector support:
1. Open Claude and navigate to **Settings** -> **Integrations** -> **Add MCP Server**.
2. Paste your Truto MCP URL.
3. Click **Add**.
Claude will immediately ping the endpoint, execute the initialization handshake, and load the available ERP tools.

### Method B: Via the Desktop Config File

For developers running Claude Desktop locally, you can map the MCP server using SSE (Server-Sent Events) via your configuration file.

Open your `claude_desktop_config.json` file (typically located in `~/Library/Application Support/Claude/` on macOS or `%APPDATA%\Claude\` on Windows) and add the following:

```json
{
  "mcpServers": {
    "business_central_erp": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sse",
        "https://api.truto.one/mcp/a1b2c3d4e5f67890"
      ]
    }
  }
}
```

Restart Claude Desktop. The hammer icon in your chat interface will now display the connected Business Central tools.

## Hero Tools for Order Flows

Business Central exposes a massive surface area. To build an effective agent for order operations, you need a curated subset of tools that handle customers, inventory, and transactions. Here are the highest-leverage tools exposed by Truto's MCP server for this workflow.

### create_sales_order

Creates a new sales order in Business Central. This is a complex deep-insert operation that allows you to specify the customer, billing/shipping addresses, payment terms, and nested `salesOrderLines` (the actual items being purchased) in a single API call.

> "Create a new sales order in Business Central for customer ID 'CUST-009'. Add two line items: 5 units of item 'ITEM-101' and 2 units of item 'ITEM-202'. Use the standard 'NET30' payment term."

### update_sales_order_by_id

Modifies an existing sales order. Because Business Central requires optimistic concurrency, the agent must pass the current `etag` for the record being updated. This tool is heavily used for updating shipping addresses, changing line item quantities, or modifying requested delivery dates.

> "I need to update sales order 'SO-10045'. First, fetch the order to get the current ETag, then update the requested delivery date to next Friday and change the shipping address to their new New York warehouse."

### list_all_items

Queries the item catalog. This is critical for pre-order validation. Before an agent creates a sales order, it should use this tool to verify the `inventory` levels, `blocked` status, and `unitPrice` of the requested products.

> "List all active items in the inventory. Are there any units of 'Steel Widget Pro' currently blocked from sale, and what is the current unit cost?"

### get_purchase_order_by_id

Retrieves a specific purchase order and its line items. If a sales order cannot be fulfilled due to low inventory, the agent can use this tool to inspect incoming supply chain data from vendors to see when stock is expected to arrive.

> "Check purchase order 'PO-8821'. Have the 500 units of copper wiring been fully received yet? What is the expected receipt date on the line items?"

### create_customer

Onboards a new buyer into the ERP. This sets up their `displayName`, `taxRegistrationNumber`, `currencyCode`, and default `paymentTermsId`. You cannot create a sales order without a valid customer record.

> "Create a new customer profile for 'Acme Corp'. Their tax liability is true, their currency code is USD, and their primary contact email is billing@acme.com."

### list_all_customer_financial_details

Exposes the high-level financial standing of a customer, including their `balance`, `totalSalesExcludingTax`, and `overdueAmount`. Agents use this to perform automated credit checks before accepting new large orders.

> "Pull the financial details for customer ID 'CUST-009'. Do they have an overdue amount greater than $5,000? If so, warn me before I process their new sales order."

For the complete schema definitions and the full list of supported operations (including accounting periods, aged payables, and project tracking), view the [Microsoft Dynamics 365 Business Central (on-premises) integration page](https://truto.one/integrations/detail/msbusinesscentralonprem).

## Workflows in Action

To understand how Claude orchestrates these tools using MCP, let's look at two concrete, real-world order management scenarios.

### Scenario 1: Lead-to-Order Fulfillment Check

**User Prompt:**
> "A new client, 'Vertex Manufacturing' (tax ID VX99-12), wants to order 150 units of the 'Industrial Grade Router'. Create them as a new customer in environment 'PROD', check our inventory to see if we can fulfill the order, and if we have stock, generate the sales order."

**Execution Steps:**
1. **`create_customer`**: Claude calls this tool to onboard Vertex Manufacturing, generating a new `id` and `number` in the system.
2. **`list_all_items`**: The agent queries the catalog (filtering for "Industrial Grade Router") to find the exact `itemId` and verify that `inventory` >= 150 and `blocked` is false.
3. **`create_sales_order`**: Having validated stock, Claude constructs the deep-insert payload, passing the new `customerId` and a `salesOrderLines` array containing the `itemId` and `quantity: 150`.

**Result:**
Claude returns a natural language summary: "I have successfully onboarded Vertex Manufacturing (Customer ID: VX-9011). We currently have 420 Industrial Grade Routers in stock, so I proceeded with the purchase. Sales Order SO-50992 has been created in draft status for 150 units."

```mermaid
sequenceDiagram
    participant Claude as Claude Desktop
    participant Truto as Truto MCP Server
    participant BC as Business Central API

    Claude->>Truto: create_customer(Vertex Manufacturing)
    Truto->>BC: POST /companies({id})/customers
    BC-->>Truto: 201 Created (ID: VX-9011)
    Truto-->>Claude: Customer data returned

    Claude->>Truto: list_all_items(Router)
    Truto->>BC: GET /companies({id})/items
    BC-->>Truto: 200 OK (inventory: 420)
    Truto-->>Claude: Catalog data returned

    Claude->>Truto: create_sales_order(customerId, items)
    Truto->>BC: POST /companies({id})/salesOrders
    BC-->>Truto: 201 Created (SO-50992)
    Truto-->>Claude: Order confirmation
```

### Scenario 2: Customer Credit & Invoice Auditing

**User Prompt:**
> "Customer 'Global Tech' (ID: CUST-402) is requesting to double their open order (SO-1012). Before I approve this, check their financial standing. If they have any overdue invoices, tell me. If their account is in good standing, update the order quantity."

**Execution Steps:**
1. **`list_all_customer_financial_details`**: Claude retrieves the financial summary for CUST-402, checking the `overdueAmount`.
2. **`get_sales_order_by_id`**: If the account is clear, Claude fetches SO-1012 to retrieve the current line items and, critically, the `@odata.etag`.
3. **`update_sales_order_by_id`**: Claude modifies the sales order line item to double the quantity, passing the retrieved ETag to satisfy Business Central's optimistic concurrency requirements.

**Result:**
Claude might reply: "Global Tech is in good standing with a $0 overdue balance. I retrieved Sales Order SO-1012 and successfully updated line item 1 from 50 units to 100 units. The new total amount including tax is $4,500."

## Security and Access Control

Giving an AI agent access to an ERP requires strict boundaries. Truto provides several mechanisms to lock down your MCP server infrastructure:

* **Method filtering (`config.methods`)**: Restrict the MCP server to specific HTTP verbs. You can create a strictly read-only agent by passing `["read"]` during server generation, completely neutralizing the risk of accidental ERP writes.
* **Tag filtering (`config.tags`)**: Scope the available tools to specific domains. For example, pass `["inventory"]` to only expose item and warehouse resources, hiding sensitive financial ledger or payroll data.
* **Client authentication (`require_api_token_auth`)**: When set to `true`, possessing the MCP URL is not enough. The connecting client (or human) must also pass a valid Truto API token in the Authorization header to execute tools.
* **Time-to-live (`expires_at`)**: Generate ephemeral MCP servers for temporary workflows or contractor access. Once the ISO datetime is reached, the server self-destructs automatically.

## Handling Rate Limits

Business Central enforces rate limits to protect server stability, especially for expensive OData queries. It is important to note that **Truto does not retry, throttle, or apply backoff on rate limit errors.** 

When the Business Central API returns an HTTP 429 Too Many Requests error, Truto passes that error directly back to the caller (your agent). However, Truto normalizes the upstream rate limit data into standardized headers (`ratelimit-limit`, `ratelimit-remaining`, `ratelimit-reset`) based on the IETF specification. 

It is the responsibility of the caller (or the LLM orchestration framework) to inspect these headers, implement backoff logic, and retry the tool execution after the reset window has passed.

## Summary

Connecting Microsoft Dynamics 365 Business Central (on-premises) to Claude fundamentally transforms how teams interact with their ERP. By replacing brittle middleware with a dynamic, documentation-driven MCP server, you can allow AI agents to navigate OData complexities, manage deep transactional payloads, and safely orchestrate complex supply chain workflows via natural language.

Using a managed platform like Truto eliminates the overhead of building OAuth pipelines, managing schemas, and tracking API deprecations, letting your engineering team focus on building agentic features rather than plumbing.

> Ready to connect Business Central to your AI workflows? Let's discuss how Truto's managed MCP architecture can accelerate your roadmap.
>
> [Talk to us](https://truto.one/book-a-demo/)
