PH

purple-horizons/printful-mcp

Developer tools
37 stars 12 forks Quality 73 Trend 12MIT

Model Context Protocol (MCP) server for Printful's print-on-demand API. Automate product browsing, order management, mockup generation & shipping with AI assistants like Claude & Cursor.

Overview

Connect Printful's powerful API to Claude, Cursor, and other AI assistants through the Model Context Protocol. Start your print-on-demand business today • No upfront costs • 300+ products • Global fulfillment - ✅ Full Printful API v2 support - ✅ Smart v1 fallback for legacy features - ✅ 17 tools across all major domains - ✅ Real-time stock & pricing data - ✅ Type-safe Pydantic validation - ✅ Robust error handling - ✅ Rate limit management - ✅ Dual output formats (JSON/Markdown) - ✅ Works with Claude Desktop - ✅ Works with Cursor IDE - ✅ stdio + HTTP transports - ✅ No hosting required - ✅ Cursor skill teaches AI how to use tools - ✅ Best practices built-in - ✅ Auto-applies workflows - ✅ Better experience out of the box This repo includes a Cursor AI skill that automatically teaches AI assistants how to use the Printful MCP effectively. Just open the project and start asking questions! Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

README

✨ Features

🎁 Bonus: This repo includes a Cursor AI skill that automatically teaches AI assistants how to use the Printful MCP effectively. Just open the project and start asking questions!


🚀 Quick Start

✅ That’s it! Restart your AI assistant and start using Printful tools.


🔌 Transport Options

By default, the server uses stdio transport (required for Cursor/Claude Desktop). For HTTP clients or tools like mcporter, you can use HTTP transport.


🎨 What You Can Do


💡 Usage Examples

🎯 Example 1: Find the Perfect Product

# Ask your AI assistant:
"Show me all t-shirts available for DTG printing under $15"

# It will use:
printful_list_catalog_products(
    types="T-SHIRT",
    techniques="dtg",
    limit=20,
    format="markdown"
)

💰 Example 2: Get Pricing

# Ask your AI assistant:
"What's the price for variant 4011 in USD?"

# It will use:
printful_get_variant_prices(
    variant_id=4011,
    currency="USD",
    format="markdown"
)

📦 Example 3: Create an Order

# Ask your AI assistant:
"Create a draft order for John Doe at 123 Main St, Los Angeles, CA 90001"

# It will use:
printful_create_order(
    recipient_name="John Doe",
    recipient_address1="123 Main St",
    recipient_city="Los Angeles",
    recipient_state_code="CA",
    recipient_country_code="US",
    recipient_zip="90001"
)

🎨 Example 4: Generate Product Mockups

# Ask your AI assistant:
"Generate a mockup for product 71 with my design"

# It will use:
printful_create_mockup_task(
    product_id=71,
    variant_ids="4011,4012",
    design_url="https://example.com/design.png",
    placement="front"
)

🛠️ Available Tools


🎓 Documentation


🔄 API Version Strategy

This server uses Printful API v2 (production-ready beta) with smart v1 fallback:

Why v2? Better pagination • Real-time stock • Enhanced orders • Improved security • Standardized formats


⚙️ Rate Limiting & Performance


🐛 Troubleshooting


🧪 Testing

📖 Full testing guide: See TESTING.md for comprehensive testing instructions.


🏗️ Project Structure

printful-ph-mcp/
├── 📁 src/
│   └── 📁 printful_mcp/
│       ├── 🐍 server.py          # FastMCP server + tool registrations
│       ├── 🔌 client.py          # API client with auth/error handling
│       ├── 📁 tools/             # Tool implementations by domain
│       │   ├── 🛍️ catalog.py    # Product browsing (5 tools)
│       │   ├── 📦 orders.py     # Order management (4 tools)
│       │   ├── 🚚 shipping.py   # Shipping rates (2 tools)
│       │   ├── 🖼️ mockups.py    # Mockup generation (2 tools)
│       │   ├── 📁 files.py      # File management (2 tools)
│       │   ├── 🏪 stores.py     # Store statistics (2 tools)
│       │   └── 🔄 sync.py       # v1 fallback (2 tools)
│       └── 📁 models/
│           └── 📋 inputs.py      # Pydantic input models
├── 📄 pyproject.toml
├── 🔐 .env.example
└── 📖 README.md

🤝 Contributing

We welcome contributions! Here’s how you can help:



📄 License


💝 Support This Project


View the full README on GitHub

Install

This server does not publish a one-line install command.

Open the repository installation guide New to MCP? Start with the mcpskill.org guide →

Configuration

{ "mcpServers": { "printful": { "command": "python", "args": ["-m", "printful_mcp"], "cwd": "/path/to/printful-ph-mcp", "env": { "PRINTFUL_API_KEY": "your-api-key-here" } } } }