Skip to main content
Glama
README.md
# Printer Doctor

Ask your AI assistant "why won't my printer print?" and get a real answer.

Printer Doctor is an [MCP](https://modelcontextprotocol.io) server. It looks at the print queue on
your own computer, finds the printer on your home network, asks the printer how it is doing, and
tells you in plain words where the problem is:

- the queue on your computer is **paused**, or the printer is **marked offline**
- a **stuck job** is blocking everything behind it
- Windows' **print service** is not running
- your print jobs are going to **"Print to PDF"** instead of the printer
- the printer is **switched off**, asleep, or not on your network
- the printer got a **new address** and your computer still uses the old one
- the printer is on a **different network** (a guest Wi-Fi, for example), or a **VPN** is in the way
- the printer itself says: **no paper**, a **paper jam**, a **cover open**, **ink or toner** low or empty

Then it says what to do, cheapest step first.

It only looks. It never prints, never cancels a job, changes no setting, needs no admin password,
and sends nothing to anyone.

## What you can ask

- "Why won't my printer print?"
- "My printer says offline. What's wrong?"
- "Which printers are set up on this computer?"
- "Is there a printer on my Wi-Fi that I haven't added?"
- "How much ink is left?"
- "Check the Brother printer."

## What you get back

An example (made up for this page): a printer whose address changed after the router restarted.

```text
Printer Doctor: check of "Office Laser" (Windows, on the network; took 6 s)

Verdict: "Office Laser" has a new address on your network, and this computer still uses the old one.

What I found
[problem] The printer has moved. This computer looks for "Office Laser" at 192.0.2.20, and nothing answers
          there any more. But the printer is on and announcing itself on your network at 192.0.2.77.
          Routers sometimes hand a printer a new address after a restart.
[note]    One job has been waiting for "Office Laser" for 15 minutes.
[ok]      Ink or toner: Black toner 70% (the printer's own estimate).
[ok]      The printer says it is ready and accepting jobs.

What to do
1. Remove the printer and add it again: Settings > Bluetooth & devices > Printers & scanners, choose the
   printer, Remove. Then Add device and pick it from the list.
2. To stop this from coming back, give the printer a fixed address: in your router's settings this is
   called a DHCP reservation or "always use this address".
3. Once that is fixed, the waiting job should print by itself. ...
```

Your assistant turns this into a normal answer. The full report also ends with a few lines of
details, for whoever helps you next.

## Install

You need [Node.js](https://nodejs.org) 20 or newer.

**Claude Code**

```bash
claude mcp add printer-doctor -- npx -y printer-doctor@0.1.0
```

**Claude Desktop, Cursor, VS Code and other MCP apps**: add this to the app's MCP settings:

```json
{
  "mcpServers": {
    "printer-doctor": {
      "command": "npx",
      "args": ["-y", "printer-doctor@0.1.0"]
    }
  }
}
```

**Without an AI app**, in a terminal:

```bash
npx -y printer-doctor@0.1.0 find             # printers on this computer and on your network
npx -y printer-doctor@0.1.0 check            # check the default printer, 3 to 15 seconds
npx -y printer-doctor@0.1.0 check brother    # check the printer with this name, or part of it
```

## The two tools

| Tool | What it does | Time |
| --- | --- | --- |
| `find_printers` | Lists the printers set up on this computer (which is the default, how each is connected, whether it is paused or has jobs waiting) and the printers announcing themselves on your network that are not set up yet. | a few s |
| `check_printer` | Checks one printer: the queue on this computer, whether the printer can be reached, and what the printer says about itself (paper, jams, covers, ink and toner). Gives a verdict and steps. Takes an optional `printer` name; without it, the default printer or the only one. | 3 to 15 s |

It works on macOS, Windows and Linux.

## Safety and privacy

- **Read-only, by construction.** The printing protocol (IPP) part of this tool can only build four
  requests, and all four only read: list printers, default printer, waiting jobs, printer status. The
  list is at the top of [`src/lib/ipp.js`](src/lib/ipp.js). There is no code that could send a print
  job, cancel one, or change a setting.
- **No admin rights.** Everything runs as you.
- **No telemetry.** Nothing is sent to us or anyone else.
- **Stays at home.** It talks to your computer's own print system and to devices at home-network
  addresses only (10.x, 172.16 to 172.31, 192.168.x, 169.254.x and their IPv6 equivalents). A printer
  queue that points at an address on the internet is reported and not contacted.
- **What goes onto your network:** one short question asking printers to announce themselves (mDNS,
  the way AirPrint finds printers; the group address is in [`src/lib/mdns.js`](src/lib/mdns.js)), a
  few connection attempts to the printer you asked about that are closed straight away, and one
  question to that printer about its own state.
- **Nothing can print by accident.** The ports that accept print data as soon as something connects
  (raw printing on 9100, LPD on 515) are never touched.
- **No document names, no user names.** For waiting jobs it reads only how many there are, how old
  they are and whether they failed. It never asks what was printed or by whom.
- **No serial numbers or hardware addresses in a report.** A printer's network name is left out when
  it carries the printer's hardware address. Printer names are shown, because you need them.
- **Names from devices stay names.** A printer's model and announced name are cut to one short line
  before they go into a report, so a device on your network can't slip a paragraph of text into what
  your assistant reads. An announcement that claims a printer lives at your own computer's address is
  not believed.
- **Secure connections to a printer are not verified.** Home printers sign their own certificates, so
  checking them would fail on every one. Nothing secret is sent: only "what is your state?".
- **No shell.** On Windows it runs one fixed PowerShell script that only reads (it is in
  [`src/lib/windows.js`](src/lib/windows.js)); on macOS and Linux it asks the print system directly.
  To tell whether a VPN is on it also reads the computer's route table (`route print` on Windows,
  `netstat` on macOS). These programs are started from fixed locations with fixed arguments.

## What it can't do

- **It does not fix anything.** It tells you what is wrong and what to do.
- **A printer on a USB cable:** it sees only what your computer knows about it, not the printer's own
  paper and ink sensors.
- **Ink and toner levels are the printer's own estimate**, and many printers keep printing well past
  "low".
- **Paper that will not feed** is the one fault a printer often can't report. If the printer starts and
  nothing comes through, the report says how to deal with the paper feed.
- **Finding printers on the network** works for printers that announce themselves (AirPrint, Mopria and
  most printers from the last ten years), over IPv4. Older printers, printers on a guest network, and
  printers that are switched off will not show up.
- **Some printers stay silent** when asked for their state, or want a password first. The report then
  says so and goes by what the computer knows.
- **Windows printers added through "WSD":** Windows keeps the printer's address to itself, so the check
  depends on the printer announcing itself.
- **On a Mac set to "Last Printer Used"** there is no fixed default printer; if more than one printer is
  set up, say which one you mean.
- **Permission questions:** the first time, Windows or macOS may ask whether Node.js may receive
  connections on your network, and newer versions of macOS may ask whether the app that runs it (Claude,
  or your terminal) may find devices on your local network. Finding and asking printers needs a yes;
  the check of your computer's own print queue works either way.

## Development

```bash
npm install
npm test
```

The readers are tested against recorded replies in [`test/fixtures`](test/fixtures): a real laser
printer's answers (IPP and mDNS), the print system of a Mac and of a Linux computer, and the output
of the Windows script on a Windows 11 laptop. Hardware addresses, network names and addresses in those
files were replaced in place. The tests also run the whole tool against a pretend printer and a pretend
print system on the same computer, and CI runs every command for real on Linux, macOS and Windows.

## License

MIT. Made by [Larkwright](https://github.com/getlarkwright).

TDQS

A3.8/5.0

Scored across 2 tools

Disambiguation4/5

find_printers is a discovery/listing tool while check_printer is a troubleshooting tool, so the primary intent of each is clear. There is some overlap in that find_printers also reports pause/queue state and network presence, which check_printer re-inspects, but the framing (enumerate vs. diagnose a specific failure) keeps them separable.

Naming Consistency5/5

Both names follow the same verb_noun snake_case pattern (find_printers, check_printer) with a consistent printer-domain noun. The verbs are distinct and predict the action.

Tool Count3/5

Two tools is thin even for a narrow, read-only diagnostic server; there is no tool for job listing detail, queue clearing, or resuming a paused printer. The pair does cover the stated discovery-plus-diagnosis purpose without redundancy, but the surface feels minimal.

Completeness3/5

Discovery and diagnosis are covered thoroughly, including queue, network, and device-reported faults. However, the lifecycle stops at diagnosis: the agent cannot cancel a stuck job, resume a paused printer, or restart the print service, so remediation is only advice to the user.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues