Skip to main content

mcp-printer

License: MIT Python 3.10+ Platform MCP

Let Claude print documents on any USB or network printer.

A generic MCP server that exposes a printing tool to Claude (and any other MCP client). It works with network printers through the standard IPP / AirPrint / Mopria protocol and with locally installed printers through the platform print stack — the Windows spooler on Windows and CUPS (lp) on Linux/macOS. No vendor-specific driver code.

When Claude needs to put something on paper — a PDF you point it at, a note it just wrote, a shopping list — it can call print_document and the job goes straight to your printer.

What it exposes

Tool Purpose
list_printers Discover every printer reachable from this machine (network + installed).
print_document Print a file from disk, or a piece of text, with copies/duplex/color/paper options.

Backends are auto-detected and degrade gracefully — the same server runs on any OS and lights up whatever printers it can reach:

  • IPP (_ipp._tcp mDNS) — driverless network printers (anything AirPrint/Mopria capable). Cross-platform; the tiny IPP wire protocol is implemented in-package, no extra tooling needed.
  • Windows — printers installed in Windows (USB and network), driven via PowerShell. Text prints natively; other file types are handed to the app registered to print them.
  • CUPS (lp) — printers configured in CUPS on Linux and macOS (USB and network), with full option support (copies, duplex, color, media).

Install

pip install mcp-printer
Or install from source (for development)
git clone https://github.com/AminHA1248/mcp-printer
cd mcp-printer
python -m venv .venv
# Windows:  .venv\Scripts\activate
# macOS/Linux:  source .venv/bin/activate
pip install -e .

Platform prerequisites:

  • Windows: nothing extra — the spooler and PowerShell ship with Windows. Install the printer's normal Windows driver so it appears in Printers & scanners.
  • Linux: CUPS with the queue configured (lp/lpstat, usually via the cups package).
  • macOS: nothing extra — CUPS is built in; add the printer in System Settings.
  • Network printers: just be on the same LAN/subnet; mDNS handles discovery.

Connect it to Claude

Claude Desktop — one-click extension (easiest)

Download mcp-printer-<version>.mcpb from the latest release and open it via Settings → Extensions → Install extension…. Requires Python 3.10+ with pip install mcp-printer (the extension tells you if it's missing). Details: docs/EXTENSION.md.

Claude Desktop — manual config

Edit claude_desktop_config.json (Settings → Developer → Edit Config):

{
  "mcpServers": {
    "printer": {
      "command": "mcp-printer"
    }
  }
}

If mcp-printer isn't found (its Scripts/bin dir isn't on Claude's PATH), use the full path to the launcher — e.g. C:\Users\you\...\Scripts\mcp-printer.exe on Windows or /path/to/venv/bin/mcp-printer on macOS/Linux — or python -m mcp_printer.server.

Claude Code (CLI)

claude mcp add printer -- mcp-printer

Restart the client, then ask Claude: "List my printers" or "Print this report double-sided."

How you actually run it

You normally don't launch anything yourself — Claude Desktop/Code starts the mcp-printer server in the background (per the config above) and calls its tools when you ask. Running mcp-printer by hand just starts the MCP server, which waits silently for JSON-RPC on stdin; it is not an interactive shell.

To test the hardware without Claude, use the bundled CLI, test_print.py:

# from the project folder, using the venv's Python
python test_print.py --list                # discover printers
python test_print.py                       # print a small text test page
python test_print.py --printer "<id>" --file report.pdf --duplex long-edge --copies 2

Configuration (env vars)

Variable Default Meaning
MCP_PRINTER_LOG INFO Log level.

print_document options

printer_id (from list_printers; auto-selects the system default or only printer), file_path or text (one of the two), copies (1–99), duplex (auto/off/long-edge/short-edge), color_mode (auto/color/monochrome), media (paper size keyword, e.g. iso_a4_210x297mm, na_letter_8.5x11in).

Notes & limitations

  • IPP covers most printers sold in the last ~decade. The document is sent as-is (with a MIME hint from the file extension), so stick to formats printers understand natively: PDF, JPEG, plain text. PNG and others depend on the model.
  • The Windows backend prints text reliably; for other file types it uses the shell PrintTo verb, which needs an installed app that registers a print handler for that extension. For PDFs on a bare Windows install, prefer the IPP backend (network printers) instead. Duplex/color/media are driver preferences on Windows and are not overridden per-job.
  • HTTPS IPP devices use self-signed certs, so TLS verification is disabled for them (typical for LAN printers); prefer a trusted network.
  • This server performs local hardware I/O only — it does not send anything to the cloud.

Privacy Policy

mcp-printer runs entirely on your machine and collects no data — no telemetry, no analytics, no network transmission of your documents beyond the printer you select. Full policy: PRIVACY.md.

License

MIT

Metadata

Release files for mcp-printer 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-printer 0.1.0
File Size Uploaded Provenance
mcp_printer-0.1.0.tar.gz 19.7 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-printer 0.1.0
File Interpreter ABI Platform
mcp_printer-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 38.1 kB

Release files / mcp_printer-0.1.0.tar.gz

Download URL mcp_printer-0.1.0.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3fb0c131cd127a772582ee36864dc5ef64f3c34657bf356cab02352a2c8a414f
BLAKE2b-256 checksum
How to use checksums
b0741ce259e66d0bbcaaacd325ee3d13c84117c330abd9e42901edf1883f8a99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 19, 2026.

Transparency log

Release files / mcp_printer-0.1.0-py3-none-any.whl

Download URL mcp_printer-0.1.0-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f261d07f47cc4b96d6c654bbbab39db19560eda23787ebcb11a05a53bfb15caa
BLAKE2b-256 checksum
How to use checksums
8eb3f794f4e7f3a7ec399a8236be5e1d9b0003eeeb18f32b4f44e48371db564d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 19, 2026.

Transparency log

Security for mcp-printer 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mcp_printer-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page