kingdee-mcp-proxy
Enables AI agents to safely query Kingdee Cloud Galaxy ERP with read-only mode, write confirmation gates, and full audit logging.
README
kingdee-mcp-proxy 🐟
Production-grade MCP proxy that lets AI Agents (Claude / Cursor / any MCP client) safely query Kingdee Cloud Galaxy (金蝶云星空) ERP — with read-only mode, write confirmation gates, and full audit logging.
让 AI Agent 用自然语言安全查询/操作金蝶云星空 ERP:只读模式、写操作确认闸门、全链路审计日志。
⚡ Battle-tested: running in production since Aug 2026, querying real ERP data daily via official Kingdee OpenAPI (
ExecuteBillQuery).
Why this exists
Community MCP connectors for Kingdee typically hand the AI a master key: admin credentials, raw secrets in prompts, unrestricted writes, no audit trail. That's how you get an AI deleting your purchase orders.
This project takes the zero-trust approach:
| Risk | Common approach | This proxy |
|---|---|---|
| Credentials | Secrets exposed to LLM context | Keys live only server-side in .env, never enter model context |
| Permissions | Admin/SA account | Dedicated least-privilege integration account |
| Write ops | AI can save/submit/audit/delete directly | READONLY=true → write tools are physically not registered; when enabled: preview → human confirm → execute |
| Data leakage | Raw tables dumped to external LLM | Aggregation at proxy; forced LIMIT (default 100, max 1000) |
| Audit | None | Append-only audit log: who / which tool / sanitized params / row count / latency |
Quick start
git clone https://github.com/YOUR_NAME/kingdee-mcp-proxy.git
cd kingdee-mcp-proxy
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env # fill in your Kingdee integration account
python -m proxy.server # stdio mode (Claude Desktop / WorkBuddy)
python -m proxy.server --transport sse --host 0.0.0.0 --port 8181 # team-shared SSE mode
Point your MCP client at it:
{ "mcpServers": { "kingdee": {
"command": "python",
"args": ["/path/to/proxy/server.py"],
"env": { "READONLY": "true" } } } }
Then just ask: "查一下上个月的物料入库单" → done.
Tools
Read-only: query_bill (generic bill query) · view_bill (bill detail) · health
Write (only registered when READONLY=false, always gated):
preview_save_bill → preview_submit_bills → preview_audit_bills → confirm_action
Setup on Kingdee side (5 min)
- 金蝶后台:
系统管理 → 第三方系统登录授权 → 新增 - Create a dedicated integration account (not Administrator), grant only needed query modules
- Copy AppID / AppSecret / AcctID into
.env
Full checklist: see 安全核对清单 (WIP)
Business value / 商业价值
- For CFOs/IT managers: give every employee an AI analyst over ERP data without opening security holes
- Works with: Claude Desktop, Cursor, WorkBuddy, or any MCP-compatible agent
- I also do custom ERP×AI integrations (UFIDA/SAP/self-built systems): → contact below
Dual licensing
- Open source: AGPL-3.0
- Commercial license available if you need to embed this in closed-source products or want SLA support → open an issue titled
[commercial]
Contact
- Issues & PRs welcome
- Custom integration inquiries: leave a comment in Discussions
- 定制企业 AI 落地(MCP 开发 / 私有化部署 / Agent 工作流):请提 issue 或邮件联系
⭐ If this saved you a week of work, star the repo — it helps other Chinese ERP teams find it.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.