跳过安装。2 分钟内即可运行。
在 cloud.anythingmcp.com 开始免费试用,一键添加 SAP Sales Cloud and Service Cloud (C4C),然后将你的 AI 客户端(Claude、ChatGPT、Copilot 或 Cursor)指向生成的 MCP 端点。无需 Docker,无需 git clone,无需任何工程经验。
摘要
通过 OData API 读取 SAP Sales Cloud 和 Service Cloud(Cloud for Customer,C4C):客户、联系人、线索、商机、销售报价、服务请求、产品和员工,另有通用 OData 工具可读取其他任何实体集。Basic 认证,只读。
试试这样问
SAP Sales Cloud and Service Cloud (C4C) 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → SAP Sales Cloud and Service Cloud (C4C)、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无
git clone、无本地服务器。
SAP Sales Cloud and Service Cloud (C4C) + ChatGPT
通过 OData API 读取 SAP Sales Cloud 和 Service Cloud(Cloud for Customer,C4C):客户、联系人、线索、商机、销售报价、服务请求、产品和员工,另有通用 OData 工具可读取其他任何实体集。Basic 认证,只读。
前提条件
完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:
SAP_C4C_HOST, SAP_C4C_USER, SAP_C4C_PASSWORD
步骤 1 — 获取凭证
设置大约需要 10 分钟。你需要一个 SAP Sales Cloud 或 Service Cloud(Cloud for Customer,C4C)租户,以及一个使用 Basic 认证的用户,最好是技术集成用户。
- 推荐使用技术集成用户。在 C4C 中进入 Administrator > Integration > Communication Systems,创建一个通信系统。然后在 Communication Arrangements 下创建一个通信协议,场景选 OData Services for Business Objects,认证选 User ID and Password,并选择 OData 服务(至少
c4codataapi)。通信协议会显示用户 ID,密码也在那里设置。 - 也可以使用一个 Basic 认证的业务用户,其业务角色需授予对 AI 要查看的工作中心的读取权限。
- 把
SAP_C4C_HOST设为租户主机,例如my123456.crm.ondemand.com,不带 https://,也不带路径,并填写SAP_C4C_USER和SAP_C4C_PASSWORD。 - 安装连接器,用 top 1 运行
sap_c4c_list_accounts检查访问权限。
只读:连接器读取租户的标准 OData V2 API https://<tenant>.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi,从不写入。SAP 每次调用都会检查用户的权限,因此 AI 只能看到通信协议或用户业务角色允许的内容。
可读取的内容:企业客户(客户和潜在客户)及其角色、状态、ABC 分类、行业、负责人、主地址、电话和电子邮件;联系人及其所属客户;线索及其生命周期状态、资格级别、来源和负责人;商机及其销售阶段、状态、成交概率、预期金额和预计成交日期,用于查看销售管道;销售报价及其净额和总额、有效期和所属商机;服务请求(工单)及其客户、联系人、状态、优先级、处理人、服务类别、到期日和 SLA 时间,用于查看服务积压;产品;以及员工,用于把负责人和处理人的 ID 转换为姓名。sap_c4c_guide 介绍工作流程,不消耗 API 调用。
其他任何实体集:通用 OData 工具可访问服务的其余部分。sap_c4c_list_services 显示服务所在位置,sap_c4c_describe_service 列出所有实体集(返回内容较大,缓存一天),sap_c4c_describe_entity 显示字段及其标签,sap_c4c_query 读取数据行,sap_c4c_get_entity 按 ObjectID 读取单条记录。
查询:过滤条件支持 eq、ne、ge、le、gt、lt、and、startswith 和 endswith;or 只能用于同一个字段。日期写作 datetimeoffset'2026-01-01T00:00:00Z',EntityLastChangedOn 可找出某个时间点之后的变更。search 是 SAP 的全文搜索。记录以 ObjectID 为键;AccountID 或 ID 等业务编号是单独的字段。AI 通过 select 只请求所需字段。
限制:每页最多 1000 行(先 top,再 skip);列表会返回总数。在大型数据集上 expand 较慢。
常见错误:401 表示用户名或密码错误,或用户被锁定。403 表示通信协议或用户的业务角色不包含该业务对象。每次调用都返回 404,通常是 SAP_C4C_HOST 填错了。400 会指出 API 不接受的字段或过滤条件;正确的字段名可用 sap_c4c_describe_entity 查看。
步骤 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 — 在 ChatGPT 中添加连接器
你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(
https://cloud.anythingmcp.com/mcp/…)。本指南中出现YOUR_SERVER_ID的地方都用它替换。
ChatGPT 在网页版的 Plugins 页面把 MCP 服务器添加为插件,仅付费套餐可用,不再需要开发者模式。在 Business 工作区中只有管理员和所有者可以添加;在 Enterprise 和 Edu 中,管理员可以授予 Create plugins with MCPs 权限。
- 前往 chatgpt.com/plugins,点击 Add,然后选择 Add custom MCP server。
- 填写名称,例如 Name:
SAP Sales Cloud and Service Cloud (C4C)。 - 在 Connection 下的 Server URL 中填入
https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID,Authentication 保持为 OAuth。 - 选择 I understand and want to continue,然后点击 Create as a plugin。ChatGPT 提示时,登录 AnythingMCP 并允许访问。
- 在个人插件中安装这个新插件,然后在对话中输入 @ 并选择它。
可用工具
| Tool | What it does |
|---|---|
sap_c4c_list_services | Where the SAP Sales Cloud and Service Cloud (C4C) OData service lives |
sap_c4c_describe_service | The entity sets of a SAP Sales Cloud and Service Cloud (C4C) OData service with their business labels, keys and whether they are analytical… |
sap_c4c_describe_entity | The fields of one entity set: labels, types, keys, the currency or unit field of each amount, the text field of each code, dimensions and… |
sap_c4c_query | Read rows from an entity set of SAP Sales Cloud and Service Cloud (C4C) |
sap_c4c_get_entity | Read one entity of SAP Sales Cloud and Service Cloud (C4C) by its key, optionally with related entities |
sap_c4c_guide | How to read SAP Sales Cloud and Service Cloud (C4C) through its OData API: the workflow, filter syntax, keys and ids, paging and known… |
sap_c4c_list_accounts | Corporate accounts (customers and prospects) from CorporateAccountCollection: ObjectID, AccountID, name, role (CRM000 customer, BUP002… |
sap_c4c_list_contacts | Contact persons from ContactCollection: ObjectID, ContactID, first and last name, job title and function, the account they belong to… |
sap_c4c_list_leads | Leads from LeadCollection: ObjectID, ID, name, life cycle status, qualification level, source, owner, account or company and contact, start… |
sap_c4c_list_opportunities | Opportunities from OpportunityCollection: ObjectID, ID, name, account, owner, sales phase, status, probability, expected value and… |
sap_c4c_list_sales_quotes | Sales quotes from SalesQuoteCollection: ObjectID, ID, name, account, status, net and gross amount with currency, valid-to date, owner and… |
sap_c4c_list_service_requests | Service requests (tickets) from ServiceRequestCollection: ObjectID, ID, subject, customer (BuyerPartyID) and contact, status, priority… |
sap_c4c_list_products | Products from ProductCollection: ObjectID, ProductID, description, status, product category, base unit of measure, usage and division |
sap_c4c_list_employees | Employees from EmployeeCollection: ObjectID, EmployeeID, name, job, e-mail, phone, organizational unit and user |
示例提示
- “列出本季度预计成交的未结商机,附上销售阶段、成交概率和预期金额。”
- “找到客户‘示例工业有限公司’,列出它的联系人和未关闭的服务请求。”
- “哪些高优先级的服务请求已经过了到期日?由谁在处理?”
- “按来源和资格级别列出过去 7 天创建的线索。”
- “哪些销售报价本月到期?它们分别属于哪些商机?”
FAQ
ChatGPT 免费套餐能用自定义 MCP 服务器吗? OpenAI 只为付费套餐提供自定义 MCP 服务器的说明,Free 套餐不在其列。
下一步
这份指南对你有帮助吗?