Content
# BC MCP Manufacturing APIs
**Business Central AL extension — MCP-compatible API pages for manufacturing automation**
Companion code for the blog article:
> **[How to Use the Business Central MCP Server to Automate Your Shop Floor](https://insidebusinesscentral.com)**
> Published on Inside Business Central, April 2026
---
## What's Included
| File | Object | Description |
|------|--------|-------------|
| `Page.50100.ProductionOrderMCPAPI.al` | Page 50100 | Exposes Production Orders with calculated `CompletionPct` and `IsOverdue` fields |
| `Page.50101.WorkCenterCapacityMCPAPI.al` | Page 50101 | Exposes Work Center capacity with `CapacityUtilisationPct` and `IsBottleneck` flag |
| `Codeunit.50100.MCPProdOrderActions.al` | Codeunit 50100 | Bound actions for AI agents: create orders, get summaries, release orders |
---
## Prerequisites
- Business Central 25.0 or later (BC25+)
- AL Language extension for VS Code
- MCP Server configured on your BC tenant (introduced in BC 27.1 / 2025 Wave 2)
---
## Installation
1. Clone this repository
2. Open the folder in VS Code with the AL Language extension installed
3. Update `app.json` with your own publisher name and a unique `id` (GUID)
4. Run `AL: Download Symbols` to pull BC symbols
5. Press `F5` to publish to your sandbox
---
## API Endpoints
Once published, the API pages are available at:
```
GET /api/insideBC/manufacturing/v1.0/companies({id})/productionOrders
GET /api/insideBC/manufacturing/v1.0/companies({id})/workCenterCapacities
```
These endpoints are automatically discoverable by any MCP-connected AI agent.
---
## Object ID Range
All objects use IDs in the **50100–50110** range. Adjust in `app.json` if this conflicts with your existing extension.
---
## Codeunit Actions
| Procedure | Description |
|-----------|-------------|
| `CreateFirmPlannedOrder(ItemNo, Quantity, DueDate, LocationCode)` | Creates a Firm Planned Production Order and returns a confirmation message |
| `GetOverdueOrderSummary()` | Returns a plain-English summary of all overdue released production orders |
| `GetBottleneckSummary()` | Returns a summary of work centers over 90% capacity utilisation |
| `ReleaseFirmPlannedOrder(ProductionOrderNo)` | Releases a Firm Planned order to Released status |
---
## License
MIT — free to use, modify, and distribute. Attribution appreciated.
---
*Written by Gregory Mavrogiannis — [Inside Business Central](https://insidebusinesscentral.com)*
Connection Info
You Might Also Like
cc-switch
All-in-One Assistant for Claude Code, Codex & Gemini CLI across platforms.
awesome-claude-skills
A curated list of awesome Claude Skills, resources, and tools for...
claude-flow
Claude-Flow v2.7.0 is an enterprise AI orchestration platform.
Train-in-Silence
The first Task-Aware MCP server and automated VRAM calculator for LLM...
stacklit
108,000 lines of code. 4,000 tokens of index. One command makes any repo...
AppClaw
AI-powered mobile automation agent — describe what you want in plain...