Printer MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Printer MCP print every PDF in D:\Invoices\batch1, two copies each"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Printer MCP
English | ไทย
A local MCP server for printing files on Windows through Codex, using natural-language requests or the /print quick command. It supports PDF, Microsoft Office documents, images, text files, local paths, and UNC network paths.
Printer MCP runs locally over MCP stdio. Print jobs are submitted by the Windows computer running Codex directly to printers installed on that computer.
Features
Print one file or every supported file in a folder
Use
/print <path>for common print jobsSelect a printer or use the Windows default printer
Configure copies, PDF pages, orientation, monochrome mode, and duplex mode
Inspect files and estimate PDF pages before printing
List installed printers and current print queues
Save printer aliases, path aliases, and reusable print profiles
Detect duplicate print attempts within a configurable time window
Require confirmation for large jobs
Filter by filename glob, exclusion glob, and modification date
Review history, retry previous jobs, and cancel queued jobs
Run system diagnostics with
/print-checkPrint silently without opening application windows or print dialogs
Handle paths containing spaces, Unicode characters, and UNC shares
Require explicit user intent before any tool submits a physical print job
Related MCP server: mcp-printer
Quick Print
Display help without printing anything:
/print how to use
/print help
/print ?
/print ใช้งายยังไงAfter installing the server and restarting Codex, print a file or folder with:
/print D:\Invoices\invoice-001.pdf
/print D:\Invoices\batch1
/print \\fileserver\shared\invoices\batch1Quick flags
Put the path before the options. Wrap option values containing spaces in quotes.
/print D:\Invoices\batch1 --copies 2
/print D:\Invoices\batch1 --pdf --bw
/print D:\Invoices\batch1 --duplex long
/print D:\Invoices\batch1 --recursive
/print D:\Invoices\invoice.pdf --pages 1-3,5
/print D:\Invoices\batch1 --printer office
/print D:\Invoices\batch1 --profile draft
/print D:\Invoices --name "TTSTHAC*" --exclude "Expense*"
/print D:\Invoices --newer-than 2026-10-01
/print D:\Invoices\batch1 --preview
/print D:\LargeBatch --force
/print stopFlag | Meaning |
| Number of copies, from 1 to 20 |
| Installed printer name or alias |
| Use a saved print profile |
| Select PDF pages |
| Print in monochrome or color |
| Two-sided printing on the long edge |
| Two-sided printing on the short edge |
| Single-sided printing |
| PDF orientation |
| Include subfolders |
| Select PDF files only |
| Include matching filenames, such as |
| Exclude matching filenames |
| Include files modified after the given date or time |
| List files and estimate sheets without printing |
| Bypass duplicate and large-job safeguards |
Stop all printing
/print stopThis calls stop_all_printing, which cancels every job still present in every Windows print queue on the computer. It does not delete or modify source files. A page already transferred to a printer may be too late to cancel.
Default /print behavior:
Uses the Windows default printer
Prints one copy of each file
Prints every supported file when the path is a folder
Sorts filenames naturally, so
file2.pdfcomes beforefile10.pdfDoes not search subfolders unless
--recursiveis usedTreats
/printas an explicit request to print, so it does not ask for confirmation againDoes not create a print job if the path is missing or no supported files are found
Aliases and profiles
/print @receipts\batch1
/print D:\Invoices\batch1 --printer office
/print D:\Invoices\batch1 --profile invoice
/print D:\Invoices\batch1 --profile draftPrinter aliases and path aliases are empty by default. Configure them for the current computer. Two profiles are included:
invoice: one copy, color, single-sideddraft: one copy, monochrome, duplex on the long edge
You can configure settings through Codex with a request such as Create a path alias named receipts for D:\Receipts, or edit data/settings.json directly.
Other quick commands
/queue
/cancel 42
/cancel all
/retry <history-id>
/print-check
/print-check \\server\share\folderNatural-language requests can express more detail:
Print every PDF in D:\Invoices\batch1, two copies each.
Print pages 1-3 and 5 of D:\Invoices\invoice.pdf.
Print this file in monochrome with long-edge duplex.
Print every PDF in this folder and its subfolders using Office Printer.
Inspect the files in this folder before printing.
Show the default printer queue.Supported file types
Type | Extensions | Printing method |
|
| |
Word |
| Microsoft Word COM automation |
Excel |
| Microsoft Excel COM automation |
PowerPoint |
| Microsoft PowerPoint COM automation |
Images |
| Silent Windows |
Text |
| Silent Windows |
Word, Excel, and PowerPoint files require the matching Microsoft Office desktop application. PDF printing does not require Adobe Acrobat or a configured default PDF application.
Silent Mode
All supported file types print in the background without opening an application window, preview window, or print dialog:
PDF uses SumatraPDF through the
pdf-to-printercommand-line interfaceWord, Excel, and PowerPoint use hidden COM automation with alerts disabled
Images and text are sent directly to the Windows spooler using
StandardPrintControllerUnsupported files return an error instead of falling back to the default application
Virtual printers that need user input, such as Microsoft Print to PDF asking for an output filename, may not be suitable for unattended Silent Mode. Use a physical printer for unattended jobs.
MCP tools
list_printers
Lists installed Windows printers with default, offline, and network status, plus driver and port information. This tool is read-only and never submits a print job.
inspect_print_job
Expands and lists the files that would be printed without sending anything to a printer.
Parameter | Type | Default | Description |
|
| required | Files or folders to inspect |
|
|
| Include subfolders |
|
| all supported | Limit extensions, such as |
|
|
| Maximum result count, from 1 to 1000 |
|
| unrestricted | Filename inclusion glob |
|
| none | Filename exclusion glob |
|
| unrestricted | Include files modified after an ISO date/time |
The result reports matched files, missing paths, unsupported files, truncation state, and totals by type.
estimate_print_job
Counts PDF pages and estimates paper consumption before printing. It accounts for copies, PDF page selection, and duplex mode. Non-PDF files are counted as at least one page each and clearly marked as estimates.
print_paths
Submits files to a printer. It supports individual files, multiple files, folders, and UNC paths.
Parameter | Type | Default | Description |
|
| required | Files or folders to print |
|
|
| Include subfolders |
|
| all supported | Limit file types |
|
|
| Maximum file count, from 1 to 1000 |
|
| Windows default | Installed printer name or alias |
|
|
| Copies, from 1 to 20 |
|
| all pages | PDF pages such as |
|
|
|
|
|
| document default |
|
|
|
| Print PDF in monochrome |
|
| none | Saved print profile |
|
| unrestricted | Filename inclusion glob |
|
| none | Filename exclusion glob |
|
| unrestricted | Include files modified after a date/time |
|
|
| File count above which |
|
|
| Bypass duplicate and large-job safeguards |
|
| required | Confirms that the user explicitly requested printing |
If any directly specified path is missing, the operation stops before printing any file. If an individual file fails after submission begins, the server continues with the remaining files and returns separate submitted and failed lists.
get_print_queue
Reads the current jobs for one printer without changing or cancelling them. The optional printer parameter defaults to the Windows default printer.
Additional tools
Tool | Purpose |
| Parses |
| Cancels selected job IDs or every job for one printer |
| Cancels pending jobs in every Windows print queue |
| Reads up to 500 jobs submitted through Printer MCP |
| Reprints the same files and options using a history ID |
| Reads aliases, profiles, and safety settings |
| Adds or updates an alias after verifying the printer exists |
| Adds or updates an alias after verifying the path is accessible |
| Adds or updates a reusable print profile |
| Removes a printer alias, path alias, or profile |
| Configures the large-job threshold and duplicate window |
| Checks Node, PowerShell, SumatraPDF, Office, printing capabilities, printers, and paths |
Duplicate and large-job safeguards
Successful jobs store file paths, sizes, and modification times in
data/history.jsonReprinting an identical file within five minutes stops the whole job and reports the earlier history ID
Use
--forceonly when the duplicate is intentionalJobs containing more than 20 files stop and report the file count and page estimate
Change these defaults through
set_print_safetyordata/settings.json
The server keeps up to 500 history entries. Each entry has a UUID that can be used with /retry <history-id>.
Safety model
Printing and queue cancellation have external effects. Therefore print_paths, quick_print, retry_print_job, and cancellation tools are declared as write/destructive MCP tools and require confirmed: true.
An MCP client should set confirmed: true only after an explicit instruction such as Print this file, Print the PDFs in batch1, or /print D:\Invoices\batch1.
Requests such as show, check, inspect, what files are here, or what would be printed must use inspect_print_job and must not submit a print job.
Requirements
Windows 10 or Windows 11
Node.js 20 or later
npm
A working printer installed in Windows
Microsoft Office desktop for Word, Excel, and PowerPoint files
Read access to every local path or network share being printed
Check the installed versions:
node --version
npm --version
codex --versionInstallation
Open PowerShell and run:
$installPath = Join-Path $env:USERPROFILE '.codex\mcp-servers\printer-mcp'
git clone https://github.com/riniort/printer-mcp.git $installPath
Set-Location -LiteralPath $installPath
npm install
npm run check
npm testnpm test is a non-printing smoke test. It verifies all 17 MCP tools, five prompts, /print stop, quick flags, settings, printer discovery, inspection, page estimation, queues, and health checks.
Connect to Codex
Register the MCP server through the Codex CLI:
$entryPoint = Join-Path $env:USERPROFILE '.codex\mcp-servers\printer-mcp\src\index.js'
codex mcp add printer -- node $entryPointAlternatively, add it manually to %USERPROFILE%\.codex\config.toml:
[mcp_servers.printer]
command = "node"
args = ['C:\Users\YOUR_USERNAME\.codex\mcp-servers\printer-mcp\src\index.js']
startup_timeout_sec = 30.0
tool_timeout_sec = 300.0Verify the registration:
codex mcp get printer
codex mcp listCompletely close and reopen Codex after adding or changing the MCP server so it loads the latest tools and /print prompt.
Run manually
Set-Location -LiteralPath (Join-Path $env:USERPROFILE '.codex\mcp-servers\printer-mcp')
npm startThe server communicates through MCP stdio, so it waits for JSON-RPC from an MCP client and normally displays no browser or application window. Codex starts the process automatically from config.toml; you do not need to run npm start separately during normal use.
Test against a real folder without printing
Set PRINTER_MCP_TEST_PATH to let the smoke test inspect PDF files in a specific path:
$env:PRINTER_MCP_TEST_PATH = '\\server\share\batch1'
npm test
Remove-Item Env:PRINTER_MCP_TEST_PATHThis invokes inspection only and does not submit a print job.
Project layout
printer-mcp/
├─ data/
│ ├─ settings.json aliases, profiles, and safety settings
│ └─ history.json duplicate protection and retry history
├─ src/
│ ├─ index.js MCP server, prompts, and tools
│ ├─ quick-command.js `/print` flag parser
│ ├─ storage.js settings, history, and file signatures
│ └─ printers.ps1 Windows printer, Office, image, and text integration
├─ test/
│ └─ smoke.mjs non-printing MCP smoke test
├─ package.json
├─ package-lock.json
├─ LICENSE
├─ README.md
└─ README.th.mdDevelopment
npm run check
npm testsrc/index.js declares MCP prompts and tools, src/quick-command.js parses quick flags, src/storage.js manages settings and history, and src/printers.ps1 integrates with Windows printers and the appropriate application for each file type.
Do not write ordinary log messages to server stdout, because it carries MCP JSON-RPC. Write diagnostics to stderr instead.
Troubleshooting
/print is unavailable
Run
codex mcp get printerto confirm the server is registered.Open
%USERPROFILE%\.codex\mcp-servers\printer-mcpand runnpm test.Completely close and reopen Codex.
No printer is found
Check Windows Settings > Bluetooth & devices > Printers & scanners, then run:
Get-Printer | Select-Object Name, DriverName, PortNameSet a Windows default printer or specify an installed printer by name.
PDF printing fails
Run
npm installagain to restore allpdf-to-printerfilesCheck whether antivirus software quarantined the bundled SumatraPDF executable
Verify the printer name with
list_printersTest one PDF before printing a complete folder
Word, Excel, or PowerPoint printing fails
Confirm that the matching Microsoft Office desktop application is installed
Open the file manually to verify that it is not damaged
Close any Office dialog waiting for user input
Verify that Office can print normally to the same printer
A UNC path cannot be opened
Test the path from PowerShell under the same Windows account running Codex:
Get-ChildItem -LiteralPath '\\server\share\folder'If this fails, check the network or VPN connection, share permissions, and Windows credentials.
A job times out
Increase tool_timeout_sec in %USERPROFILE%\.codex\config.toml, for example:
tool_timeout_sec = 600.0Restart Codex afterward. Split large jobs into batches to make successes and failures easier to track.
Current limitations
/printdefaults to one copy and does not search subfoldersPDF options are passed directly to the PDF print engine; behavior for other formats depends on Office or the Windows printing API
Images and text print through Windows
System.Drawingwithout opening Paint or NotepadCancellation only affects jobs still in a Windows queue; a printer may already have received part of a job
Virtual printers may show a save dialog and are not suitable for unattended printing
The server has no built-in authentication because it is designed to run locally through
stdio
Disconnect from Codex
codex mcp remove printerThis removes the MCP registration but does not delete %USERPROFILE%\.codex\mcp-servers\printer-mcp.
License
Released under the MIT License. You may use, modify, distribute, sublicense, and sell copies of the software, including for commercial purposes, provided that the copyright and permission notice are retained. The software is provided without warranty.
Available Tools
17 toolscancel_print_jobsCancel queued print jobsADestructive
Cancels specified Windows print queue job IDs, or all queued jobs for one printer. This cannot be undone and requires explicit user intent.
Inputs: confirmed (required), job_ids, printer, all_jobs.
estimate_print_jobEstimate pages and sheetsBRead-only
Previews selected files and estimates PDF pages and paper sheets before printing. Non-PDF files are conservatively estimated. Does not print.
Inputs: paths (required), pages, copies, duplex, +6 more.
get_print_historyGet Printer MCP historyARead-only
Lists recent Printer MCP submissions and stable history IDs for retry and duplicate diagnostics. Does not print.
Inputs: limit.
get_print_queueGet Windows print queueBRead-only
Lists current print jobs for one printer or alias. Does not change jobs.
Inputs: printer.
get_print_settingsGet print aliases and profilesARead-only
Lists saved printer aliases, path aliases, profiles, duplicate window, and safety threshold. Does not print.
Inputs: no named parameters.
inspect_print_jobInspect a print jobARead-only
Previews files selected by paths, aliases, recursion, extension, glob, exclusion, and date filters. Does not print.
Inputs: paths (required), max_files, recursive, extensions, +3 more.
list_printersList Windows printersARead-only
Lists installed Windows printers, aliases, and the default printer. Does not print.
Inputs: no named parameters.
printer_health_checkCheck Printer MCP healthARead-only
Checks Windows printing, default printer, PDF engine, Office apps, local storage, and optional local/UNC paths. Does not print.
Inputs: paths.
print_pathsPrint files or foldersADestructive
Prints selected files with aliases, profiles, filters, duplicate protection, and a large-job safety threshold. Requires explicit user intent and confirmed=true.
Inputs: paths (required), confirmed (required), force, pages, +13 more.
quick_printRun a quick print commandBDestructive
Parses the argument text from /print, including flags, aliases, profiles, filters, preview, and force. Requires explicit slash-command intent and confirmed=true.
Inputs: command (required), confirmed (required).
remove_print_settingRemove a print alias or profileA
Removes one saved printer alias, path alias, or print profile. Does not affect files, printers, or queued jobs.
Inputs: kind (required), name (required).
retry_print_jobRetry a Printer MCP history jobADestructive
Prints the original files and options from a prior Printer MCP history ID. Requires explicit user intent and confirmed=true.
Inputs: confirmed (required), history_id (required).
set_path_aliasSave a path aliasA
Creates or replaces a short @alias for a local or UNC file/folder path after verifying that it exists.
Inputs: path (required), alias (required).
set_printer_aliasSave a printer aliasB
Creates or replaces a short alias for an installed Windows printer.
Inputs: alias (required), printer (required).
set_print_profileSave a print profileA
Creates or replaces a reusable print profile for copies, printer/alias, color, duplex, orientation, and PDF pages.
Inputs: name (required), pages, copies, duplex, +3 more.
set_print_safetyConfigure print safeguardsB
Updates the large-job file threshold and/or duplicate-print detection window used by Printer MCP.
Inputs: safety_threshold, duplicate_window_minutes.
stop_all_printingStop all printingADestructive
Cancels every job currently present in every installed Windows print queue. This cannot be undone and requires an explicit '/print stop' or equivalent user request.
Inputs: confirmed (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Most tools target distinct resource+action pairs (aliases, profiles, queue, history, safety). The main overlap is inspect_print_job vs estimate_print_job (both preview files) and print_paths vs quick_print (both print), but descriptions clarify the differences adequately.
Predominantly consistent verb_noun snake_case (set_printer_alias, get_print_queue, cancel_print_jobs, retry_print_job). Minor deviations: printer_health_check puts the noun first, and quick_print lacks a clear verb_noun structure, but overall it is predictable.
17 tools is slightly heavy but each earns its place across aliases, profiles, queue control, history, and diagnostics. No obvious redundant or filler tools.
Strong lifecycle coverage: create/remove aliases and profiles, print, preview, estimate, queue management, history/retry, and health checks. Minor gaps like editing an existing profile in place (set overwrites) or per-printer pause are workable.
Maintenance
Related MCP Connectors
Print from Claude and ChatGPT to your own printer. Free for 5 prints a month; Plus $7.99/mo.
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Have It Printed turns a document or a letter an AI assistant just helped you write into real mail. No printer, no ink, no trip to the post office. The assistant starts a job, adds the document (a file, or text it wrote with you), picks how it is mailed and gets the exact price from Have It Printed's own page count. Then it creates a checkout link: you enter the address and pay on haveitprinted.com, so no address or card ever goes through the chat. After payment it can check the order and read the tracking number. Ways to mail: flat and tracked (the default), printed and mailed flat in a rigid mailer with a free tracking number, from $15 for up to 30 pages; a $3 letter of up to 5 pages, folded into a standard envelope and mailed USPS First-Class with no tracking; or $11 by USPS Certified Mail with a tracking number. With an API key, agents can also write letters in a handwriting-style font on designed stationery, send postcards from $2, and pay on their own with a Stripe shared payment token (the bank's checks still apply). Prices include printing and postage. Letters, Certified Mail and postcards go to US addresses; flat and tracked also ships to Canada, Mexico, the UK, Germany, Australia and Japan. Uploaded files are deleted automatically and never used to train AI. Docs: https://haveitprinted.com/developers.html
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to print documents, manage print queues, and control printers on macOS/Linux systems via the CUPS printing system. Supports printing PDFs, text files, and other formats with options like duplex printing, landscape orientation, and multiple copies.616 npm13MIT
- AlicenseNot gradedqualityCmaintenanceLet Claude print documents on any USB or network printer.2MIT
- AlicenseNot gradedqualityCmaintenanceLets an AI assistant discover the printers installed on a computer and send them PDFs, images, text, Markdown, or HTML with control over copies, page ranges, paper size, orientation, duplex, and color, then track or cancel the resulting jobs. It can run locally over stdio or be exposed remotely through a Cloudflare tunnel with password authentication.54 npm1MIT
- AlicenseAqualityBmaintenanceEnables AI agents to print HTML, web pages, PDFs, and images to local printers by bridging to an existing client over WebSocket, including previews, printer discovery, batch jobs, and customizable PDF/print settings.1627 npmMIT