Business Central Server
БесплатноНе проверенEnables MCP clients to access and manage Microsoft Dynamics 365 Business Central entities, such as creating sales orders, via a modern async MCP server.
Описание
Enables MCP clients to access and manage Microsoft Dynamics 365 Business Central entities, such as creating sales orders, via a modern async MCP server.
README
A modern MCP server designed for effortless integration with Microsoft Dynamics 365 Business Central, allowing MCP clients to easily access and manage any entity within your Business Central environment. Developed by Tan Tran.
Features
- Async interface to Business Central resources via Model Context Protocol (MCP)
- Optimized HTTP request handling
- Tools for managing sales orders and more
Project Structure
main.py # Entrypoint for the MCP server
requirements.txt # Python dependencies
src/
business_central_client.py
modes.py
sale_order_tools.py
# ...other tool modules
LICENSE
README.md
Setup
- Cài đặt Poetry (nếu chưa có):
curl -sSL https://install.python-poetry.org | python3 -
- Đăng ký ứng dụng trong Azure Portal (Microsoft Entra ID) để lấy Client ID, Tenant ID, và Client Secret (xem docs/enabling-api.md).
- Cấp quyền API cho app (Business Central, Application permissions, ...).
- Copy
.env.examplethành.envvà điền thông tin cấu hình:
BC_API_URL=https://api.businesscentral.dynamics.com/v2.0/<environment>
BC_TENANT_ID=<your-tenant-id>
BC_CLIENT_ID=<your-client-id>
BC_CLIENT_SECRET=<your-client-secret>
BC_COMPANY=<company-name>
BC_SCOPE=https://api.businesscentral.dynamics.com/.default
ENABLE_RESOURCE_TOOLS=true # Enable or disable resource tools registration (true/false)
- Cài dependencies bằng Poetry:
poetry install
- (Tùy chọn) Nếu muốn vào môi trường ảo Poetry:
poetry shell
- Chạy server:
poetry run python main.py
Environment Variables
BC_API_URL: Business Central API base URLBC_TENANT_ID: Azure AD tenant IDBC_CLIENT_ID: Application (client) IDBC_CLIENT_SECRET: Client secretBC_COMPANY: Your Business Central company nameBC_SCOPE: OAuth2 scope (default: https://api.businesscentral.dynamics.com/.default)ENABLE_RESOURCE_TOOLS: Enable or disable resource tools registration (true/false). If set tofalse, resource endpoints will not be registered.
Tool Registration
Tools are registered in main.py:
from src.tools.sales_order_tools import register_sales_order_tools
register_sales_order_tools(mcp)
Add new tools by creating modules in src/ and registering them in main.py.
Development
- All business logic is in
src/. - Add new tools by creating new modules in
src/and registering them inmain.py.
Sales Order Support
Create Sales Order (Tool: create_sales_order)
This server supports creating new sales orders in Business Central via the MCP tool create_sales_order.
Input parameters:
customer_number(str): Customer number in Business Centralitems(list of str): List of item IDs to add to the orderquantities(list of float): List of quantities for each item (must match length ofitems)order_date(str, optional): Order date in formatYYYY-MM-DD
Example tool call:
{
"tool": "create_sales_order",
"arguments": {
"customer_number": "10000",
"items": ["ITEM001", "ITEM002"],
"quantities": [2, 5],
"order_date": "2025-07-28"
}
}
- The tool will create a sales order header and add lines for each item/quantity pair.
- Returns the created sales order object if successful.
See docs/sale-order.md for API details and field mapping.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Copyright (c) 2025 Tan Tran ([email protected], www.tantran.dev)
Установка Business Central Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/tant/mcp-business-central-serverFAQ
Business Central Server MCP бесплатный?
Да, Business Central Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Business Central Server?
Нет, Business Central Server работает без API-ключей и переменных окружения.
Business Central Server — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Business Central Server в Claude Desktop, Claude Code или Cursor?
Открой Business Central Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Business Central Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
