Skip to main content
Glama
pics.event/qr

pics.event/qr

Official
by eventpics
README.md
# EventPics QR Code API and MCP server

Turn a link or a text into a QR code picture with nothing but a URL, or let an AI assistant such as Claude or ChatGPT do it for you. No key, no sign-up, PNG and SVG, including a heart shaped QR code.

<p>
  <img src="https://event.pics/qr.png?data=https%3A%2F%2Fevent.pics%2Fqr&size=240" width="160" height="160" alt="Standard QR code">
  <img src="https://event.pics/qr.png?data=https%3A%2F%2Fevent.pics%2Fqr&design=heart&size=240" width="160" height="160" alt="Heart shaped QR code">
  <img src="https://event.pics/qr.png?data=https%3A%2F%2Fevent.pics%2Fqr&fg=1a3c6e&dots=classy-rounded&eyes=dot&size=240" width="160" height="160" alt="QR code with custom colour and shapes">
</p>

Full documentation: [event.pics/qr](https://event.pics/qr)

## The image API

```
https://event.pics/qr.png?data=https://example.com
https://event.pics/qr.svg?data=https://example.com&design=heart
```

The picture is computed from the URL, so the URL itself is the QR code: put it in an `<img>` tag, a document or a print file and it keeps working. `data` is the only parameter you need.

| Parameter | Values | Default |
|---|---|---|
| `data` | the link or text, up to 1200 characters | |
| `design` | `standard`, `heart` | `standard` |
| `dots` | `square`, `dots`, `rounded`, `extra-rounded`, `classy`, `classy-rounded` | `rounded` |
| `eyes`, `eyesInner` | `square`, `dot`, `extra-rounded`, `rounded`, `dots` | `extra-rounded` |
| `fg` | hex such as `1a3c6e` or a basic colour name | black, red for the heart |
| `bg` | hex, colour name or `transparent` | white |
| `ecl` | `L`, `M`, `Q`, `H` (the heart always uses `H`) | `Q` |
| `size` | 100 to 3000 pixels | 1024 for PNG, 512 for SVG |
| `margin` | empty border in modules, 0 to 20 | 4 (at least 2 for the heart) |
| `download` | `1` sends the picture as a file | |

URL-encode `data` when the link has its own `?`, `&`, `#` or `+`. Values the API cannot use are corrected instead of rejected, and the `x-ep-qr-notes` response header says what was changed. Machine readable description: [openapi.json](https://event.pics/openapi.json).

Examples: [`examples/curl.sh`](examples/curl.sh), [`examples/embed.html`](examples/embed.html).

## The MCP server

```
https://mcp.event.pics/qr
```

Streamable HTTP, no authentication. One tool, `create_qr_code`, with the same options as the image API. It answers with permanent links to the PNG and the SVG, a download link and a small preview image, so the assistant can show you the code right in the chat.

- **Claude** (claude.ai and the desktop app): add a custom connector with the address above.
- **Claude Code:** `claude mcp add --transport http eventpics-qr https://mcp.event.pics/qr`
- **ChatGPT:** in developer mode, create a connector with the address and choose no authentication.
- **Cursor, VS Code and other clients** that read `mcp.json`: see [`examples/mcp.json`](examples/mcp.json).

Listed in the [official MCP registry](https://registry.modelcontextprotocol.io/v0.1/servers?search=pics.event/qr) as `pics.event/qr` ([`server.json`](server.json)).

## What it does not do

- **No short links and no redirects.** The code contains exactly what you put into `data`, so it keeps working even without EventPics.
- **No scan tracking.** Nobody is counted when the code is scanned.
- **No logo inside the code.** The [QR code generator](https://event.pics/en/qr-code-generator.html) adds logos in your browser.

## Privacy and limits

Query strings are not logged. Finished pictures are kept in the CDN cache so the same request is answered faster. Pictures that have to be drawn fresh are limited per minute and IP address; cached pictures are unlimited. Details: [privacy policy, section 10.6](https://event.pics/en/privacy.html).

Because the content is part of the link, confidential data such as Wi-Fi passwords is better encoded with the [QR code generator](https://event.pics/en/qr-code-generator.html), which works entirely in your browser.

## Related

- [QR code generator](https://event.pics/en/qr-code-generator.html) with preview, logo and print templates
- [EventPics upload API](https://github.com/eventpics/api) for photo booths and photographers (a different API, with a key)
- [EventPics](https://event.pics), the photo sharing app for weddings and parties

## Support

support@event.pics

## License

The examples in this repository are MIT licensed, see [LICENSE](LICENSE). The API and the MCP server are a hosted service of EventPics.