A code rendered in chat disappears when the chat does. This writes a file you can hand to a designer, plus a JSON record of exactly what is encoded in it and at what error correction level.
A Python MCP server that generates QR codes and writes them out as PNG files rather than only rendering them in the chat. Three tools cover a single code, a batch, and listing what is already in a directory. Each code gets a JSON metadata file recording what was encoded and with what settings.
- A single code generated and saved as a PNG, with the output directory, filename, error correction level, size multiplier and border all yours to set — `generate_and_save_qrcode`
- Several codes from one call, each with its own id, content and type, plus a batch manifest written alongside them — `batch_generate_qrcodes`
- Every QR file in a directory listed with its metadata — `list_generated_qrcodes`
- A JSON sidecar per code recording the generation date, the exact content, the parameters used, the file path and its size in bytes
- Error correction from L to H — roughly 7% damage recovery at L, about 30% at H — chosen per code rather than fixed
Python 3.8 or newer and an MCP client. Setup runs from a clone of the repository — `setup.sh`, or a virtualenv and `pip install -r requirements.txt` — and the client is pointed at `src/enhanced_qrcode_server.py`. The output directory defaults to `./qr_output/`, so a relative path is resolved against wherever the server was started.
