mcp-printer

mcp-printer

Let Claude print documents on any USB or network printer.

Category
Visit Server

README

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

<details> <summary>Or install from source (for development)</summary>

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 .

</details>

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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured