Business Central MCP Server Df495028

MCP运维云端

提供方 olederkach · 包名 business-central-mcp-server

运维云端 stdio · 本地进程 OAuth 授权 社区 / 第三方 Claude DesktopClaudeCursorCline
查看接入方式

为Microsoft Dynamics 365 Business Central提供AI代理连接服务的协议服务器,支持开发者和企业级部署,实现数据交互和自动化操作。

一句话选型结论

按资料字段整理

Business Central MCP Server Df495028 属于运维云端类 MCP 服务器,stdio · 本地进程,OAuth 授权,可直接接入 Claude Desktop、Claude、Cursor 等,有可直接执行的安装命令。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类运维云端 传输方式stdio · 本地进程 鉴权OAuth 授权 部署方式本地部署
GitHub 星标 0 仓库热度,无公开仓库时显示未标注
工具数 14 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

运维云端
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量14暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

支持客户端

适用场景

企业资源规划TypeScript本地部署AI集成数据交互自动化工具云计算

安装与配置

stdio · 本地进程 OAuth 授权
客户端在本机拉起子进程,数据不出本机
npx business-central-mcp-server --stdio

这条命令只是入口,具体启动参数请按官方文档补齐,不要直接照搬到别的服务器。

  1. 1
    准备运行环境

    stdio 服务在本地起进程,需要先装好 Node.js,再按安装命令拉取依赖。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后客户端会列出约 14 个工具,随便调一个只读工具确认能返回结果。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
云资源查询

查实例、存储、账单等云上资源状态。

部署与发布

把部署、重启、回滚这类操作接进对话。

监控与告警

拉取监控指标,异常时让模型帮你判断。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 资料标注 14 个工具,覆盖面较广,能满足多种调用。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 已适配 Claude Desktop、Claude、Cursor,换客户端不用重新研究配置。

先想清楚的地方

  • stdio 方式要求本地装好运行时(如 Node.js),换机器要重新装一遍。
  • 使用前要准备好OAuth 授权对应的凭据,并按最小权限配置。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在运维云端场景里让模型直接调用外部能力的人。
  • 已经在用 Claude Desktop、Claude 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 不方便管理密钥或第三方授权的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
Business Central MCP Server Df495028当前 14 stdio · 本地进程 本地部署 有 2026-05-17
lobehub 未标注 stdio · 本地进程 本地部署 有 2026-04-11
TrendRadar 未标注 stdio · 本地进程 本地部署 有 2026-04-13
Ui Tars Desktop 8a825770 未标注 stdio · 本地进程 本地部署 有 2026-05-17
ruflo 未标注 stdio · 本地进程 本地部署 有 2026-04-13
FastGPT 未标注 stdio · 本地进程 本地部署 有 2026-04-11

服务器档案

运维云端
字段来自项目仓库与公开索引,中文说明由本站标注
提供方olederkach上游标注的维护方 olederkach
分类运维云端本站按上游分类展示
连接方式stdio · 本地进程客户端在本机拉起子进程,数据不出本机
鉴权方式OAuth 授权远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时business-central-mcp-server · Node.js本地安装时用到的包标识与运行时
部署类型本地部署上游给出的部署形态
最近核验2026-05-17上游最后核验时间

详细介绍

13.2 KB
来自项目仓库与上游目录的原文,未做删改

Business Central MCP Server

Model Context Protocol server for Microsoft Dynamics 365 Business Central.

> Connect AI agents to Business Central data — from a single npx command for developers to a full Azure deployment for enterprise.


Two Ways to Use

npm (Developer) Azure (Enterprise)
Use case Local AI assistants, development, prototyping Production cloud services, multi-tenant
Transport stdio (stdin/stdout) HTTP/SSE
Clients Claude Desktop, Claude Code, Cline, Cursor Claude.ai, Copilot Studio, Azure AI Foundry
Setup time 2 minutes 15 minutes
Infrastructure None (runs locally) Azure Container Apps

Quick Start: npm (Developer Mode)

Option A: npx (no install)```bash

npx business-central-mcp-server --stdio


### Option B: Global install```bash
npm install -g business-central-mcp-server
business-central-mcp-server --stdio

Configure in Claude Desktop

Add to your claude_desktop_config.json:```json
{
"mcpServers": {
"business-central": {
"command": "npx",
"args": ["-y", "business-central-mcp-server", "--stdio"],
"env": {
"BC_TENANT_ID": "<your-tenant-id>",
"BC_CLIENT_ID": "<your-client-id>",
"BC_CLIENT_SECRET": "<your-client-secret>",
"BC_ENVIRONMENT_NAME": "Sandbox",
"BC_COMPANY_ID": "<your-company-id>"
}
}
}
}


### Configure in Claude Code

Create `.mcp.json` in your project root:```json
{
  &quot;mcpServers&quot;: {
    &quot;business-central&quot;: {
      &quot;command&quot;: &quot;npx&quot;,
      &quot;args&quot;: [&quot;-y&quot;, &quot;business-central-mcp-server&quot;, &quot;--stdio&quot;],
      &quot;env&quot;: {
        &quot;BC_TENANT_ID&quot;: &quot;&lt;your-tenant-id&gt;&quot;,
        &quot;BC_CLIENT_ID&quot;: &quot;&lt;your-client-id&gt;&quot;,
        &quot;BC_CLIENT_SECRET&quot;: &quot;&lt;your-client-secret&gt;&quot;,
        &quot;BC_ENVIRONMENT_NAME&quot;: &quot;Sandbox&quot;,
        &quot;BC_COMPANY_ID&quot;: &quot;&lt;your-company-id&gt;&quot;
      }
    }
  }
}

CLI Arguments

You can pass configuration as CLI arguments instead of environment variables:```bash
business-central-mcp-server --stdio \
--tenantId <tenant-id> \
--clientId <client-id> \
--clientSecret <client-secret> \
--environment Sandbox \
--companyId <company-id>


### Getting Your Credentials

1. **Azure AD App Registration** — Register an app in Azure Portal &gt; App registrations
2. **API Permissions** — Add `Dynamics 365 Business Central &gt; API.ReadWrite.All` (Application permission)
3. **Client Secret** — Create under Certificates &amp; secrets
4. **Tenant ID** — Found on the app registration Overview page
5. **Company ID** — Use the `list_companies` tool after connecting, or find it in BC Admin Center

---

## Quick Start: Azure (Enterprise Mode)

For production deployments serving cloud AI clients (Claude.ai, Copilot Studio, Azure AI Foundry).

### Prerequisites

- Azure subscription
- Business Central tenant with API access
- Azure AD app registration (see Deployment Guide)

### Deploy

Use the GitHub Actions workflow or deploy manually:```bash
git clone https://github.com/olederkach/business-central-mcp-server.git
cd business-central-mcp-server

# Deploy to Azure Container Apps (see docs/DEPLOYMENT.md for full walkthrough)

What gets deployed:

  • Azure Container App (auto-scaling, 1-10 replicas)
  • Azure Container Registry
  • Application Insights (telemetry, optional)

Authentication Modes

Mode Server AUTH_MODE Use Case
OAuth oauth Claude.ai, Copilot Studio (user-level auth)
API Key api-key Azure AI Foundry, simple integrations

Connect Claude.ai (OAuth)```

Claude.ai > Settings > MCP Servers > Add Custom
Name: Business Central
URL: https://<your-server>.azurecontainerapps.io/mcp
Client ID: <your-azure-client-id>
Client Secret: <your-azure-client-secret>


### Connect Copilot Studio (OAuth Dynamic Discovery)```
Copilot Studio &gt; Knowledge &gt; Add knowledge &gt; MCP
  Name: BC-MCP-Server
  URL: https://&lt;your-server&gt;.azurecontainerapps.io/mcp
  Auth: OAuth 2.0 &gt; Dynamic discovery
  Client ID: &lt;your-azure-client-id&gt;
  Client Secret: &lt;your-azure-client-secret&gt;
  Scope: api://&lt;your-azure-client-id&gt;/.default openid

Connect Azure AI Foundry (API Key)```

Settings > Connections > + New connection > MCP
Endpoint: https://<your-server>.azurecontainerapps.io/mcp
Authentication: API Key (X-API-Key header)


See docs/DEPLOYMENT.md for the complete deployment guide and docs/MCP_CLIENT_SETUP.md for all client configurations.

---

## Tools (14)

### API Context Management

| Tool | Description | Type |
|------|-------------|------|
| `list_bc_api_contexts` | Discover available API routes | read-only |
| `set_active_api` | Switch publisher/group/version | state change |
| `get_active_api` | Get current API context | read-only |

### Company Management

| Tool | Description | Type |
|------|-------------|------|
| `list_companies` | List all BC companies | read-only |
| `set_active_company` | Switch active company | state change |
| `get_active_company` | Get current company | read-only |

### Resource Discovery

| Tool | Description | Type |
|------|-------------|------|
| `list_resources` | List all entity names | read-only |
| `get_odata_metadata` | Search OData schema | read-only |
| `get_resource_schema` | Get entity fields &amp; types | read-only |

### CRUD Operations

| Tool | Description | Type |
|------|-------------|------|
| `list_records` | Query with OData filter/sort/page | read-only |
| `create_record` | Create new record | destructive |
| `update_record` | Patch existing record (ETag support) | destructive |
| `delete_record` | Permanently remove record | destructive |
| `find_records_by_field` | Search by field value | read-only |

### Example```
User: &quot;Show me customers in Atlanta&quot;

Tool call: list_records
Arguments: { &quot;resource&quot;: &quot;customers&quot;, &quot;filter&quot;: &quot;city eq &#x27;Atlanta&#x27;&quot;, &quot;top&quot;: 10 }

Multi-API Support

Business Central exposes multiple API surfaces. This server supports all of them:

  • Standard BC API v2.0 — customers, vendors, items, salesOrders, etc.
  • Microsoft Extended APIs — automation, analytics
  • Custom ISV APIs — third-party extension APIs

Switch at runtime:```
set_active_api({ publisher: "microsoft", group: "automation", version: "v1.0" })


---

## Configuration

### Environment Variables

#### Required (both modes)

| Variable | Description |
|----------|-------------|
| `BC_TENANT_ID` | Azure AD tenant GUID |
| `BC_CLIENT_ID` | App registration client ID |
| `BC_CLIENT_SECRET` | App registration client secret |
| `BC_ENVIRONMENT_NAME` | `Sandbox` or `Production` |

#### Recommended

| Variable | Default | Description |
|----------|---------|-------------|
| `BC_COMPANY_ID` | *(auto-discovered)* | Default company UUID |

#### Enterprise (HTTP mode only)

| Variable | Default | Description |
|----------|---------|-------------|
| `MCP_API_KEYS` | — | Comma-separated API keys for client auth |
| `AUTH_MODE` | `api-key` | `api-key` or `oauth` |
| `CORS_ORIGINS` | `*` | Allowed origins |
| `PORT` | `3005` | HTTP port |
| `KEY_VAULT_NAME` | — | Azure Key Vault for secrets |
| `APPLICATIONINSIGHTS_CONNECTION_STRING` | — | Monitoring |
| `RATE_LIMIT_ENABLED` | `true` | Enable rate limiting |

See .env.example for the complete reference.

---

## Architecture```
                    ┌──────────────────────────────┐
                    │        AI Clients             │
                    │  Claude Desktop/Code (stdio)  │
                    │  Copilot Studio (HTTP)        │
                    │  Azure AI Foundry (HTTP)      │
                    └──────────┬───────────────────┘
                               │
              ┌────────────────┼────────────────┐
              │ stdio          │                │ HTTP/SSE
              ▼                │                ▼
    ┌─────────────────┐        │    ┌─────────────────────────┐
    │  stdio-server    │        │    │  Express + MCP Protocol  │
    │  (npm/npx)       │        │    │  (Azure Container Apps)  │
    │                  │        │    │                          │
    │  14 Generic      │        │    │  API Key / OAuth Auth    │
    │  Tools           │        │    │  Rate Limiting           │
    └────────┬────────┘        │    │  App Insights            │
             │                 │    └───────────┬──────────────┘
             │                 │                │
             └────────────────┼────────────────┘
                               │
                               ▼
                    ┌──────────────────────────────┐
                    │  Business Central API         │
                    │  OAuth 2.0 (client_credentials)│
                    │  OData V4.0                   │
                    └──────────────────────────────┘

Key Components

Component npm Mode Enterprise Mode
Transport stdio (stdin/stdout) HTTP + SSE
Tools 14 generic tools 14 generic + entity-specific
Auth (BC) OAuth client_credentials OAuth client_credentials
Auth (clients) N/A (local process) API Key or OAuth
State In-process (session map) Per-request
Monitoring stderr logs Application Insights
Secrets env vars / CLI args Azure Key Vault

Development

Local Setup```bash

git clone https://github.com/olederkach/business-central-mcp-server.git
cd business-central-mcp-server
npm install

Configure

cp .env.example .env

Edit .env with your BC credentials

Development (stdio)

npm run dev:stdio

Development (HTTP)

npm run dev:http

Production build

npm run build
npm start


### Build &amp; Pack```bash
npm run build          # Compile TypeScript
npm pack               # Create .tgz for local install
npm link               # Symlink for local development

Project Structure```

src/
├── index.ts # Entry point (stdio/HTTP dispatcher)
├── version.ts # Centralized version constant
├── config.ts # CLI args + env var parsing
├── server.ts # Express HTTP server
├── api/ # API context & company management
├── auth/ # Authentication (OAuth, API Key, DCR)
├── bc/ # Business Central client & metadata
├── config/ # Environment validation
├── errors/ # Error codes & builders
├── mcp/ # MCP protocol handler & prompts
├── middleware/ # Express middleware
├── monitoring/ # App Insights & analytics
├── openapi/ # OpenAPI spec generation
├── tools/ # Tool definitions & executors
│ ├── generic-tools.ts # 14 generic tool definitions
│ ├── generic-executor.ts # Generic tool executor
│ ├── executor.ts # Entity-specific executor (HTTP mode)
│ └── generator.ts # Tool generator from metadata
├── transports/ # stdio, SSE, Copilot SSE servers
└── utils/ # Logger, validators, sanitizer
```


Troubleshooting

"No tools available" in Copilot Studio UI

Expected with MCP protocol 2024-11-05. Tools work at runtime — test from the chat interface.

"Authentication failed"

  • npm mode: Verify BC_CLIENT_ID, BC_CLIENT_SECRET, and BC_TENANT_ID
  • Enterprise: Also check MCP_API_KEYS and X-API-Key header

"Cannot connect to Business Central"

  1. Verify Azure AD app registration has Dynamics 365 Business Central &gt; API.ReadWrite.All
  2. Confirm the app has admin consent granted
  3. Test the credentials directly:bash curl -X POST &quot;https://login.microsoftonline.com/&lt;tenant-id&gt;/oauth2/v2.0/token&quot; \ -d &quot;client_id=&lt;client-id&gt;&amp;client_secret=&lt;secret&gt;&amp;scope=https://api.businesscentral.dynamics.com/.default&amp;grant_type=client_credentials&quot;

"Company not found"

Run list_companies first to get available company IDs, then use set_active_company or set BC_COMPANY_ID.


Documentation

Document Description
DEPLOYMENT.md Azure deployment guide
QUICK_START.md 5-minute quick start
Copilot Studio Setup Copilot Studio integration
Azure AI Foundry Azure AI Foundry setup
API Reference OData parameters, errors, limits
Architecture ADRs and design decisions
SECURITY.md Security policies
CHANGELOG.md Version history

License

MIT — see LICENSE


Links

  • MCP Protocol Specification
  • BC API Documentation
  • Azure Container Apps

Built for the Business Central and AI community.

常见问题

8 问
答案由本站依据条目字段整理,不引用上游原文
Business Central MCP Server Df495028 怎么安装?

在客户端按下面的安装命令接入:npx business-central-mcp-server --stdio。对应的包名是 business-central-mcp-server。装完在客户端配置里引用同一个包或端点。

Business Central MCP Server Df495028 怎么在 Claude Desktop、Claude、Cursor 里配置?

它的传输方式是stdio · 本地进程,在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,配置才会生效。

Business Central MCP Server Df495028 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Business Central MCP Server Df495028 需要 API Key 吗?

资料标注需要OAuth 授权认证,使用前准备好对应凭据,并按最小权限配置。

Business Central MCP Server Df495028 支持哪些客户端?

资料标注支持 Claude Desktop、Claude、Cursor、Cline;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

Business Central MCP Server Df495028 能提供哪些能力?

资料显示约 14 个工具;能力标签包括 数据交互、TypeScript、Claude、云计算。具体工具清单以官方文档为准。

Business Central MCP Server Df495028 需要什么运行环境?

运行时为 Node.js;属于本地进程,需要在本机装好运行环境。

Business Central MCP Server Df495028 是本地还是远程?

它是本地进程(stdio),由客户端在本机拉起。传输方式为stdio · 本地进程。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-05-17。