printify_mcp

printify_mcp

Enables creating and publishing print-on-demand products on Printify from reusable SKU templates, allowing AI assistants like Claude to manage product listings, upload artwork, and publish drafts through natural language.

Category
访问服务器

README

Printify MCP Server — Sunfade Co

A small, purpose-built MCP server that lets Claude create and publish print-on-demand products on Printify from reusable SKU templates.

The whole idea: you never hand-assemble Printify's 200-line product JSON. Claude calls create_from_template with ~5 fields and the server expands it.


1. Install

cd printify-mcp
pip install -r requirements.txt

2. Set your token (never hard-code it)

Create your token at: Printify → Account → Connections → API → Generate. Scopes needed: shops.read, products.read, products.write, uploads.read, uploads.write, print_providers.read.

export PRINTIFY_TOKEN="your_token_here"
export PRINTIFY_SHOP_ID="21788377"   # optional default shop

On Windows PowerShell:

$env:PRINTIFY_TOKEN="your_token_here"
$env:PRINTIFY_SHOP_ID="21788377"

3. Run standalone (sanity test)

python server.py

4. Connect to Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "printify-sunfade": {
      "command": "python",
      "args": ["/ABSOLUTE/PATH/printify-mcp/server.py"],
      "env": {
        "PRINTIFY_TOKEN": "your_token_here",
        "PRINTIFY_SHOP_ID": "21788377"
      }
    }
  }
}

Restart Claude Desktop. The tools appear automatically.


Tools

Tool What it does
list_shops List connected shops (id, title, channel)
list_templates Show available SKU templates + artwork spec
upload_artwork(image_url, file_name) Upload a PNG from a public URL → image_id
upload_artwork_file(file_path, file_name) Upload a PNG from a local file (base64) → image_id
create_from_template(...) Core. Make one product from a template (draft)
batch_create(template_name, items) Make many products from already-uploaded images (paced)
scan_folder(folder_path) List local image files in a folder, without uploading
batch_from_folder(template_name, items) Upload local files and create products in one call (paced)
publish_product(product_id) Push a product to the connected storefront
get_product(product_id) Verify a product
list_print_providers(blueprint_id) For adding new SKU templates

Typical flow

  1. Claude generates artwork → gets a public PNG URL (or saves a local file)
  2. upload_artwork(url, "Yosemite.png") or upload_artwork_file(path, "Yosemite.png")image_id
  3. create_from_template("poster_matte_2x3", image_id, title, desc, tags) → draft
  4. Review with get_product
  5. publish_product(product_id) when ready

batch_create chains step 3 for a list of already-uploaded designs. scan_folder + batch_from_folder chain steps 2–3 for a whole folder of local files.


Current templates

Template Product Blueprint / Provider Sizes / Price Artwork spec
poster_matte_2x3 Satin & Archival Matte Poster 1309 / 234 (Today's Graphics) 12×18 $29, 20×30 $42, 24×36 $52 7200×10800 px PNG, 2:3, sRGB, full-bleed
canvas_2x3 Classic Stretched Canvas (1.5") 1238 / 48 (Colorway) 12×18 $69 … 24×36 $129 7200×10800 px PNG, 2:3, sRGB, full-bleed (same file as poster)
sticker Square Sticker (die-cut, UV) 384 / 1 (SPOKE) 2×2 $5.99 … 6×6 $9.99 1800×1800 px PNG, 1:1, transparent bg
mug Ceramic Mug 11oz (dye-sub) 68 / 1 (SPOKE) 11oz $21.99 2700×1119 px PNG, wraparound
tshirt Unisex Softstyle Tee (Gildan 64000) 145 / 99 5 colors × 5 sizes, $29.99–$32.99 3852×4398 px PNG, transparent, front/back
hat Trucker Hat (DTF) 1128 / 41 (Duplium) 5 colors, $28.99 1650×750 px PNG, 2.2:1, transparent
hat_vintage_a Embroidery Dad Hat 1729 / 99 3 colors, $31.99 Text-only embroidery, front 1650×600, back 600×300
hat_vintage_b Embroidery Vintage Cap 1736 / 99 4 colors, $35.99 Text-only embroidery, front 1650×600, back 600×300
candle Scented Soy Candle 9oz 1048 / 219 3 scents, $26.99 900×600 px PNG, 3:2 label
tumbler SPOKE Tumbler 20oz 353 / 1 20oz $40.83 2795×2100 px PNG, wraparound
stein_mug Ceramic Stein Mug 22oz (dye-sub) 891 / 41 (Duplium) 22oz $25.50 2250×900 px PNG, 2.5:1 wraparound, full-bleed
pillow_damask Outdoor Pillow, double-sided 1007 / 10 16×16/18×18/20×20 $33.99 1254–3225 px square PNG, full-bleed, no transparency
pillow_woven Boho Woven Pillow 1650 / 10 17×18 $47.99 1728×1824 px, bold color-blocks only (no gradients/fine detail)
pillow_body Body Pillow 20×54, double-sided 2758 / 10 Microfiber $95.43, Fleece $108.23 8325×3225 px JPEG, ~2.58:1, pattern spans full width
can_glass_engraved Can Glass 16oz (laser engraving) 2759 / 228 16oz $24.25 1200×1800 px PNG, transparent = not engraved, line art only

Full spec per template (finish options, decoration method, placeholder transform, style notes) lives in the TEMPLATES dict in server.py.


Adding a new SKU template (mug, sticker, etc.)

  1. Create ONE product of that type manually in Printify, enable only the variants you want, save as draft.
  2. GET its JSON:
    curl.exe -H "Authorization: Bearer $TOKEN" \
      "https://api.printify.com/v1/shops/SHOP_ID/products/PRODUCT_ID.json" > sku.json
    
  3. From the JSON, copy: blueprint_id, print_provider_id, the enabled variant ids, and the print_areas[0].placeholders[0].images[0] transform (x, y, scale, angle).
  4. Add an entry to TEMPLATES in server.py following the poster example.
  5. Restart the server.

Notes / gotchas

  • Prices are in cents (2900 = $29.00).
  • Products are created as drafts (unpublished). Nothing goes live until you call publish_product.
  • publish_product only works against a real connected storefront (Shopify), not the API custom_integration placeholder shop. Connect Sunfade Co in Printify → Add store → Shopify first.
  • Rate limits: global 600 req/min; publish 200/30min. batch_create paces at ~1/sec, well under both. 429s are retried with backoff automatically.
  • Base costs shown are Free-plan. Printify Premium (~20% off) improves margins.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选