Skip to main content
Glama
BC MCP Server

BC MCP Server

BC MCP Server

npm version License: MIT

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

npx @ciellos/bc-mcp-server

Via NPM

npm install -g @ciellos/bc-mcp-server
bc-mcp-server

From Source

git clone https://github.com/ciellos-dev/bc-mcp-server.git
cd bc-mcp-server
npm install
npm start

Configuration

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

  1. Go to Azure Portal β†’ Azure Active Directory β†’ App registrations

  2. Click New registration

  3. Name: BC MCP Server

  4. Click Register

  5. Go to API permissions β†’ Add permission β†’ Dynamics 365 Business Central

  6. Add Financials.ReadWrite.All permission

  7. Click Grant admin consent

  8. Go to Certificates & secrets β†’ New client secret

  9. Copy the secret value

Available Tools

Tool

Description

bc_query

Query BC entities with OData filters

bc_get_record

Get a single record by ID

bc_create_record

Create a new record

bc_update_record

Update an existing record

bc_delete_record

Delete a record

bc_list_companies

List all companies

bc_get_metadata

Get entity metadata/schema

Supported Entities

  • customers - Customer records

  • vendors - Vendor/Supplier records

  • items - Inventory items

  • salesOrders - Sales orders

  • salesInvoices - Sales invoices

  • purchaseOrders - Purchase orders

  • purchaseInvoices - Purchase invoices

  • generalLedgerEntries - GL entries

  • bankAccounts - Bank accounts

  • employees - 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 tools
atdd_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

    B3.4/5.0

    Scored across 10 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness3/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Model 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.
      6
      10
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Gives 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.
      14
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      MCP 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.
      6
      MIT