Skip to main content
Glama

๐ŸŽจ Printful MCP Server

Automate Your Print-on-Demand Business with AI

Connect Printful's powerful API to Claude, Cursor, and other AI assistants through the Model Context Protocol.

๐Ÿ“š Quick Start โ€ข ๐Ÿ”ง Configuration โ€ข ๐Ÿš€ Examples โ€ข ๐Ÿ“– Documentation


Made by Purple Horizons License: MIT Python 3.10+ Printful API v2

GitHub Stars GitHub Forks


๐ŸŽ New to Printful?

Start your print-on-demand business today โ€ข No upfront costs โ€ข 300+ products โ€ข Global fulfillment


โœจ Features

๐ŸŽฏ Complete API Coverage

  • โœ… Full Printful API v2 support

  • โœ… Smart v1 fallback for legacy features

  • โœ… 17 tools across all major domains

  • โœ… Real-time stock & pricing data

๐Ÿ›ก๏ธ Production Ready

  • โœ… Type-safe Pydantic validation

  • โœ… Robust error handling

  • โœ… Rate limit management

  • โœ… Dual output formats (JSON/Markdown)

๐Ÿš€ Easy Integration

  • โœ… Works with Claude Desktop

  • โœ… Works with Cursor IDE

  • โœ… stdio + HTTP transports

  • โœ… No hosting required

๐Ÿค– AI Skill Included

  • โœ… Cursor skill teaches AI how to use tools

  • โœ… Best practices built-in

  • โœ… Auto-applies workflows

  • โœ… Better experience out of the box

๐ŸŽ 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!


Related MCP server: printful-mcp-server

๐Ÿš€ Quick Start

Step 1: Clone & Install

git clone https://github.com/Purple-Horizons/printful-ph-mcp.git
cd printful-ph-mcp
pip install -e .

Step 2: Set up API Key

cp .env.example .env
# Edit .env and add: PRINTFUL_API_KEY=your-key-here

Step 3: Configure Your AI Assistant

Add to ~/.cursor/mcp.json:

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

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

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

โœ… 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.

Transport

Use Case

Command

stdio (default)

Cursor, Claude Desktop

python -m printful_mcp

http

HTTP clients, mcporter

python -m printful_mcp --transport http

sse

Legacy SSE clients

python -m printful_mcp --transport sse

HTTP Transport Example:

# Start server on port 8000
python -m printful_mcp --transport http --port 8000

# Or with custom host
python -m printful_mcp --transport http --host 0.0.0.0 --port 8080

Using with mcporter:

# Option 1: Use JSON args format (recommended)
mcporter call printful_mcp.printful_list_catalog_products --args '{"limit":20}'

# Option 2: Use typed values (colon for numbers)
mcporter call printful_mcp.printful_get_product product_id:71

๐ŸŽจ What You Can Do

๐Ÿ›๏ธ Catalog

๐Ÿ“ฆ Orders

๐Ÿšš Shipping

๐Ÿ–ผ๏ธ Mockups

๐Ÿ“ Files

๐Ÿช Stores

Browse 300+ products

Create & manage orders

Calculate rates

Generate mockups

Upload designs

View statistics

Check availability

Confirm fulfillment

List countries

Check status

Get file info

Multi-store support

Get pricing

Track orders

Delivery times

Custom placements

-

-


๐Ÿ’ก 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"
)

๐ŸŽฌ Want to see it in action?

๐Ÿ“บ Watch Demo Video โ€ข ๐Ÿ“– Read Full Documentation โ€ข ๐Ÿ’ฌ Join Community


๐Ÿ› ๏ธ Available Tools

Tool

Description

Example Use

printful_list_catalog_products

Browse 300+ products with filters

"Show me all hoodies"

printful_get_product

Get detailed product info

"Tell me about product 71"

printful_get_product_variants

Get all sizes/colors

"What sizes are available?"

printful_get_variant_prices

Get pricing by currency

"How much in EUR?"

printful_get_product_availability

Check stock status

"Is this in stock?"

Tool

Description

Example Use

printful_create_order

Create draft order

"Create order for John"

printful_get_order

View order details

"Show me order #12345"

printful_confirm_order

Start fulfillment

"Confirm this order"

printful_list_orders

List all orders

"Show my recent orders"

Tool

Description

Example Use

printful_calculate_shipping

Get shipping rates & times

"How much to ship to UK?"

printful_list_countries

List supported countries

"What countries do you ship to?"

Tool

Description

Example Use

printful_create_mockup_task

Generate mockup images

"Create mockup with my design"

printful_get_mockup_task

Check generation status

"Is my mockup ready?"

Tool

Description

Example Use

printful_add_file

Upload design file

"Upload my logo"

printful_get_file

Get file info & status

"Check file #12345"

Tool

Description

Example Use

printful_list_stores

List your stores

"Show all my stores"

printful_get_store_stats

View sales & profit

"What are my sales?"

Tool

Description

Example Use

printful_list_sync_products

List synced products

"Show my Etsy products"

printful_get_sync_product

Get sync product details

"Details on sync #123"


๐ŸŽ“ Documentation

๐Ÿ“– Quick Start Guide

Get up and running in 5 minutes

๐Ÿ”‘ API Token Setup

Detailed token configuration guide

๐Ÿงช Testing Guide

Learn how to test your integration

๐Ÿ” API Scopes Reference

Required permissions explained

๐Ÿ’ป Examples

Real code examples

๐Ÿ”ง Cursor Config

Ready-to-use config file


๐Ÿ”„ API Version Strategy

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

๐ŸŽฏ v2 (Primary)

  • โœ… Catalog & Products

  • โœ… Orders & Fulfillment

  • โœ… Shipping Rates

  • โœ… Mockup Generation

  • โœ… File Management

  • โœ… Store Statistics

๐Ÿ”„ v1 (Fallback)

  • โœ… Sync Products

  • โœ… Product Templates

  • โš ๏ธ Auto-switches when needed

  • ๐Ÿš€ Future-proof architecture

Why v2? Better pagination โ€ข Real-time stock โ€ข Enhanced orders โ€ข Improved security โ€ข Standardized formats


โš™๏ธ Rate Limiting & Performance

๐Ÿ“Š Rate Limits

  • 120 requests / 60 seconds

  • Leaky bucket algorithm

  • Auto-retry on 429 errors

๐Ÿš€ Performance

  • Response times: 100-500ms

  • Concurrent requests: Supported

  • Timeout handling: Built-in


๐Ÿ› Troubleshooting

Solution: Make sure your API key is set in .env or passed via environment variables in the MCP config.

# Check your .env file
cat .env

# Should contain:
PRINTFUL_API_KEY=your-actual-key-here

Solution: Wait for the time specified in the error message (usually 60 seconds).

  • Default limit: 120 requests/minute

  • Consider implementing request batching

  • Check X-Ratelimit-Reset header for exact reset time

Solution: Double-check the ID you're using.

  • For orders: You can use external IDs by prefixing with @ (e.g., @my-order-123)

  • For products: Verify the product/variant ID exists in the catalog

  • Check if the resource belongs to your store

Solution: Mockup generation typically takes 10-30 seconds.

  • Wait at least 30 seconds before checking status

  • If stuck longer than 2 minutes, check task status - it may have failed

  • Verify your design URL is publicly accessible


๐Ÿงช Testing

Choose Your Testing Method

โšก Quick Test

Automated test suite

export PRINTFUL_API_KEY=your-key
python test_server.py

โœ… Tests 6 core features โฑ๏ธ Takes 30 seconds

๐ŸŒ Interactive Test

Web-based MCP Inspector

export PRINTFUL_API_KEY=your-key
./test-with-inspector.sh

๐ŸŽฏ Test any tool visually ๐ŸŒ Opens at localhost:5173

๐Ÿค– Live Test

In Claude/Cursor

Just ask:

"List Printful countries"

๐Ÿ’ฌ Natural language โœจ Real integration test

๐Ÿ“– 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:

๐Ÿ› Report Bugs

Found an issue? Open a bug report

โœจ Request Features

Have an idea? Suggest a feature

๐Ÿ”ง Submit PRs

  1. Fork the repository

  2. Create your feature branch

  3. Commit your changes

  4. Push and open a Pull Request


Resource

Link

๐Ÿ“˜ Printful API v2 Docs

developers.printful.com/docs/v2-beta

๐Ÿ“— Printful API v1 Docs

developers.printful.com/docs

๐Ÿ”Œ MCP Protocol Spec

modelcontextprotocol.io

๐Ÿ FastMCP Framework

github.com/modelcontextprotocol/python-sdk

๐ŸŽจ Purple Horizons

purplehorizons.io

๐Ÿ‘จโ€๐Ÿ’ป Made by Gianni

giannidalerta.com


๐Ÿ“„ License

MIT License - Free to use, modify, and distribute

View License โ€ข Purple Horizons LLC โ€ข 2026


๐Ÿ’ Support This Project

If this project helped you, consider:

โญ Star this repo on GitHub

๐Ÿฆ Share it on social media

๐Ÿค Contribute to the codebase

๐ŸŽจ Sign up for Printful using our affiliate link

Made with โค๏ธ by Purple Horizons

Empowering businesses through AI automation


๐Ÿš€ Ready to automate your print-on-demand business?

Get Started Now โ€ข View Examples โ€ข Read Docs

Questions? Issues? Open an issue or contact us

Available Tools

19 tools
printful_add_fileA
Idempotent
Add a design file to the Printful file library.

Uploads file from URL for reuse across orders. Files are processed
asynchronously. Returns file ID for use in orders.

Inputs: params (required). Returns: result

printful_calculate_shippingB
Read-onlyIdempotent
Calculate shipping rates for an order.

Returns available shipping methods, costs, and estimated delivery times
based on recipient location and order items.

Inputs: params (required). Returns: result

printful_confirm_orderA
Confirm an order to start production and fulfillment.

Moves order from draft to pending status. Order will be charged and
sent to production. Cannot be undone easily.

Inputs: params (required). Returns: result

printful_create_mockup_taskA
Generate product mockup images.

Creates an async task to generate mockup images showing your design
on the product. Returns task ID to check status and get URLs.

Inputs: params (required). Returns: result

printful_create_orderA
Create a new order in draft status.

Creates an empty order with recipient info. Add items separately, then
confirm to start fulfillment. Draft orders are not charged.

Inputs: params (required). Returns: result

printful_get_fileA
Read-onlyIdempotent
Get information about a file in the library.

Returns file status, dimensions, DPI, and URLs. Check processing
status before using in orders.

Inputs: params (required). Returns: result

printful_get_mockup_taskA
Read-onlyIdempotent
Check mockup generation status and get results.

Returns task status (pending/completed/failed) and mockup image URLs
if completed. Typically takes 10-30 seconds to generate.

Inputs: params (required). Returns: result

printful_get_orderA
Read-onlyIdempotent
Get details of a specific order.

Returns order status, recipient, costs, items, and shipment info.
Use order ID or external ID (prefix with @).

Inputs: params (required). Returns: result

printful_get_productA
Read-onlyIdempotent
Get detailed information about a specific catalog product.

Returns placements (where designs can be printed), techniques (DTG, embroidery, etc.),
available sizes/colors, and design requirements.

Inputs: params (required). Returns: result

printful_get_product_availabilityA
Read-onlyIdempotent
Check stock availability for a product's variants.

Returns in-stock/out-of-stock status for each variant and technique
by selling region. Critical for displaying product availability.

Inputs: params (required). Returns: result

printful_get_product_variantsA
Read-onlyIdempotent
Get all variants (size/color combinations) for a product.

Each variant has a unique ID needed for ordering. Returns variant IDs,
names, sizes, colors, and preview images.

Inputs: params (required). Returns: result

printful_get_store_statsA
Read-onlyIdempotent
Get store statistics for a date range.

Returns sales, costs, profit, order counts, and fulfillment metrics.
Date range cannot exceed 6 months.

Inputs: params (required). Returns: result

printful_get_sync_productA
Read-onlyIdempotent
Get sync product details using v1 API (not available in v2 yet).

Returns full sync product info including variants and designs.
Currently only available via v1 API.

Inputs: params (required). Returns: result

printful_get_variant_pricesA
Read-onlyIdempotent
Get pricing information for a specific variant.

Returns base prices by technique, placement costs, and quantity discounts.
Helps calculate total order costs before ordering.

Inputs: params (required). Returns: result

printful_list_catalog_productsB
Read-onlyIdempotent
Browse Printful's product catalog with optional filters.

Returns a list of available products including t-shirts, mugs, posters, etc.
Use filters to narrow down by category, color, technique, or product type.

Inputs: params (required). Returns: result

printful_list_countriesA
Read-onlyIdempotent
List all countries where Printful ships.

Returns country codes and state codes needed for creating orders.
Essential for address validation.

Inputs: no named parameters. Returns: result

printful_list_ordersB
Read-onlyIdempotent
List all orders from the store.

Returns paginated list of orders with status, costs, and item counts.

Inputs: params (required). Returns: result

printful_list_storesA
Read-onlyIdempotent
List all stores available to your API token.

Returns store IDs and names. Needed for multi-store accounts.

Inputs: params (required). Returns: result

printful_list_sync_productsA
Read-onlyIdempotent
List sync products using v1 API (not available in v2 yet).

Sync products are pre-configured templates with saved designs.
Currently only available via v1 API.

Inputs: params (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelogโ€ฆ

    TDQS

    A3.9/5.0

    Scored across 19 tools

    Disambiguation5/5

    Every tool has a clearly distinct purpose targeting specific resources and actions in the Printful ecosystem. Tools like printful_get_product, printful_get_product_variants, and printful_get_product_availability all serve different but complementary purposes without overlap. The descriptions clearly differentiate between file management, order processing, product catalog operations, and administrative functions.

    Naming Consistency5/5

    All tools follow a perfect verb_noun pattern with the 'printful_' prefix, using consistent snake_case throughout. The naming convention is highly predictable: action verbs (add, calculate, confirm, create, get, list) followed by specific nouns (file, shipping, order, mockup_task, etc.). This makes it easy for agents to understand what each tool does from its name alone.

    Tool Count4/5

    With 19 tools, the server provides comprehensive coverage of the Printful API surface. While slightly on the higher side, each tool serves a distinct purpose in the e-commerce/print-on-demand domain. The count is reasonable given the complexity of managing products, orders, files, and mockups in a fulfillment platform. A few tools could potentially be consolidated, but overall the scope is appropriate.

    Completeness4/5

    The tool set provides excellent coverage of the Printful domain with clear CRUD operations for orders, files, and products. There's comprehensive support for the order lifecycle (create, confirm, get, list), product catalog exploration, and administrative functions. Minor gaps include the lack of order update/cancellation tools and limited sync product support (noted as v1-only), but agents can accomplish most workflows with the available tools.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables Claude to create, update, and publish print-on-demand products on Printify directly from chat, including managing shops, products, and orders.
      -
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables users to connect Printify to Claude and manage print-on-demand products directly from chat, including creating, updating, and publishing products, listing shops, uploading designs, and checking orders.
      -