BC MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@BC MCP Server show me all open sales orders for customer 10000"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
BC MCP Server
MCP (Model Context Protocol) Server for Microsoft Dynamics 365 Business Central. Enables AI agents like Windsurf, Claude, and Copilot Studio to interact with Business Central ERP modules.
Features
π Full CRUD Operations - Query, Create, Update, Delete BC records
π All BC Modules - Finance, Sales, Purchasing, Inventory
π OAuth2 Authentication - Secure Azure AD authentication
π οΈ Standardized MCP Protocol - Works with any MCP-compatible client
Related MCP server: Microsoft Business Central MCP Server
Installation
Via NPX (Recommended)
npx @ciellos/bc-mcp-serverVia NPM
npm install -g @ciellos/bc-mcp-server
bc-mcp-serverFrom Source
git clone https://github.com/ciellos-dev/bc-mcp-server.git
cd bc-mcp-server
npm install
npm startConfiguration
Environment Variables
Create a .env file or set environment variables:
BC_TENANT_ID=your-azure-tenant-id
BC_CLIENT_ID=your-app-client-id
BC_CLIENT_SECRET=your-app-client-secret
BC_ENVIRONMENT=Production
BC_COMPANY=CRONUS USA, Inc.Windsurf Configuration
Add to your Windsurf MCP settings (%APPDATA%\Windsurf\mcp_settings.json):
{
"mcpServers": {
"business-central": {
"command": "npx",
"args": ["-y", "@ciellos/bc-mcp-server"],
"env": {
"BC_TENANT_ID": "your-tenant-id",
"BC_CLIENT_ID": "your-client-id",
"BC_CLIENT_SECRET": "your-client-secret",
"BC_ENVIRONMENT": "Production",
"BC_COMPANY": "CRONUS USA, Inc."
}
}
}
}Claude Desktop Configuration
Add to claude_desktop_config.json:
{
"mcpServers": {
"business-central": {
"command": "npx",
"args": ["-y", "@ciellos/bc-mcp-server"],
"env": {
"BC_TENANT_ID": "your-tenant-id",
"BC_CLIENT_ID": "your-client-id",
"BC_CLIENT_SECRET": "your-client-secret",
"BC_ENVIRONMENT": "Production",
"BC_COMPANY": "CRONUS USA, Inc."
}
}
}
}Azure AD App Registration
Go to Azure Portal β Azure Active Directory β App registrations
Click New registration
Name:
BC MCP ServerClick Register
Go to API permissions β Add permission β Dynamics 365 Business Central
Add
Financials.ReadWrite.AllpermissionClick Grant admin consent
Go to Certificates & secrets β New client secret
Copy the secret value
Available Tools
Tool | Description |
| Query BC entities with OData filters |
| Get a single record by ID |
| Create a new record |
| Update an existing record |
| Delete a record |
| List all companies |
| Get entity metadata/schema |
Supported Entities
customers- Customer recordsvendors- Vendor/Supplier recordsitems- Inventory itemssalesOrders- Sales orderssalesInvoices- Sales invoicespurchaseOrders- Purchase orderspurchaseInvoices- Purchase invoicesgeneralLedgerEntries- GL entriesbankAccounts- Bank accountsemployees- Employee records
Usage Examples
In Windsurf/Claude
"List all customers from Business Central"
"Create a new vendor named Contoso Ltd"
"Show sales orders for customer 10000"
"Update item 1000 with new price 99.99"Architecture
βββββββββββββββββββ ββββββββββββββββ ββββββββββββββββββββ
β Windsurf/ ββββββΆβ BC MCP ββββββΆβ Business Central β
β Claude/Copilot βββββββ Server βββββββ API β
βββββββββββββββββββ ββββββββββββββββ ββββββββββββββββββββ
β β β
β MCP Protocol β REST/OData β
β (JSON-RPC 2.0) β (OAuth2) βLicense
MIT Β© Ciellos
Contributing
Contributions are welcome! Please open an issue or submit a PR.
Available Tools
10 toolsatdd_create_unit_testsB
Generate AL test codeunit from a test plan markdown following Ciellos ATDD guidelines. Returns complete AL code.
Inputs: testPlan (required), codeunitId, codeunitName, libraryCodeunit.
atdd_get_rulesA
Get all ATDD Ciellos validation rules with descriptions and examples
Inputs: no named parameters.
atdd_parse_test_planA
Parse a test plan markdown and extract scenarios without generating code. Useful for reviewing structure.
Inputs: testPlan (required).
atdd_validate_commentsB
Validate GIVEN-WHEN-THEN comment structure (no extra comments allowed)
Inputs: code (required).
atdd_validate_namingB
Validate test procedure naming conventions (T####_ prefix, PascalCase, no quotes)
Inputs: code (required).
atdd_validate_scenariosC
Validate scenario count matches test procedure count
Inputs: code (required).
atdd_validate_testB
Validate AL test code against Ciellos ATDD guidelines. Returns all rule violations.
Inputs: code (required).
bc_create_recordC
Create a new record in Business Central
Inputs: data (required), entity (required).
bc_list_companiesB
List all companies in Business Central
Inputs: no named parameters.
bc_queryB
Query Business Central entities (customers, vendors, items, sales orders, etc.)
Inputs: entity (required), top, filter.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 10 tools
The BC and ATDD tool clusters are mostly clearly separated by resource and action. The main overlap is atdd_validate_test, which returns all rule violations, versus the specific atdd_validate_naming/comments/scenarios tools; descriptions make the distinction workable but not perfectly crisp.
Names consistently use snake_case with clear bc_ and atdd_ domain prefixes, and most follow a verb_noun pattern. The only minor deviation is bc_query, which is verb-only and less parallel than bc_list_companies or bc_create_record.
Ten tools is well within a reasonable range for this server and each tool appears to serve a distinct workflow. The BC and ATDD subdomains each have a compact, purposeful set of operations.
The ATDD side is fairly complete, covering rules, parsing, validation, and test generation. The BC side has query, create, and list-companies but lacks obvious lifecycle operations such as update and delete, which will limit agents on common Business Central workflows.
Maintenance
Related MCP Connectors
Read-only access to a company's ERP for Claude, ChatGPT and Gemini, with OAuth and an audit trail.
AI agents for CRM, mail, calendar, ERP and accounting - you approve. EU-hosted, OAuth.
Odoo ERP for AI agents: hosted OAuth endpoint, gated writes, one endpoint for every instance.
Connect any AI agent to 1,000+ apps and 27,000+ actions through one remote MCP server (OAuth).
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables AI clients to interact with Microsoft Dynamics 365 Business Central through MCP, providing access to customers, items, sales orders, and allowing creation of new records via natural language.2-
- AlicenseAqualityCmaintenanceModel Context Protocol (MCP) server for Microsoft Dynamics 365 Business Central. Provides AI assistants with direct access to Business Central data through properly formatted API v2.0 calls.610MIT
- AlicenseAqualityDmaintenanceGives AI assistants direct access to Microsoft Dynamics 365 Business Central via the native WebSocket protocol, replacing OData, APIs, and browser automation. Enables page navigation, data reading/writing, actions, searches, and report execution.14MIT
- AlicenseBqualityDmaintenanceMCP server for Microsoft Dynamics 365 Business Central, enabling AI assistants to perform CRUD operations, query data, and retrieve schemas via Business Central API v2.0.6MIT