SB

sshadows/business-central-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

49 stars 18 forks 质量 86 趋势 20MIT

sshadows/business-central-mcp 是从 https://github.com/sshadows/business-central-mcp. 导入的 MCP 服务器候选。

概览

sshadows/business-central-mcp 是从 https://github.com/sshadows/business-central-mcp. 导入的 MCP 服务器候选。

概述(AI 翻译)

商业中心-MCP

让AI助手直接访问Microsoft Dynamics 365 Business Central。 原生WebSocket协议——没有OData,没有API,没有浏览器自动化。


概述

性质 价值
语言 TypeScript / 节点20+
NPM包 business-central-mcp
BC版本 BC27,BC28(线缆兼容)
认证 本地NavUserPassword。BC Online:ESTS的cookie会话用于/csh(环境中无密码)+ bc_query的设备代码。
工具 17
测试 1117单元/协议 + 164集成
执照 麻省理工

安装

BC Online(沙盒/生产环境): 不要在环境中设置密码。从浏览器复制门户网址,按照SaaS沙箱设置操作。以下摘要适用于本地NavUserPassword。

VSCode

点击徽章。VSCode 会打开并提示输入你的 BC URL、用户名和密码(本地),然后将配置的条目写入给你的用户 mcp.json。对于 BC Online,跳过徽章,使用 SaaS 沙箱环境(仅限 URL + 可选邮箱)。

手动安装

工作区:创建.vscode/mcp.json:

BC Online — 同一个文件,无密码:

克劳德·科德

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

business-central-mcp

An MCP server that lets AI agents work in Microsoft Dynamics 365 Business Central the way a user does: open pages, fill fields, post documents, run reports.

The UI tools speak the web client’s own WebSocket protocol, which I reverse-engineered from the decompiled BC server. Anything a user can do on a page, the agent can do, under that user’s permissions and with BC’s validation. For bulk reads there is OData, and on BC 29+ the tools in BC’s own MCP server: AL queries over any table, and any installed API.

Overview

BC versions BC26 to BC29. bc_data_* and bc_api_* need BC 29+
Hosting On-prem and BC Online
Auth On-prem NavUserPassword. BC Online: browser sign-in for the UI, device code for OData and BC’s MCP server
Tools 25, plus 10 prompts and 3 skills
Transports stdio, Streamable HTTP, REST
Runtime Node 20+
Tests 1328 unit/protocol, 194 integration against live BC (as of 2.4.0)

Install

On-prem, NavUserPassword. For BC Online, read docs/saas.md first: no password goes in env there.

Claude Code

claude mcp add business-central \
  -e BC_BASE_URL=http://your-bc-server/BC \
  -e BC_USERNAME=you \
  -e BC_PASSWORD=secret \
  -- npx -y business-central-mcp

Add --scope project to keep it to one repo.

VS Code

Click the Install badge above. VS Code asks for URL, username and password and writes the entry to your user mcp.json.

Claude Desktop

Download the .dxt from Releases, double-click it, fill in URL, username and password, restart Claude Desktop.

Anything else (Cursor, Grok, a workspace .vscode/mcp.json):

{
  "mcpServers": {
    "business-central": {
在 GitHub 查看完整 README

安装

npx -y business-central-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "business-central": { "command": "npx", "args": ["-y", "business-central-mcp"], "env": { "BC_BASE_URL": "http://your-bc-server/BC", "BC_USERNAME": "your-user", "BC_PASSWORD": "your-password" } } } }