npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

printful-mcp

v0.1.1

Published

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

Readme

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.

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