Skip to main content
Glama
printful-mcp

printful-mcp

by rudberga

printful-mcp

npm CI license

A read-only Model Context Protocol server for the Printful print-on-demand API.

Lets an AI assistant answer questions about your Printful store — order status, what a print file actually contains, which variant maps to which artwork — without being able to spend your money.

Why read-only

An agent that can approve a print-on-demand order can start production that cannot be undone and bill you for it. There is no tool here that creates, approves, holds or cancels an order, and no generic write path. Those actions belong in Printful's dashboard, where a human sees them first.

If you want writes, fork it and add them deliberately. Please don't ask this package to grow a POST.

Related MCP server: WooCommerce Insights MCP

Install

npx printful-mcp

Get a token from the Printful developer portal (Settings → API), then add the server to your MCP client.

Claude Code — .mcp.json in your project, or ~/.claude.json for every project:

{
  "mcpServers": {
    "printful": {
      "command": "npx",
      "args": ["-y", "printful-mcp"],
      "env": { "PRINTFUL_TOKEN": "your-token-here" }
    }
  }
}

Claude Desktop — the same block in claude_desktop_config.json.

The token is read only from the environment. It is never accepted as a command-line argument, because process arguments are visible to other users on the machine.

Tools

Tool

What it does

printful_whoami

Verify the token and list readable stores. Start here.

printful_list_orders

List orders, filterable by status.

printful_get_order

One order in full — line items, print files, thread options. By Printful id or the connected store's external id.

printful_list_store_products

Sync products in the connected store.

printful_get_store_product

One sync product, its variants and the print files attached to each.

printful_get_catalog_product

A Printful catalog blank, its variants and print placements.

printful_get

Escape hatch for allowlisted read paths without a dedicated tool.

Every tool is annotated readOnlyHint: true.

Configuration

Variable

Required

Effect

PRINTFUL_TOKEN

yes

Printful API token.

PRINTFUL_MCP_REDACT_PII

no

Set to 1 to mask recipient names, street addresses, phone numbers, emails and tax numbers in every response. City, state and country are preserved.

About that PII flag

Printful orders carry real customer names and addresses. Anything a tool returns lands in a model's context and usually in a saved transcript. If you don't need shipping details, set PRINTFUL_MCP_REDACT_PII=1 and keep that data out of the conversation entirely — you still see order status, items and print files.

It is opt-in rather than default because "where is this order going" is a legitimate and common question, and silently masking it would be surprising.

Security posture

  • GET only. No code path issues another HTTP method.

  • Path allowlist. The base URL is a constant; callers pass a path, never a URL. Paths are matched against an allowlist, and .., //, backslashes and absolute URLs are refused before any request is made.

  • No redirect following. A redirect off api.printful.com is an error, not a hop.

  • Token hygiene. Read from the environment, never logged, and every outbound string is scrubbed of it as a second line of defence.

  • Bounded requests. 15-second timeout, 2 MB response cap, capped backoff on HTTP 429.

  • Small surface. Two runtime dependencies: the MCP SDK and Zod.

Found a security problem? See SECURITY.md — please use private vulnerability reporting rather than a public issue.

Development

npm install
npm test     # build + unit tests, no token or network needed
npm run smoke  # end-to-end against the live API, needs PRINTFUL_TOKEN

test/guards.test.mjs covers the security guards — the path allowlist, traversal and absolute-URL refusal, token scrubbing and PII redaction — with no token and no network, so CI runs it on every push across Node 18, 20 and 22.

scripts/smoke.mjs speaks real MCP over stdio against the live API: it checks the handshake, the tool list and annotations, a successful call, and that the guardrails actually refuse disallowed paths, traversal attempts, absolute URLs and mutually exclusive arguments.

License

MIT

Available Tools

7 tools
printful_getRead any allowed Printful pathA
Read-onlyIdempotent

Escape hatch for read endpoints without a dedicated tool. GET only, and the path must match this server's allowlist: /stores, /store, /store/products, /orders, /products, /products/variant/{id}, /countries, /tax/countries. Anything else is refused.

Inputs: path (required).

printful_get_catalog_productGet a catalog productA
Read-onlyIdempotent

Fetch a Printful catalog product and its variants — blanks, sizes, colours and available print placements.

Inputs: id (required).

printful_get_orderGet a Printful orderA
Read-onlyIdempotent

Fetch one order in full, including line items, print files and embroidery thread options. Pass either printful_id (Printful's own id) or external_id (the id from the connected store, e.g. a Shopify order number) — exactly one of them.

Inputs: external_id, printful_id.

printful_get_store_productGet a store productA
Read-onlyIdempotent

Fetch one sync product with its variants and the print files attached to each. Use this to see which artwork a product will actually print.

Inputs: id (required).

printful_list_ordersList Printful ordersA
Read-onlyIdempotent

List orders for the token's store, newest first. Filter by status: draft, pending, failed, canceled, inprocess, onhold, partial, fulfilled. A 'draft' order with needs_approval true is waiting for a human in the Printful dashboard and has not been produced.

Inputs: limit, offset, status.

printful_list_store_productsList store productsA
Read-onlyIdempotent

List the sync products in the connected store — the products that map a storefront listing to a Printful variant and its print files.

Inputs: limit, offset.

printful_whoamiCheck Printful connectionA
Read-onlyIdempotent

Verify the configured token and list the Printful stores it can read. Use this first to confirm the connection and to get a store id.

Inputs: no named parameters.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 7 tools

    Disambiguation4/5

    Each tool targets a distinct resource (auth, store product, catalog product, orders), and printful_get is explicitly described as an escape hatch for paths without a dedicated tool. However, the allowlist still includes paths like /orders and /store/products that also have dedicated tools, creating minor overlap.

    Naming Consistency4/5

    All tools share a clear printful_ prefix, and most follow a get_/list_ verb pattern. Printful_whoami and the generic printful_get deviate from the noun+verb convention, but the pattern remains predictable overall.

    Tool Count5/5

    Seven tools is a well-scoped set for a read-only Printful integration, covering auth, products, and orders without unnecessary bloat. Each tool has a clear role, and the count feels appropriate for the server's purpose.

    Completeness4/5

    The server covers the core read workflows: authentication/store id, catalog and store product details, and order listing/retrieval, with the escape hatch filling gaps for tax/countries and other allowed endpoints. It is intentionally read-only, so missing create/update operations are not a gap, though a dedicated list-catalog-products tool would round out the surface.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      D
      maintenance
      Provides read-only EspoCRM access for AI assistants, enabling record retrieval and preparation of signed change sets without direct modification or deletion.
      7
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables secure, read-only access to WooCommerce store data through MCP-compatible assistants, letting users query products, orders, sales summaries, and inventory alerts without exposing store credentials.
      -
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to act as a Shopify shopping assistant and catalog auditor by answering from the live storefront: filtered product search, deals, comparisons, recommendations, policy and page lookups, verified cart permalinks, and a whole-catalog listing-quality audit. All operations are read-only, so nothing is ever written to the store.
      13
      MIT