16688-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
16688-mcp
把 16688 数字卡密交易平台的开放 API(网关 https://www.16688.com.cn/openApi)包成一个 MCP 服务,让 Claude 等 AI 助手可以管理店铺:商品、店内分类、卡密库存、货源采购、店铺订单、投诉和钱包余额。
工具
工具 | 作用 |
| 列出 43 个接口的路径、说明、参数( |
| 对一个接口发起已签名的 POST 请求,返回平台原始 JSON |
app_id、timestamp、nonce、sign 由服务端自动补上,调用方只传业务参数。签名按官方文档:
HMAC-SHA256(secret, "POST\n<控制器小写>\n<动作小写>\n<按键名排序的 k=v&...>"),结果为小写十六进制。测试里用官方 PHP 示例逐字节对拍。
Related MCP server: Shopify Store MCP Server
权限
默认拒绝 5 个会花钱、退款或删除的接口:
purchase/create(扣运营钱包采购)、order/refund、complaint/refund、goods/delete、stockSecret/invalidateAll。要放开,在.env里设OPEN16688_ALLOW_DANGEROUS(逗号分隔路径,或*)。OPEN16688_READ_ONLY=1:只放行查询类接口。其余接口(建商品、改加价、上下架、上传卡密、人工发货标记、投诉留言等)默认放行。
HTTP 层要求
Authorization: Bearer <MCP_BEARER_TOKEN>;MCP_ALLOWED_HOSTS固定 Host 头。
部署
用 root 在服务器上执行 deploy/install.sh。脚本会依次提示输入:
GitHub 只读令牌(仓库是私有的才需要;只用于本次 clone/pull,不写盘)。用 fine-grained token,只选本仓库,权限只给 Contents: Read-only。
首次安装时的 app_id 和 secret(secret 输入时不回显,只写进
/opt/16688-mcp/.env,权限 600)。
脚本放到服务器上的办法:把 deploy/install.sh 内容粘贴成 /root/install-16688-mcp.sh,然后 bash /root/install-16688-mcp.sh。以后更新重跑同一条命令即可。
容器只监听 127.0.0.1:3320,只读根文件系统、去掉全部 capability。前面用 Cloudflare Tunnel + Access 暴露给 MCP Portal。
开发
pip install -e '.[test]'
pytest -q # 签名对拍需要本机有 php接口目录 src/open16688_mcp/endpoints.json 由官方文档整理而来(2026-10-18 版,43 个接口)。
许可
MIT
dujiao-shim: 16688 as a Dujiao-Next upstream
src/dujiao_shim is a small service that speaks the Dujiao-Next upstream protocol (/api/v1/upstream/*,
HMAC headers Dujiao-Next-Api-Key/Timestamp/Signature) so a Dujiao-Next shop can map products to it and buy
automatically after a customer pays. Behind it:
16688 source – quote -> guard rails (max unit cost, wallet floor, daily cap) ->
purchase/create-> pollpurchase/queryuntil shipped. Orders are written to SQLite before the purchase call; a timeout or crash duringpurchase/createparks the order asneeds_reviewand is never retried automatically.manual source – for suppliers without an API (e.g. Telegram sellers): the order waits in a queue, a Feishu notification is sent, and
/admin(token protected) lets the operator paste the delivery content.SHIM_LIVE_PURCHASEmust be1for real purchases; otherwise the quote is real but a fake card is delivered.
Run: dujiao-shim (env: SHIM_API_KEY, SHIM_API_SECRET, SHIM_ADMIN_TOKEN, SHIM_CATALOG, SHIM_DB,
OPEN16688_APP_ID/SECRET, optional SHIM_CALLBACK_URL, SHIM_FEISHU_WEBHOOK, SHIM_MIN_BALANCE,
SHIM_MAX_ORDERS_PER_DAY). Catalog format: deploy/shim-catalog.example.json. Server install: deploy/install-shim.sh.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Live data for AI agents. Search the catalog, read the price, call the tool; keys stay server-side.
Manage your NanoCart store from any AI agent: products, orders, coupons, subscribers, reports.
Directory of APIs, merchants, and tools AI agents can actually use.
Manage a Hyprcart store: catalog, prices, stock, orders and content, with the merchant's consent.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to interact with commercetools APIs to manage products, categories, orders, carts, and customer data. It provides a comprehensive set of tools for both read-only and full-access operations through secure authentication methods.4MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with live Shopify stores through Admin and Storefront APIs for tasks like GraphQL execution, bulk operations, and file uploads. It includes built-in rate limiting and operation logging to manage store data and schema discovery securely.21 npm3ISC
- AlicenseAqualityDmaintenanceEnables AI agents to browse the giftcardshop catalog and purchase gift cards using Lightning payments, with no account or signup required.574 npmMIT
- AlicenseAqualityBmaintenanceEnables AI agents to manage Shopify store operations through the Admin GraphQL API, including products, orders, customers, inventory, and discounts via natural language, with safeguards for destructive actions and cost tracking.16386 npmMIT