连接器指南阅读约 5 分钟24 个 MCP 工具7 种语言

如何通过 MCP 将 n11 连接到 Claude

n11 卖家集成 API(土耳其):商品的创建、更新、价格和库存任务及其结果,类目树和属性,以发货包裹形式管理的订单(确认、拆分、取件和发票链接),退货申请和买家提问。删除商品和拒绝退货在安装时默认关闭。

HC作者:HelpCode 团队更新于 5 分钟阅读 在 GitHub 开源

无需信用卡 · 7 天试用 · 提供自托管方案

n11

n11

Run an n11 seller account from an AI agent: products with create, update, price and stock tasks and their results, category tree and attributes, orders as shipment packages with approval, splitting, pickup and invoice link, return requests and customer questions. API key and secret from the n11 seller panel.

个工具

24

区域

INTL

类别

电子商务

身份验证

API Key

所需环境变量

N11_APP_KEYN11_APP_SECRET
在 Cloud 上一键安装

7 天免费试用 · 无需信用卡

  • 7 天免费试用
    无需信用卡
  • 符合 GDPR,SOC 2 就绪
    数据驻留欧盟,审计日志
  • 在 GitHub 开源
    开源 · AGPL-3.0
  • 支持 ChatGPT、Claude、Gemini
    任何兼容 MCP 的客户端

跳过安装。2 分钟内即可运行。

在 cloud.anythingmcp.com 开始免费试用,一键添加 n11,然后将你的 AI 客户端(Claude、ChatGPT、Copilot 或 Cursor)指向生成的 MCP 端点。无需 Docker,无需 git clone,无需任何工程经验。

开始免费试用

AnythingMCP 已收录在 Claude 的连接器目录中:一键添加到 Claude (在新标签页中打开),然后登录并选择 Claude 可以使用哪些 MCP 服务器。

摘要

n11 卖家集成 API(土耳其):商品的创建、更新、价格和库存任务及其结果,类目树和属性,以发货包裹形式管理的订单(确认、拆分、取件和发票链接),退货申请和买家提问。删除商品和拒绝退货在安装时默认关闭。

试试这样问

n11 的示例提示

点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。

n11 · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → n11、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无 git clone、无本地服务器。

n11 + Claude

n11 卖家集成 API(土耳其):商品的创建、更新、价格和库存任务及其结果,类目树和属性,以发货包裹形式管理的订单(确认、拆分、取件和发票链接),退货申请和买家提问。删除商品和拒绝退货在安装时默认关闭。

前提条件

完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:

N11_APP_KEY, N11_APP_SECRET

步骤 1 — 获取凭证

设置大约需要 5 分钟。你需要一个 n11 卖家账号。

  1. 登录 n11 卖家后台(so.n11.com),打开 Hesabım > API Hesapları(账户 > API 账户)。如果还没有 API 账户,就创建一个。
  2. 把 API anahtarı(密钥)复制到 N11_APP_KEY,把 API şifresi(密码)复制到 N11_APP_SECRET。
  3. 安装连接器并运行 n11_list_products:它会列出你的商品,并确认这对密钥可用。

使用哪个 API:https://api.n11.com 上的 n11 卖家集成 API(文档在 developer.n11.com)。商品、价格和库存、类目和订单走 n11 当前的 REST 服务,密钥和密码放在 appkey 和 appsecret 请求头中。退货、买家提问和发票链接只有 n11 的 SOAP 服务提供;在那里连接器会替你把密钥和密码写进请求。自 2025 年 8 月 15 日起,类目服务也需要密钥。

可读取的内容:你的商品,包括 n11 商品 id、库存编码(stock code)、标题、类目、product main id(分组)、状态、销售状态、价格、库存、增值税率和佣金率、属性和图片,可按库存编码、分组编码、销售或审核状态、品牌或类目筛选(productStatus 为 InApproval 表示 n11 在等你处理,CatalogRejected 会附带 rejectInfo);完整的类目树,以及末级类目的属性和允许值;商品任务的结果;以发货包裹形式返回的订单,包括订单号、状态、买家、账单和收货地址、物流公司和跟踪号、约定发货日期和订单行(orderLineId、商品、库存编码、数量、价格、折扣、sellerInvoiceAmount、佣金);退货申请,包括原因、订单号、商品、数量、价格、买家和物流跟踪,以及暂缓或拒绝时可选的原因;买家提问,包括买家、商品、提问和回答日期。

每次商品写入都是一个任务:n11_create_products、n11_update_products(状态设为 Suspended 即下架)、n11_update_price_and_stock 和 n11_delete_products 每次最多处理 1,000 个库存编码,返回任务 id 和状态 IN_QUEUE(或带原因的 REJECT)。随后 AI 会反复调用 n11_get_task_details,直到状态变为 PROCESSED,再读取每个库存编码的 status(SUCCESS 或 FAIL)和 reasons。写入返回 200 只表示任务已排队。创建商品时,AI 选择末级类目(subCategories 为 null),并提交所有必填属性:isCustomValue 为 false 时用 valueId,否则用 customValue;相同的 productMainId 把变体归为一组。

订单:新包裹的状态是 Created。n11_approve_order_lines 把订单行改为 Picking;你在 cargoTrackingNumber 中填入 n11 物流活动码发货,之后包裹变为 Shipped 和 Delivered。处于 Picking 的包裹可以按订单行拆分(n11_split_package)或按数量拆分(n11_split_package_by_quantity),也可以同时取消部分数量,原因代码为 61 缺货、62 有瑕疵、63 价格错误、64 不可抗力、65 其他。大件商品用 n11_create_collection_request 预约取件,珠宝类订单行用 n11_send_labor_costs 提交加工费,n11_send_invoice_link 保存发票链接(micro 为 true 的 e-export 订单还需提供发票号和发票日期)。

退货和提问:n11_list_claim_returns 默认显示 REQUESTED 的退货(ALL 表示全部状态;按订单号查找时用 searchInfoType ORDERID);n11_approve_claim_return 给买家退款,n11_postpone_claim_return 附上原因暂缓决定。n11_answer_product_question 每个问题只能回答一次,回答随即公开。

写入前先确认。 价格、库存、商品状态、订单确认、拆分和取消、退货和回答都会作用于线上店铺。每次调用前,AI 会先展示改动内容(库存编码及新旧价格或库存、订单行、回答文本),等你同意。

安装时关闭:n11_delete_products 和 n11_deny_claim_return。团队需要时由管理员开启。

数据格式:订单日期(startDate、endDate、lastModifiedDate、invoiceDateTime)是土耳其时间(UTC+3)的毫秒级时间戳,例如 1793318400000;SOAP 服务使用 dd/mm/yyyy。不指定日期时,包裹列表显示最近 15 天,更长的时间窗口会被截成 15 天。价格默认是 TL,除非 currencyType 为 USD 或 EUR;价格用小数点并保留两位小数,salePrice 不能高于 listPrice。orderNumber 和 n11ProductId 等 id 会随时间变长,请按字符串保存。2024 年 11 月之前的订单数据无法获取。

分页:REST 列表从第 0 页开始,并返回 totalPages;content 为空时 AI 停止翻页。商品每页最多 250 条,包裹 100 条,退货 20 条。

限制:订单列表每分钟最多 1,000 次请求,商品写入每次最多 1,000 个库存编码,提问列表每分钟只能调用一次。

常见错误:401(SellerApiUserUnauthorizedException)表示 n11 拒绝了密钥和密码:请从 Hesabım > API Hesapları 重新复制两者。403 Authentication failed 表示密钥和密码不匹配,或 API 账户未启用。状态为 failure 的 SOAP 响应会带有 n11 的 errorMessage。REJECT 的任务或 FAIL 的库存编码会列出原因,例如缺少必填属性。

本连接器不能生成物流面单,也不读取你在 n11 的回款和结算:没有对应的工具。

步骤 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 — 在 Claude 中添加连接器

你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(https://cloud.anythingmcp.com/mcp/…)。本指南中出现 YOUR_SERVER_ID 的地方都用它替换。

推荐路径:在 claude.ai web 上工作,无需触碰任何配置文件。

  1. 在 Claude 中打开 Customize → Connectors。
  2. 点击 +,然后点击 Add custom connector。
  3. 输入名称(例如 n11)和远程 MCP 服务器 URL https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID,然后点击 Add。
  4. 点击 Connect,登录 AnythingMCP(OAuth)并允许访问。

下面所有工具都会出现在你的聊天中,开始输入提示。

可用工具

ToolWhat it does
n11_list_productsList your n11 products: n11 product id, stock code, title, category, product main id (group), status, sale status, prices, stock, VAT and…
n11_list_categoriesGet the whole n11 category tree in one call (id, parentId, name, subCategories)
n11_get_category_attributesGet the attributes of a leaf category with their allowed values: attributeId, name, isMandatory, isVariant (same productMainId groups…
n11_get_task_detailsRead the result of a product task (create, update, price and stock, delete): task status PROCESSED, IN_QUEUE or REJECT and per stock code…
n11_list_shipment_packagesList orders as shipment packages: order number, package id, status, buyer, billing and shipping address, cargo company and tracking, agreed…
n11_list_claim_returnsList return requests (claims) with id, status, reason, order number, product, quantity, prices, buyer and cargo tracking; 20 per page…
n11_list_return_deny_reasonsList the reasons (id and text) you may give when refusing a return with n11_deny_claim_return
n11_list_return_pending_reasonsList the reasons (id and text) you may give when postponing the decision on a return with n11_postpone_claim_return
n11_list_product_questionsList customer questions about your products (id, product, subject, question, answer). startDate, endDate, currentPage and pageSize are…
n11_get_product_questionGet one customer question with buyer name and email, product, question and answer dates, visibility and status
n11_update_price_and_stockUpdate price and/or stock of products by stock code (up to 1,000 per call). listPrice and salePrice go together, with a dot and two…
n11_create_productsCreate products (up to 1,000 per call) in leaf categories with title, description, categoryId, productMainId, stockCode, barcode, images…
n11_update_productsUpdate product data by stock code (up to 1,000 per call): status (Active or Suspended to take it off sale), preparingDay, shipmentTemplate…
n11_delete_productsDelete products by stock code (up to 1,000 per call)
n11_approve_order_linesApprove (accept) new order lines: moves Created lines to Picking
n11_split_packageSplit a Picking package into several packages by order line (each group becomes its own package with its own tracking code; lines not…
n11_split_package_by_quantitySplit a Picking package by quantity, optionally cancelling part of a line (cancelReasonId 61 out of stock, 62 defective, 63 wrong price, 64…
n11_create_collection_requestCreate a collection (pickup) request with a logistics company for Picking packages of bulky goods: every line of the package with box…
n11_send_labor_costsSend the labour cost (excluding VAT, with its VAT rate 0, 1, 10 or 20, default 20) of order lines, for gold, jewellery and similar…
n11_send_invoice_linkSave the invoice link (https, pdf, png or jpeg) of an order; a new link replaces the previous one
n11_approve_claim_returnApprove a return request: the buyer gets the refund
n11_postpone_claim_returnPostpone the decision on a return request by some days, with a reason from n11_list_return_pending_reasons and a note
n11_deny_claim_returnRefuse a return request with a reason from n11_list_return_deny_reasons and a note; for most reasons say how the product goes back…
n11_answer_product_questionAnswer a customer question (1 to 2,048 characters)

示例提示

  • “我们在 n11 上哪些商品处于 InApproval 或 CatalogRejected?原因是什么?”
  • “把库存编码 ABC-1 的库存设为 40,售价设为 199.90 TL。先给我看新旧数值,再检查任务结果。”
  • “列出最近三天 n11 的新包裹(Created)及其订单行。”
  • “给我看 n11 上未处理的退货申请,以及买家给出的原因。”
  • “为本周未回答的买家提问起草回复,发送前让我逐条确认。”

FAQ

Claude Code 和 Claude Desktop 一样工作吗? 是的,两者都指向 https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID。

下一步

这份指南对你有帮助吗?

你的 n11 智能体只差一次点击。

安装连接器,粘贴密钥,向 Claude 提问。免费试用 7 天,无需信用卡。

相关指南

连接器

如何通过 MCP 将 n11 连接到 ChatGPT

n11 卖家集成 API(土耳其):商品的创建、更新、价格和库存任务及其结果,类目树和属性,以发货包裹形式管理的订单(确认、拆分、取件和发票链接),退货申请和买家提问。删除商品和拒绝退货在安装时默认关闭。

连接器

如何通过 MCP 将 n11 连接到 Microsoft Copilot

n11 卖家集成 API(土耳其):商品的创建、更新、价格和库存任务及其结果,类目树和属性,以发货包裹形式管理的订单(确认、拆分、取件和发票链接),退货申请和买家提问。删除商品和拒绝退货在安装时默认关闭。

连接器

如何通过 MCP 将 n11 连接到 Cursor

n11 卖家集成 API(土耳其):商品的创建、更新、价格和库存任务及其结果,类目树和属性,以发货包裹形式管理的订单(确认、拆分、取件和发票链接),退货申请和买家提问。删除商品和拒绝退货在安装时默认关闭。

连接器

如何通过 MCP 将 n11 连接到 Gemini

n11 卖家集成 API(土耳其):商品的创建、更新、价格和库存任务及其结果,类目树和属性,以发货包裹形式管理的订单(确认、拆分、取件和发票链接),退货申请和买家提问。删除商品和拒绝退货在安装时默认关闭。

连接器

如何通过 MCP 将 n11 连接到 Meta Muse

n11 卖家集成 API(土耳其):商品的创建、更新、价格和库存任务及其结果,类目树和属性,以发货包裹形式管理的订单(确认、拆分、取件和发票链接),退货申请和买家提问。删除商品和拒绝退货在安装时默认关闭。

连接器

n11 接入 MCP:在任意 AI 智能体中管理商品、价格、库存、订单、退货和买家提问

n11 卖家集成 API(土耳其):商品的创建、更新、价格和库存任务及其结果,类目树和属性,以发货包裹形式管理的订单(确认、拆分、取件和发票链接),退货申请和买家提问。删除商品和拒绝退货在安装时默认关闭。