qr-code-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
qr-code-mcp
An MCP server for generating QR codes. Supports 10 QR code types with customizable output options. The core generation library is decoupled from the MCP layer so it can be reused independently (e.g. in a web app).
Runs locally via stdio or deployed to Cloudflare Workers via streamable HTTP.
Tools
All tools accept these shared options:
Option | Type | Default | Description |
|
|
| Output format |
|
|
| Error correction level |
|
|
| Image width in pixels (PNG only) |
|
|
| Quiet zone margin |
|
|
| Foreground color (hex) |
|
|
| Background color (hex) |
generate_url_qr
Generate a QR code that encodes a URL. When scanned, opens the URL in a browser.
Param | Type | Required |
|
| Yes |
generate_vcard_qr
Generate a QR code containing a contact card (vCard 3.0). When scanned, prompts to add the contact. All fields are optional.
Param | Type | Description |
|
| e.g. Mr, Mrs, Dr |
|
| First name |
|
| Middle name |
|
| Last name |
|
| e.g. Jr, III, PhD |
|
| Nickname |
|
|
|
|
| Company or organization |
|
| Job title |
|
| Email addresses with labels |
|
| Phone numbers with labels |
|
| Mailing addresses |
|
| Website URLs with labels |
|
| Additional notes |
generate_wifi_qr
Generate a QR code for WiFi credentials. When scanned, connects to the network.
Param | Type | Required |
|
| Yes |
|
| No |
|
| Yes |
|
| No |
generate_event_qr
Generate a QR code for a calendar event (iCal format). When scanned, adds the event.
Param | Type | Required |
|
| Yes |
|
| Yes |
|
| No |
|
| No |
|
| No |
|
| No |
|
| No, minutes before event |
generate_email_qr
Generate a QR code that opens an email compose window.
Param | Type | Required |
|
| Yes |
|
| No |
|
| No |
generate_phone_qr
Generate a QR code that dials a phone number.
Param | Type | Required |
|
| Yes |
generate_sms_qr
Generate a QR code that opens an SMS compose window.
Param | Type | Required |
|
| Yes |
|
| No |
generate_geo_qr
Generate a QR code for a geographic location. When scanned, opens in a maps app.
Param | Type | Required |
|
| Yes |
|
| Yes |
generate_text_qr
Generate a QR code that encodes arbitrary text.
Param | Type | Required |
|
| Yes |
generate_facetime_qr
Generate a QR code that initiates a FaceTime call on Apple devices.
Param | Type | Required |
|
| Yes, phone number or email |
|
| No, default is video |
Related MCP server: QR Code Generator MCP
Setup
npm install
npm run buildStdio
Runs the MCP server locally over stdin/stdout. Use this for MCP clients like Claude Desktop.
node dist/index.jsConfigure in your MCP client:
{
"mcpServers": {
"qr-code": {
"command": "node",
"args": ["/path/to/qr-code-mcp/dist/index.js"]
}
}
}Streamable HTTP (Cloudflare Workers)
Runs the MCP server over HTTP. Use this for remote access or deploying to production.
Local dev server:
npm run devThis starts a local Cloudflare Workers environment at http://localhost:8787:
Path | Description |
| Landing page |
| MCP endpoint |
| Health check |
The /mcp endpoint is stateless and speaks MCP protocol 2026-07-28, which needs no initialize handshake or session. Older clients (2025-11-25 and earlier) still work unchanged. tools/list results are marked cacheable for 24 hours.
Deploy to production:
npm run deployThen configure your MCP client with the remote URL:
{
"mcpServers": {
"qr-code": {
"url": "https://qr-code-mcp.<your-account>.workers.dev/mcp"
}
}
}MCP Inspector
Test and debug the server interactively with MCP Inspector.
# Against stdio
npx @modelcontextprotocol/inspector node dist/index.js
# Against local HTTP — select "Streamable HTTP" and enter http://localhost:8787/mcp
npx @modelcontextprotocol/inspectorTests
npm test # run once
npm run test:watch # watch modeTests include unit tests for all formatters, generator output verification, round-trip scannability tests (encode a QR code, decode it, verify the content matches), and MCP handler tests.
Using the Core Library
The QR generation logic can be imported independently without the MCP server:
import { generateQR } from "qr-code-mcp";
const result = await generateQR(
{ type: "wifi", data: { ssid: "MyNetwork", password: "secret", encryption: "WPA" } },
{ format: "png", width: 300 }
);
// result.data = base64-encoded PNG
// result.mimeType = "image/png"License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate styled QR codes as SVG or PNG: colors, module shapes, ready-made presets and brand logos.
Generate branded, scan-validated QR codes (manual, AI, templates, Wi-Fi, vCard, geo).
Generate QR codes for URLs, PIX, Wi-Fi, vCards, WhatsApp and more. For AI agents.
Create styled, scannable QR codes with previews, scan checks, editable links and scan statistics.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables generation of QR codes from text or URLs in multiple formats (DataURL, SVG, terminal display) with customizable options like error correction, colors, and size. Supports batch processing of multiple QR codes and integrates seamlessly with MCP-compatible clients.44MIT
- AlicenseAqualityFmaintenanceEnables AI-powered generation of styled QR codes with 10 design presets, supporting single or batch creation with custom logos and formats (SVG/PNG) directly from AI tools.45MIT
- AlicenseBqualityDmaintenanceEnables generation of customizable QR codes through the API Ninjas service, supporting multiple image formats (PNG, JPG, SVG, EPS) with configurable colors and sizes.1MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to generate QR codes for URLs, text, vCard, WiFi, email, and phone numbers with customizable size, colors, and error correction.11MIT