SAP Business One Order-to-Cash MCP Server
SAP Business One Order-to-Cash MCP Server
本项目将 SAP Business One Service Layer 的操作作为 Model Context Protocol (MCP) 工具公开,因此诸如 Claude 之类的智能体可以通过 stdio 执行完整的 Order-to-Cash 流程。
包含内容
Node.js + TypeScript MCP 服务器
使用 SAP Business One 会话 Cookie 进行身份验证,并在过期时自动重新登录
涵盖从报价到收款的 9 个 O2C 工具
由
.env驱动的配置
Related MCP server: SAP Business One MCP Server
项目结构
sap-b1-mcp-server/
|- src/
| \- server.ts
|- dist/
|- .env
|- .env.example
|- package.json
|- tsconfig.json
\- README.md工具
create_sales_quotationcreate_sales_ordercheck_atpcreate_deliveryget_pick_listconfirm_delivery_podcreate_ar_invoiceapply_incoming_paymentget_collections_worklist
环境
SAP_B1_BASE_URL=https://your-sap-server:50000/b1s/v1
SAP_B1_COMPANY=SBODemoUS
SAP_B1_USER=manager
SAP_B1_PASSWORD=yourpassword
NODE_TLS_REJECT_UNAUTHORIZED=0仅当你的 SAP Business One Service Layer 使用自签名证书时,才设置 NODE_TLS_REJECT_UNAUTHORIZED=0。
安装
npm install构建
npm run build运行
node dist/server.js预期启动日志:
SAP B1 MCP server running (stdio)Claude Desktop MCP 配置
{
"mcpServers": {
"sap-b1-o2c": {
"command": "node",
"args": ["/absolute/path/to/dist/server.js"],
"env": {
"SAP_B1_BASE_URL": "https://your-server:50000/b1s/v1",
"SAP_B1_COMPANY": "SBODemoUS",
"SAP_B1_USER": "manager",
"SAP_B1_PASSWORD": "yourpassword"
}
}
}
}注意事项
服务器通过 Service Layer REST API 连接 SAP Business One。
登录过期时会话 Cookie 会自动更新。
发票和付款工具是作为实时过账操作实现的,因此在智能体工作流中保留人工审批步骤是个好主意。
一些组织将承运人、POD 和审批元数据存储在用户自定义字段中。此脚手架默认将这些引用存储在单据备注中,以便在 SAP B1 租户之间保持可移植性。
常见问题
UNABLE_TO_VERIFY_LEAF_SIGNATURE:为自签名 SAP 证书设置NODE_TLS_REJECT_UNAUTHORIZED=0SAP B1 login failed:请确认基础 URL、公司数据库、用户名和密码ECONNREFUSED:确认 Service Layer 正在运行且可访问Cannot find module:运行npm install和npm run buildMCP 工具未显示:请确认 Claude MCP 配置中的绝对路径。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with Odoo ERP to perform sales tasks such as searching clients and products, and creating and confirming quotations via the MCP protocol.2MIT
- FlicenseNot gradedqualityDmaintenanceEnables interaction with SAP Business One via Service Layer REST API to retrieve and create business data such as partners, orders, invoices, items, and stock levels through natural language.1
- FlicenseNot gradedqualityBmaintenanceValidates SAP SD sales orders (material, pricing, credit) before creation using the MCP protocol, enabling clean-core order-to-cash automation.
- FlicenseNot gradedqualityCmaintenanceEnables interaction with SAP Business One Service Layer through MCP, providing tools for querying entities, checking sessions, and executing OData requests with optional write protection.
Related MCP Connectors
MCP Server for agents to onboard, pay, and provision services autonomously with InFlow
Brazilian fiscal MCP server - issue NF-e, NFC-e, NFS-e, CT-e, MDF-e and DC-e via SEFAZ.
Solana-native MCP gateway for SAP, DeFi tools, SNS identity, and x402 payments.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/parmarnaresh86/AgentSphere-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server