phomemo
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., "@phomemo print a checklist of today's tasks"
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.
phomemo
Print on a Phomemo M02 Pro pocket thermal printer from your computer, without the phone app. Includes a command-line tool and an MCP server, so Claude and other AI agents can print cards, checklists and pictures for you.
Markdown in, neat cards out: titles, bullets, checkboxes, numbered lists.
Pictures are scaled to the paper and dithered for thermal printing.
Print jobs you can list, cancel (cleanly, between blocks) and reprint.
Waits for the printer to confirm that each card actually printed.
Reads battery, paper, lid and temperature.
Runs locally over Bluetooth LE on macOS and Linux (and in principle Windows, via bleak).
Supported printers
Model | Status |
M02 Pro | Tested: printing, cancel, print-complete signal, status |
M02S | Same protocol and resolution as the M02 Pro; untested |
M02, T02 | Same protocol at 203 dpi; untested |
Other Phomemo families (M110, M04, D30, …) use different protocols and aren't supported yet. See Contributing.
Paper: 53mm-wide continuous rolls (e.g. 53mm × 6.5m). The print head covers the middle 48mm (576 dots at 300 dpi).
The M02 Pro's USB-C port only charges. It carries no data, so Bluetooth is the only way to print.
Related MCP server: luckjingle-mcp
Install
uv tool install git+https://github.com/s04/phomemo
# or: pipx install git+https://github.com/s04/phomemoRequires Python 3.11+.
Use
Turn the printer on and close the Phomemo phone app, because the printer accepts only one connection at a time.
phomemo scan # find printers nearby
phomemo "# Groceries" "- [ ] oat milk" "- [ ] bread"
echo "# Idea" | phomemo # from stdin
phomemo -f notes.md # from a file
phomemo --preview -f notes.md # save a PNG instead of printing
phomemo image photo.jpg # print a picture
phomemo status # battery, paper, lid, temperatureCard format
# Title ← every "# " starts a new card
## Heading
A paragraph of text.
- bullet
1. numbered
- [ ] todo
- [x] done
> aside
--- ← also starts a new cardThe printable width is 48mm (about 25 characters per line), so short cards work best.
Jobs
phomemo jobs # recent jobs, status and progress
phomemo cancel # stop everything queued or printing
phomemo cancel 0923-1651 # stop one job (any unique id prefix)
phomemo reprint # print the last job againCtrl-C cancels cleanly; press it twice to force quit.
Cancelling stops between image blocks (at most about 2cm of paper) and feeds the paper out. The printer is left ready for the next job.
Cancelling works across processes:
phomemo cancelstops a print an AI agent started.Only one job talks to a printer at a time. The others wait as
queued.Job statuses:
done: the printer confirmed every card printed.unconfirmed: all data was sent but the printer never confirmed. Check the output; a low battery is the usual cause.failed,cancelled.
Job history lives in ~/.local/state/phomemo/jobs (override with
PHOMEMO_STATE).
MCP server (Claude and other agents)
phomemo mcp # stdio
phomemo mcp --http 127.0.0.1:8765 # streamable HTTP at /mcpTools: print_cards, preview_cards (returns images, so the agent can check
the layout first), print_picture, printer_status, list_print_jobs,
cancel_print, reprint, list_printers. The print tools wait up to 15
seconds. A longer print keeps running in the background and the tool returns
its job id.
Claude Code
claude mcp add phomemo -s user -- phomemo mcpClaude Desktop (claude_desktop_config.json):
{ "mcpServers": { "phomemo": { "command": "phomemo", "args": ["mcp"] } } }Use the full path from which phomemo if the app can't find the command.
Configuration
Optional. Without a config file you get one printer, m02pro, found
automatically. phomemo config shows where the file goes, with an example:
default = "desk"
[printers.desk]
model = "m02pro"
# address = "…" # from `phomemo scan`; skips discovery, picks one of several printers
# feed = 3 # blank lines after each cardDriver options are listed in src/phomemo/drivers/m02.py.
Troubleshooting
"not found over Bluetooth": turn the printer on and close the Phomemo app. On macOS, the app running
phomemo(Terminal, iTerm, Claude…) needs Bluetooth access under System Settings → Privacy & Security → Bluetooth.The light blinks fast: the paper is out, the printer is too hot, or the battery is low.
phomemo statustells you which.It won't charge from a USB-C charger: use a 5V USB-A charger with an A-to-C cable. Some USB-C chargers never switch on power for this printer. Phomemo warns that chargers above 5V can damage it.
Photos look muddy: pictures are contrast-stretched and brightened before dithering, but thermal paper suits strong contrast. Bold images print best.
Thermal paper
Most thermal paper contains BPA or BPS, and both are absorbed through the skin. "BPA-free" usually means BPS. If you'll handle the prints a lot, look for phenol-free paper.
How it works
The protocol was reverse-engineered by others (see Credits). What this project verified on a real M02 Pro, including the print-complete signal and the status replies, is in PROTOCOL.md.
src/phomemo/
cards.py Markdown → cards
render.py cards / pictures → grayscale images at printer width
drivers/m02.py M02 family: raster encoding, Bluetooth transport, status
jobs.py job records, per-printer queue, cancel, reprint
api.py shared by the CLI and the MCP server
cli.py `phomemo`
mcp_server.py `phomemo mcp`Contributing
Issues and pull requests are welcome, especially reports from M02S, M02 and
T02 owners (does printing work, and does phomemo status answer?).
uv sync
uv run pytest⚠️ Don't probe unknown 1F 11 NN commands. Sweeping opcodes above 0x14
bricked an M02X.
Stick to documented commands.
Credits
The protocol knowledge comes from vivier/phomemo-tools, ryo-endo/phomemo-printer, theacodes/phomemo_m02s and sgrankin/phomemo. This project re-implements it and contains no code from those projects.
Not affiliated with Phomemo.
License
MIT
Available Tools
8 toolscancel_printA
Cancel a print job by id (or unique id prefix). Without an id, cancels every unfinished job. A thermal print stops after the current block and feeds the paper out.
Inputs: job_id. Returns: result
list_printersB
List configured printers.
Inputs: no named parameters. Returns: result
list_print_jobsA
Recent print jobs, newest first: id, status (queued, printing, done, unconfirmed, cancelled, failed), progress and a summary. "done" on a thermal printer means the printer confirmed the cards came out; "unconfirmed" means the data was sent but the printer never said so, so ask the user to check.
Inputs: limit. Returns: result
preview_cardsA
Render cards exactly as they would print, without printing. Returns images.
Card format (Markdown subset). Each # Title starts a new card; --- also starts one.
Inside a card: ## Heading, plain paragraphs, - bullets, 1. numbered,
- [ ] todo, - [x] done, > aside. Keep cards short: one thought per card,
a title plus up to ~6 lines. The paper is only ~48mm wide (~25 characters
per line), so prefer short words and lines.
Inputs: markdown (required), printer.
print_cardsA
Print one or more cards on a printer (default printer if omitted). Returns the job, including its id and status.
Card format (Markdown subset). Each # Title starts a new card; --- also starts one.
Inside a card: ## Heading, plain paragraphs, - bullets, 1. numbered,
- [ ] todo, - [x] done, > aside. Keep cards short: one thought per card,
a title plus up to ~6 lines. The paper is only ~48mm wide (~25 characters
per line), so prefer short words and lines.
Inputs: markdown (required), printer.
printer_statusA
Check a printer before printing: battery_percent, paper, cover and temperature. Warn the user when the battery is low (under ~20%) before long prints.
Inputs: printer.
print_pictureB
Print an image file from this computer (photo, sketch, diagram). It is scaled to the printer width and dithered to black and white. Returns the job.
Inputs: path (required), printer.
reprintB
Print a previous job again, optionally on a different printer. Default: the last job.
Inputs: job_id, printer.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a clearly distinct action: printing (print_cards, print_picture), rendering (preview_cards), cancelling (cancel_print), reprinting (reprint), and read-only queries (list_printers, list_print_jobs, printer_status). print_cards vs print_picture vs reprint are naturally separable by content type and source. No overlap or confusion.
Mostly follows a verb_noun snake_case pattern (print_cards, preview_cards, cancel_print, list_printers, list_print_jobs). Minor deviations exist: printer_status is noun_noun rather than a verb, and reprint is a bare verb. Still predictable and readable overall.
Eight tools is well-scoped for a thermal printer server, covering printing, previewing, job management, and device queries. Each tool earns its place with no redundancy.
Covers the core print lifecycle: print, preview, list jobs, reprint, cancel, plus printer listing and status. Minor gaps like clearing job history or deleting individual jobs exist but are not essential to core workflows.
Maintenance
Related MCP Connectors
Print from Claude and ChatGPT to your own printer. Free for 5 prints a month; Plus $7.99/mo.
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
3D print farm management for AI. Monitor, queue, and control prints on your SimplyPrint account.
Log and query 3D prints, printers, filament, and projects on 3dprintlog.com, and search its docs.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Memobird thermal printers to print text, HTML, web pages, and images directly from MCP-enabled clients. It includes tools for device binding, image conversion, and monitoring print job status.1ISC
- FlicenseAqualityDmaintenanceEnables Claude or any MCP client to design and print text and images to Bluetooth thermal label printers, including scanning, configuring, and managing multiple printers.12-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to submit PDFs or JSON-rendered templates to local printers, check printer status, and manage print jobs through MCP tools.26 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to monitor and control Prusa 3D printers over PrusaLink or Prusa Connect, including status and camera checks, file upload and print control, G-code execution, queue and history access, and responding to printer dialogs.1MIT