连接器指南阅读约 6 分钟32 个 MCP 工具7 种语言

Business Central MCP 连接 Microsoft Copilot

让你的 AI 在 Business Central 中工作:查找客户、供应商和物料,读取销售报价、销售订单和销售发票、采购发票、总账、科目表和维度,并创建客户以及报价和订单草稿。通过标准 API v2.0 支持 Business Central online,使用你的 Microsoft 账户登录。

HC作者:HelpCode 团队更新于 6 分钟阅读 在 GitHub 开源

无需信用卡 · 7 天试用 · 提供自托管方案

Microsoft Dynamics 365 Business Central

Microsoft Dynamics 365 Business Central

Let your AI work in Business Central: look up customers, vendors and items, read sales quotes, orders and invoices, purchase invoices, the general ledger, chart of accounts and dimensions, and create customers and draft quotes and orders. Business Central online through the standard API v2.0, signed in with your Microsoft account.

个工具

32

区域

INTL

类别

ERP

身份验证

OAuth 2.0

所需环境变量

MICROSOFT_CLIENT_IDMICROSOFT_CLIENT_SECRETMICROSOFT_TENANT_IDBC_ENVIRONMENT
在 Cloud 上一键安装

7 天免费试用 · 无需信用卡

  • 7 天免费试用
    无需信用卡
  • 符合 GDPR,SOC 2 就绪
    数据驻留欧盟,审计日志
  • 在 GitHub 开源
    开源 · AGPL-3.0
  • 支持 ChatGPT、Claude、Gemini
    任何兼容 MCP 的客户端

摘要

让你的 AI 在 Business Central 中工作:查找客户、供应商和物料,读取销售报价、销售订单和销售发票、采购发票、总账、科目表和维度,并创建客户以及报价和订单草稿。通过标准 API v2.0 支持 Business Central online,使用你的 Microsoft 账户登录。

引导式设置

2 分钟将 Microsoft Dynamics 365 Business Central 连接到 Microsoft Copilot

开始 AnythingMCP Cloud 免费试用,在引导式设置中连接 Microsoft Dynamics 365 Business Central,再把你的 MCP URL 添加到 Microsoft Copilot。无需代码,也无需自行运行服务器。

无需信用卡 · 7 天试用 · 提供自托管方案

试试这样问

Microsoft Dynamics 365 Business Central 的示例提示

点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。

Microsoft Dynamics 365 Business Central · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Microsoft Dynamics 365 Business Central、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无 git clone、无本地服务器。

Dynamics 365 Business Central + Microsoft Copilot

让你的 AI 在 Business Central 中工作:查找客户、供应商和物料,读取销售报价、销售订单和销售发票、采购发票、总账、科目表和维度,并创建客户以及报价和订单草稿。通过标准 API v2.0 支持 Business Central online,使用你的 Microsoft 账户登录。

前提条件

完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:

MICROSOFT_CLIENT_ID, MICROSOFT_CLIENT_SECRET, MICROSOFT_TENANT_ID, BC_ENVIRONMENT

步骤 1 — 获取凭证

  1. 打开 Microsoft Entra 管理中心(https://entra.microsoft.com)→ Applications → App registrations → New registration,也可以复用你为 Outlook、OneDrive 或 SharePoint 连接器创建的应用。通常选择 Accounts in this organizational directory only。
  2. 添加平台为 Web 的重定向 URI:https://cloud.anythingmcp.com/api/mcp-oauth/callback(如果你自行托管 AnythingMCP:<your AnythingMCP URL>/api/mcp-oauth/callback)。它必须完全一致,否则 Microsoft 会返回 AADSTS50011。
  3. 在 API permissions → Add a permission → Dynamics 365 Business Central → Delegated permissions 下勾选 Financials.ReadWrite.All(以及 user_impersonation)。如果你的组织不允许用户自行同意,请点击 Grant admin consent。
  4. 在 Certificates & secrets → New client secret 下复制密钥的 Value。它只显示一次;你需要的不是 Secret ID。
  5. 填写 MICROSOFT_CLIENT_ID(即 Application (client) ID)、MICROSOFT_CLIENT_SECRET、MICROSOFT_TENANT_ID 和 BC_ENVIRONMENT,然后安装连接器。
  6. 点击 Authorize with Provider,用一个 Business Central 用户登录。访问令牌会自动续期。
  7. 运行 bc_list_companies。其他所有工具都在某一个公司内工作,并需要该公司的 id。

租户和环境:MICROSOFT_TENANT_ID 是你的 Directory (tenant) ID,或 contoso.onmicrosoft.com 这样的域名。common 和 organizations 在这里不可用,因为租户是 Business Central 地址的一部分。BC_ENVIRONMENT 是环境名称,须与 Business Central 管理中心中显示的完全一致:大多数正式租户为 Production,测试环境为 Sandbox 或你自己起的名称。bc_list_environments 会列出这些名称。请先在沙盒中试用连接器:在生产环境中,它创建的客户和单据都是真实的。

与用户相同的权限:每次调用都以登录用户的身份运行,使用该用户的 Business Central 许可证和权限集。AI 能看到和修改的,正是该用户被允许的内容。

读取和写入的内容:客户、供应商、物料、销售报价、销售订单和销售发票、采购发票、总账分录、科目表、维度和员工,此外还可以通过 bc_query 访问标准 API v2.0 的任何其他资源,例如联系人、采购订单、贷项通知单、应收和应付账龄或试算平衡表。它可以创建客户以及带明细行的销售报价和销售订单,并更新客户。单据始终保持为未结草稿:不会下达、发货、开票或过账。创建单据前,AI 会先和你确认客户、物料、数量和价格。

安装时默认关闭:bc_delete_customer、bc_make_order_from_quote、bc_delete_sales_quote 和 bc_delete_sales_order。删除记录或把报价转为订单都无法撤销,因此只有在需要时才逐个打开这些工具。

限制:Business Central 允许每个用户每 5 分钟约 6,000 次 API 调用;超出后,它会要求连接器等待。

常见错误:401 表示授权已被撤销或客户端密钥已过期:如有需要填入新密钥,然后重新授权。403:用户缺少许可证或权限集,或缺少管理员同意。404 NoEnvironment:BC_ENVIRONMENT 或 MICROSOFT_TENANT_ID 有误。412:记录在读取后被他人修改过,因此 AI 会重新读取。

仅支持 Business Central online:不涵盖本地部署,较旧的 NAV 部署有专门的 Dynamics NAV 连接器。扩展发布的自定义 API 无法访问。

步骤 2 — 安装 adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

步骤 3 — 在 Microsoft Copilot 中添加连接器

你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(https://cloud.anythingmcp.com/mcp/…)。本指南中出现 YOUR_SERVER_ID 的地方都用它替换。

Microsoft Copilot 通过在 Copilot Studio 中构建的智能体使用 MCP 服务器:把 AnythingMCP 作为工具添加到智能体,然后把智能体发布到 Microsoft 365 Copilot 和 Teams。Copilot Studio 从 Microsoft 的云端通过 Streamable HTTP 连接,AnythingMCP 支持这种方式。

  1. 在 Copilot Studio 中打开你的智能体(或新建一个),进入 Tools,选择 Add a tool → New tool → Model Context Protocol。
  2. 填写 Server name(例如 AnythingMCP)、说明连接器用途的 Server description,以及 Server URL https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID。Copilot Studio 根据描述决定何时调用该服务器。
  3. 身份验证选择 API key,把 Type 设为 Header,请求头名称填 X-API-Key,然后选择 Create。
  4. 在 Add tool 中选择 Create a new connection,粘贴 AnythingMCP 的 MCP API 密钥(MCP Servers → 你的服务器 → API keys),然后选择 Add to agent。
  5. 在智能体的 Test 窗格中试一试:提出需要用到 Dynamics 365 Business Central 的工具的请求。
  6. 选择 Publish,然后进入 Channels → Microsoft 365 and Microsoft Teams,保持勾选 Make agent available in Microsoft Copilot,再选择 Add channel。See agent in Teams 会为你安装该智能体;在 Microsoft 365 Copilot 中输入 @ 并选择该智能体。

希望每个用户各自登录?请选择 OAuth 2.0 → Dynamic discovery 代替 API 密钥:每个用户会在智能体首次调用时登录 AnythingMCP。

自托管?请用你实例的公网 HTTPS 地址替换 https://cloud.anythingmcp.com。Copilot Studio 从 Microsoft 的云端连接,因此 localhost 无法使用。

可用工具

ToolWhat it does
bc_list_environmentsList the Business Central environments of the tenant: name, type (Production or Sandbox), country and web client URL
bc_list_companiesList the companies in the connected environment with their id, name and display name
bc_list_customersList or search customers: number, name, address, phone, email, balance, credit limit, currency, blocked state
bc_get_customerRead one customer with every field, including its @odata.etag for updates
bc_create_customerCreate a customer
bc_update_customerChange fields of one customer; fields left out keep their values
bc_delete_customerDelete one customer
bc_list_vendorsList or search vendors (suppliers): number, name, address, phone, email, balance, currency, blocked state
bc_get_vendorRead one vendor with every field: address, contact details, balance, payment terms and its @odata.etag
bc_list_itemsList or search items: number, name, type (Inventory, Service, Non-Inventory), category, inventory on hand, unit price, unit cost, base unit…
bc_get_itemRead one item with every field: prices, cost, inventory, units of measure, GTIN, category
bc_list_sales_quotesList sales quotes: number, customer, dates, status (Draft, Sent, Accepted, Expired), amounts
bc_get_sales_quoteRead one sales quote with every header field; expand=salesQuoteLines adds the lines
bc_create_sales_quoteCreate a sales quote for a customer, optionally with its lines in the same call
bc_add_sales_quote_lineAdd one line to an open sales quote: an item with quantity and optionally price and discount, a G/L account, a resource or a comment
bc_make_order_from_quoteTurn a sales quote into a sales order (Business Central's Make Order)
bc_delete_sales_quoteDelete one sales quote with its lines
bc_list_sales_ordersList sales orders: number, customer, order and delivery dates, status (Draft, In Review, Open), fully shipped flag, amounts
bc_get_sales_orderRead one sales order with every header field; expand=salesOrderLines adds the lines with shipped and invoiced quantities
bc_create_sales_orderCreate a sales order for a customer, optionally with its lines in the same call
bc_add_sales_order_lineAdd one line to an open sales order: an item with quantity and optionally price and discount, a G/L account, a resource or a comment
bc_delete_sales_orderDelete one open sales order with its lines
bc_list_sales_invoicesList sales invoices: number, customer, invoice and due dates, status (Draft, In Review, Open, Paid, Canceled, Corrective), total and…
bc_get_sales_invoiceRead one sales invoice with every header field; expand=salesInvoiceLines adds the lines
bc_list_purchase_invoicesList purchase invoices (vendor bills): number, vendor, vendor invoice number, invoice and due dates, status (Draft, In Review, Open, Paid…
bc_get_purchase_invoiceRead one purchase invoice with every header field; expand=purchaseInvoiceLines adds the lines
bc_list_general_ledger_entriesList posted general ledger entries: entry number, posting date, document type and number, G/L account, description, debit and credit amount
bc_list_accountsList the chart of accounts (G/L accounts): number, name, category (Assets, Liabilities, Equity, Income, Cost of Goods Sold, Expense)…
bc_list_dimensionsList the dimensions (for example DEPARTMENT, PROJECT, AREA) with their codes. bc_list_dimension_values lists the values of one
bc_list_dimension_valuesList the values of one dimension, e.g. the departments of DEPARTMENT, with code and name
bc_list_employeesList employees: number, name, job title, email, phone, status (Active, Inactive, Terminated), employment date
bc_queryRead any other API v2.0 resource of a company that has no dedicated tool, e.g. contacts, purchaseOrders, salesCreditMemos, salesShipments…

示例提示

  • “哪些客户有逾期发票?每个客户的总额是多少?”
  • “显示本月尚未全部发货的销售订单。”
  • “为 Adatum Corporation 创建一份销售报价,包含 10 个物料 1896-S,保存前先给我看看。”
  • “我们 9 月在收入科目上过账了什么?请按部门列出。”

FAQ

这适用于哪个 Copilot? 适用于工作中的 Microsoft 365 Copilot,通过 Copilot Studio 的智能体实现。面向个人账户的 Microsoft Copilot 应用无法添加自己的 MCP 服务器。

我需要什么? 一个可以使用 Copilot Studio 的工作账户(许可证或试用版),用于构建智能体。在 Microsoft 365 Copilot 或 Teams 中使用它的人需要拥有该智能体的访问权限:把它共享给他们,或请管理员为整个组织发布。如果你的组织对 Power Platform 连接器设置了数据策略,这些策略同样适用于 MCP 服务器。

智能体不调用工具。 检查请求头名称是否正好是 X-API-Key,密钥是否属于与 URL 相同的 MCP 服务器,并把 Server description 写得具体:Copilot Studio 根据它决定何时调用服务器。每次修改后重新发布智能体;在已打开的对话中输入 "start over" 即可使用新版本。

下一步

这份指南对你有帮助吗?

2 分钟将 Microsoft Dynamics 365 Business Central 连接到 Microsoft Copilot

开始 AnythingMCP Cloud 免费试用,在引导式设置中连接 Microsoft Dynamics 365 Business Central,再把你的 MCP URL 添加到 Microsoft Copilot。无需代码,也无需自行运行服务器。

相关指南

连接器

Business Central MCP 连接 ChatGPT

让你的 AI 在 Business Central 中工作:查找客户、供应商和物料,读取销售报价、销售订单和销售发票、采购发票、总账、科目表和维度,并创建客户以及报价和订单草稿。通过标准 API v2.0 支持 Business Central online,使用你的 Microsoft 账户登录。

连接器

Business Central MCP 连接 Claude

让你的 AI 在 Business Central 中工作:查找客户、供应商和物料,读取销售报价、销售订单和销售发票、采购发票、总账、科目表和维度,并创建客户以及报价和订单草稿。通过标准 API v2.0 支持 Business Central online,使用你的 Microsoft 账户登录。

连接器

Business Central MCP 连接 Cursor

让你的 AI 在 Business Central 中工作:查找客户、供应商和物料,读取销售报价、销售订单和销售发票、采购发票、总账、科目表和维度,并创建客户以及报价和订单草稿。通过标准 API v2.0 支持 Business Central online,使用你的 Microsoft 账户登录。

连接器

Business Central MCP 连接 Gemini CLI

让你的 AI 在 Business Central 中工作:查找客户、供应商和物料,读取销售报价、销售订单和销售发票、采购发票、总账、科目表和维度,并创建客户以及报价和订单草稿。通过标准 API v2.0 支持 Business Central online,使用你的 Microsoft 账户登录。

连接器

Business Central MCP 连接 Meta Muse

让你的 AI 在 Business Central 中工作:查找客户、供应商和物料,读取销售报价、销售订单和销售发票、采购发票、总账、科目表和维度,并创建客户以及报价和订单草稿。通过标准 API v2.0 支持 Business Central online,使用你的 Microsoft 账户登录。

连接器

Business Central MCP 服务器:客户与销售

让你的 AI 在 Business Central 中工作:查找客户、供应商和物料,读取销售报价、销售订单和销售发票、采购发票、总账、科目表和维度,并创建客户以及报价和订单草稿。通过标准 API v2.0 支持 Business Central online,使用你的 Microsoft 账户登录。