Skip to main content
Glama
kingdee-mcp

kingdee-mcp

by kknocookie

kingdee-mcp

一个用于查询 Kingdee-ierp(金蝶云苍穹) 的 MCP 服务,基于 uvx 打包。

功能

  • 查询销售订单

  • 查询生产工单

  • 查询 SO-MO 关联关系

  • 查询交付风险

  • 查询物料短缺

  • 导出 SO-MO Excel 报表

Related MCP server: sap-mcp

环境变量

在启动服务之前,请先设置以下环境变量:

$env:KINGDEE_BASE_URL = "https://your-host/ierp/kapi"
$env:KINGDEE_CLIENT_ID = "your-client-id"
$env:KINGDEE_CLIENT_SECRET = "your-client-secret"
$env:KINGDEE_USERNAME = "your-username"
$env:KINGDEE_ACCOUNT_ID = "your-account-id"
$env:KINGDEE_LANGUAGE = "zh_CN"

必填变量:

  • KINGDEE_BASE_URL

  • KINGDEE_CLIENT_ID

  • KINGDEE_CLIENT_SECRET

  • KINGDEE_USERNAME

  • KINGDEE_ACCOUNT_ID

第一步

1.第三方应用——新增 2.获取CLIENT_ID,CLIENT_SECRET,ACCOUNT_ID

第二步

pip install kingdee-mcp-ierp

第三步

设置配置

Trae MCP 配置

你也可以直接复制 .mcp.json.example,然后填入你自己的配置值。

{
  "mcpServers": {
    "kingdee": {
      "command": "uvx",
      "args": ["kingdee-mcp-ierp"],
      "env": {
        "KINGDEE_BASE_URL": "https://your-host/ierp/kapi",
        "KINGDEE_CLIENT_ID": "your-client-id",
        "KINGDEE_CLIENT_SECRET": "your-client-secret",
        "KINGDEE_USERNAME": "your-username",
        "KINGDEE_ACCOUNT_ID": "your-account-id",
        "KINGDEE_LANGUAGE": "zh_CN"
      }
    }
  }
}

Available Tools

6 tools
export_so_mo_reportC

导出完整的 SO-MO 关联报告为 Excel 文件。

Inputs: end_date (required), start_date (required). Returns: result

query_delivery_riskC

查询存在交货风险的工单。

Inputs: end_date (required), start_date (required). Returns: result

query_material_shortageC

查询欠料/瓶颈物料汇总。

Inputs: end_date (required), start_date (required), top_n. Returns: result

query_mft_ordersC

查询金蝶云苍穹生产工单列表。

Inputs: end_date (required), start_date (required). Returns: result

query_sale_ordersC

查询金蝶云苍穹销售订单列表。

Inputs: end_date (required), start_date (required). Returns: result

query_so_mo_relationB

查询销售订单与生产工单的关联关系,包含完工状态、交货风险和领料情况。

Inputs: end_date (required), start_date (required), limit. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool targets a distinct aspect: sales orders, production orders, their relation, material shortages, delivery risks, and a report export. No overlapping purposes.

    Naming Consistency4/5

    Five tools use the consistent 'query_' prefix with noun phrases, but 'export_so_mo_report' deviates with 'export_' instead of 'query_', introducing minor inconsistency.

    Tool Count5/5

    Six tools is well-scoped for a domain focused on querying and reporting in a manufacturing/sales context. Each tool serves a clear purpose without excess.

    Completeness4/5

    The set covers key query and reporting needs: orders, relations, risks, shortages, and an export. Missing CRUD operations, but for a read-only/reporting server, this is appropriate.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      MCP server for Kingdee K3Cloud ERP that enables AI assistants to query and operate ERP data via natural language through the Model Context Protocol.
      15
      409 PyPI
      104
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP server for SAP S/4HANA via the ADT API, enabling querying and reading SAP systems with production write protection.
      14 npm
      MIT
    • F
      license
      Not graded
      quality
      B
      maintenance
      MCP server that enables AI platforms to search products, customers, and warehouses, and prepare and submit sales orders to a fixed ERP endpoint with per-session bearer authentication.
      -
    • A
      license
      B
      quality
      D
      maintenance
      MCP server for Kingdee Cloud (K3Cloud) ERP that enables AI assistants to query and operate ERP data through natural language, supporting bills, metadata, and read/write operations.
      8
      2
      Apache 2.0