摘要
Cafe24 管理 API 适用于在韩国和日本建立的 Cafe24 商店:订单、商品和收件人、带有追踪号码的发货、取消、退货和换货索赔、产品、变体和库存、类别、承运人、客户、产品板和仪表板。每个商场的 OAuth 应用。
引导式设置
2 分钟将 Cafe24 连接到 Claude、ChatGPT 或 Copilot
开始 AnythingMCP Cloud 免费试用,在引导式设置中连接 Cafe24,再把你的 MCP URL 添加到你的 AI 助手。无需代码,也无需自行运行服务器。
无需信用卡 · 7 天试用 · 提供自托管方案
试试这样问
Cafe24 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 不需要安装?直接使用 cloud.anythingmcp.com。 登录,点击 Connectors → Cafe24,输入你的商场 ID、客户端 ID 和客户端密钥,点击 Authorize with Provider 并在 Cafe24 中允许访问,生成一个 MCP API 密钥,完成。无需 Docker,无需
git clone,无需本地服务器。
Cafe24
Cafe24 管理 API 适用于在韩国和日本建立的 Cafe24 商店:订单、商品和收件人、带有追踪号码的发货、取消、退货和换货索赔、产品、变体和库存、类别、承运人、客户、产品板和仪表板。每个商场的 OAuth 应用。
设置
设置大约需要 15 分钟。
- 使用 Cafe24 账户登录
https://developers.cafe24.com并添加一个应用(Apps, App management)。在应用的开发信息下,将 Client ID 复制到CAFE24_CLIENT_ID,将 Client Secret 复制到CAFE24_CLIENT_SECRET。 - 将应用的 Redirect URI 设置为
https://cloud.anythingmcp.com/api/mcp-oauth/callback(或者当你自己托管 AnythingMCP 时为<your AnythingMCP URL>/api/mcp-oauth/callback)。Cafe24 仅接受带有域名的 https 地址。 - 在 Permissions 下勾选:商店读取、订单读取和写入、产品读取和写入、类别读取、发货读取、个人信息读取、社区读取和写入(范围
mall.read_store, mall.read_order, mall.write_order, mall.read_product, mall.write_product, mall.read_category, mall.read_shipping, mall.read_privacy, mall.read_community, mall.write_community)。 - 在
CAFE24_MALL_ID中输入你的商场 ID(<mall_id>.cafe24.com的第一部分),并安装连接器。 - 在连接器页面点击 Authorize with Provider 并以商场的 代表运营者 身份登录(대표 운영자):子运营者会被拒绝访问。未经过 Cafe24 应用商店审核的应用最多可以安装在 5 个商场上,这对于你自己的商店来说已经足够。
令牌:访问令牌有效期为 2 小时,刷新令牌有效期为 2 周;每次刷新都会返回一个新的刷新令牌,连接器会存储它。Cafe24 每个商场每 2 小时仅允许 15 次令牌请求,因此连接器仅在接近过期时进行更新。如果连接器闲置超过 2 周,请重新授权。
从哪里开始:使用 cafe24_get_dashboard 获取今天的数字,然后使用 cafe24_list_orders 并提供 start_date、end_date 和 order_status N20,N21(待发货),嵌入商品和收件人。
订单:cafe24_list_orders(start_date 和 end_date 一起,最多 3 个月),cafe24_count_orders,cafe24_get_order,cafe24_list_order_items,cafe24_get_order_receivers,cafe24_get_claim(通过索赔代码进行取消、退货或换货)。状态代码:N00 待付款,N10 进行中,N20 准备中,N21 待发货,N22 暂停,N30 运输中,N40 已交付,N50 购买确认;C 取消,R 退货和 E 换货代码。格式:order_id 20260710-0000013,order_item_code 20260710-0000013-01,shipping_code D-20260710-0000013-00。
发货:cafe24_list_carriers 提供 4 位承运人代码(0006 CJ 韩国快递,0019 乐天,0018 汉神,0083 佐川,0084 大和)。cafe24_update_order_status 将订单状态更改为准备或暂停;cafe24_create_shipment 注册追踪号码(待命或发货);cafe24_update_shipment 将状态更改为已发货,或更正追踪号码;cafe24_list_order_shipments 列出它们。取消、退货、换货和退款不包括在内,因为它们会退还资金。
产品和库存:cafe24_list_products,cafe24_count_products,cafe24_get_product,cafe24_update_product(价格、名称、代码、摘要),cafe24_list_variants,cafe24_update_variant,cafe24_get_inventory 和 cafe24_update_inventory(数量为可用库存)。cafe24_set_product_display 在安装时关闭:F 隐藏产品或下架。cafe24_list_categories 列出类别。
客户和板块:cafe24_search_customers 读取个人数据(需要 mall.read_privacy 权限)。cafe24_list_boards 和 cafe24_list_board_articles(仅限韩国和日本商店)显示产品问题和评论及其回复状态;cafe24_add_board_comment 公开回答。cafe24_get_store 和 cafe24_list_shops 描述商场;每个工具都需要 shop_no(默认 1)用于多商店商场。
分页和限制:列表需要 limit 和 offset(每页最多 1000 个订单和 15000 的偏移,产品 100 和 5000,然后是 since_product_no)。Cafe24 允许每个商场每 2 秒消耗 2 次调用的 40 次突发调用(头部 X-Api-Call-Limit)和每个令牌每 10 分钟 3000 次调用;超过此限制会返回 429。错误为 error,包含 code 和 message;422 指定无效字段。
先决条件:CAFE24_MALL_ID,CAFE24_CLIENT_ID,CAFE24_CLIENT_SECRET
本地安装连接器
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
打开 http://localhost:3000/connectors/store,选择 Cafe24 并粘贴在先决条件下列出的环境变量。
可用工具
| 工具 | 功能 |
|---|---|
cafe24_get_store | 商场:shop_name、mall_id、基础和主域名、公司名称、国家、电子邮件、电话、客户服务详情和商场 URL…… |
cafe24_list_shops | 商场的商店(最多 6 个,用于不同语言或货币):shop_no、default、shop_name、language_code、currency_code…… |
cafe24_get_dashboard | 商店仪表板:每日、每周和每月销售数据、售罄产品数量、新会员和最近的板块帖子。只读 |
cafe24_list_orders | 列出订单:order_id、order_date、payment_date、paid、canceled、payment_method、payment_amount、currency、member_id、billing_name…… |
cafe24_count_orders | 计算与 cafe24_list_orders 相同过滤条件匹配的订单:count.count。只读 |
cafe24_get_order | 读取一个订单及其金额、付款、发货状态,并通过嵌入获取商品、收件人、买家及任何取消、退货或…… |
cafe24_list_order_items | 一个订单的商品:order_item_code、variant_code、product_no、product_name、option_value、quantity、product_price、payment_amount…… |
cafe24_get_order_receivers | 一个订单的收件人:姓名(以及日本商店的假名)、电话、手机、邮政编码、地址、国家、发货信息等…… |
cafe24_list_order_shipments | 一个订单的发货:shipping_code、tracking_no、shipping_company_code、追踪号码更新时间和订单商品及其…… |
cafe24_get_claim | 通过索赔代码读取一个取消、退货或换货(cafe24_list_order_items 的 claim_code):原因类型和文本、商品、退款…… |
cafe24_list_products | 列出产品:product_no、product_code、custom_product_code、product_name、price、retail_price、supply_price、display、selling、sold_out…… |
cafe24_count_products | 计算与 cafe24_list_products 相同过滤条件匹配的产品:count.count。只读 |
cafe24_get_product | 读取一个产品:名称、代码、价格、显示和销售标志、描述、类别、发货和税务设置;通过嵌入还…… |
cafe24_list_variants | 一个产品的变体:variant_code、选项(名称和数值)、custom_variant_code、display、selling、additional_amount,并通过嵌入…… |
cafe24_get_inventory | 一个变体的库存设置:use_inventory、important_inventory、inventory_control_type、display_soldout、quantity 和 safety_inventory…… |
cafe24_list_categories | 产品类别:category_no、category_depth(1 到 4)、parent_category_no、category_name、full_category_name 和 use_display。最多 100 个…… |
cafe24_list_carriers | 商店中设置的承运人:carrier_id、shipping_carrier_code(发货的 shipping_company_code,例如 0006 CJ 韩国快递,0019…… |
cafe24_search_customers | 使用个人数据搜索客户(需要 mall.read_privacy 权限):member_id、name、email、cellphone、phone、address…… |
cafe24_list_boards | 商店的板块(仅限韩国和日本商店):board_no、board_type(5 个产品评论或问答板块,7 个我的询问,1 个管理员…… |
cafe24_list_board_articles | 一个板块的帖子,例如产品问题和评论:article_no、parent_article_no、product_no、order_id、title、content、writer…… |
cafe24_create_shipment | 注册一个订单(或其部分商品)的发货,带有追踪号码和承运人代码,状态为待命(准备)或发货(已发送)…… |
cafe24_update_shipment | 更新一个订单的发货:更改其状态(待命、发货、已发货)或其追踪号码和承运人,但不能在一次调用中同时更改 |
cafe24_update_order_status | 在履行流程中移动一个订单(或部分商品):准备(准备发货)、准备产品(准备商品)、暂停或解除暂停…… |
cafe24_update_product | 更改一个产品的价格、零售价、供货价、名称、自有产品代码或摘要描述。未列出的字段保持其…… |
cafe24_update_variant | 更改一个变体的附加费用(additional_amount)或自有代码 |
cafe24_update_inventory | 设置一个变体的库存:数量(可用库存)、安全库存、是否管理库存(use_inventory)以及是否显示…… |
cafe24_add_board_comment | 在板块帖子下发布评论,例如回答产品问题或评论。评论在商店中公开 |
cafe24_set_product_display | 在商店中显示或隐藏一个产品(display)并上架或下架(selling)。F 将其下架以供客户 |
示例提示
- “今天有多少 Cafe24 订单进来,多少尚未发货?”
- “将 CJ 物流追踪 123456789012 添加到订单 20261116-0000123。”
- “哪些变体的库存少于 5 个?”
- “显示未处理的取消和退货索赔。”
- “板块上哪些产品问题尚未得到回答?”
下一步
这份指南对你有帮助吗?