mcp-printer
Let Claude print documents on any USB or network printer.
README
mcp-printer
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._tcpmDNS) — 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 thecupspackage). - 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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。