# QR for Agent

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/benswel/qr-for-agent-api  
**GitHub Stars:** 3  
**npm Downloads (last month):** 660  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/qr-for-agent

## Description
Dynamic QR codes for AI agents — custom styling, scan tracking, webhooks

## Tools
Capabilities this server exposes over MCP:

- **create_qr_code** — Create a URL QR code with optional custom styling
- **get_qr_code** — Get QR code details by short ID
- **update_qr_destination** — Change where a QR code redirects
- **list_qr_codes** — List all QR codes with pagination
- **delete_qr_code** — Delete a QR code and its analytics
- **get_qr_analytics** — Get scan stats and breakdowns
- **bulk_create_qr_codes** — Create up to 50 QR codes at once
- **bulk_update_qr_codes** — Update up to 50 QR codes at once
- **bulk_delete_qr_codes** — Delete up to 50 QR codes at once
- **create_vcard_qr** — Create a vCard contact QR code
- **create_wifi_qr** — Create a WiFi credentials QR code
- **create_email_qr** — Create an email (mailto:) QR code
- **create_sms_qr** — Create an SMS QR code
- **create_phone_qr** — Create a phone call QR code
- **create_event_qr** — Create a calendar event QR code
- **create_text_qr** — Create a plain text QR code
- **create_location_qr** — Create a geo-location QR code
- **create_social_qr** — Create a social media links QR code
- **create_app_store_qr** — Create a smart app store redirect QR code
- **update_vcard_qr** — Update a vCard QR code
- **update_wifi_qr** — Update a WiFi QR code
- **update_social_qr** — Update a social media QR code
- **update_app_store_qr** — Update an app store QR code
- **create_webhook** — Register a webhook endpoint
- **list_webhooks** — List all registered webhooks
- **delete_webhook** — Delete a webhook
- **register** — Register for an API key
- **get_usage** — Get current usage and quota
- **upgrade_to_pro** — Create a Stripe Checkout session
- **manage_billing** — Open Stripe billing portal
- **set_utm_params** — Set UTM tracking parameters on a QR code
- **set_redirect_rules** — Set conditional redirect rules on a QR code
- **set_custom_domain** — Set or remove custom domain (Pro)
- **get_custom_domain** — Get current custom domain and DNS status
- **bulk_create_from_csv** — Create up to 500 QR codes from CSV data (Pro)
- **record_conversion** — Record a post-scan conversion event
- **get_conversions** — Get conversion stats for a QR code

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "qr-for-agent": {
    "command": "npx",
    "args": ["-y","qr-for-agent"],
    "env": {
      "API_KEY": "",
      "BASE_URL": ""
    }
  }
}
```

**Requires environment variables:** `API_KEY`, `BASE_URL` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What the QR for Agent MCP server does

QR for Agent MCP server exposes the QR for Agent API as MCP tools for creating and managing QR codes. Dynamic codes use a short redirect URL, so an agent can change the destination without replacing the QR image. Each API key operates within its own tenant data.

The server supports URL QR codes with optional styling and specialized formats for vCards, WiFi credentials, email, SMS, phone calls, calendar events, plain text, locations, social links, and app-store redirects. It can also retrieve, update, list, and delete codes by short ID.

## How it works

The MCP package is published as `qr-for-agent` and runs through `npx qr-for-agent`. It sends requests to the configured QR for Agent API using the supplied API key. The hosted API is available at `https://api.qrforagent.com`, while the repository also documents a self-hosted development setup.

QR for Agent MCP server includes tools for creating up to 50 codes in one bulk request, updating up to 50, and deleting up to 50. Analytics tools return scan information and breakdowns such as device type, browser, operating system, country, city, and scans by day. Webhook tools register, list, and remove endpoints; webhook payloads use HMAC-SHA256 signatures and include delivery logging according to the project documentation.

Additional tools cover UTM parameters, conditional redirect rules, custom domains for Pro users, usage and quota checks, API-key registration, and Stripe checkout or billing-portal access. The available redirect and tracking behavior is provided by the underlying API rather than generated locally by the MCP process.

## Setup and configuration

Install and run the MCP server with:

```bash
npx qr-for-agent
```

Add it to an MCP client configuration with the `qr-for-agent` server name. The documented configuration passes these environment variables:

```json
{
  "command": "npx",
  "args": ["-y", "qr-for-agent"],
  "env": {
    "API_KEY": "your-api-key",
    "BASE_URL": "https://api.qrforagent.com"
  }
}
```

An API key is required for the authenticated API operations. The service supports self-service registration, and a self-hosted instance can generate an API key on first startup when no keys exist. Every API key sees only its own QR codes.

## Tools and capabilities

The QR for Agent MCP server provides tools for:

- Creating, retrieving, listing, updating, and deleting QR codes.
- Generating specialized QR formats such as vCard, WiFi, email, event, location, social, and app-store codes.
- Applying custom QR styling, including colors, gradients, dot and corner styles, logos, frames, and call-to-action text where supported by the API.
- Running bulk create, update, and delete operations for up to 50 codes per request.
- Reading scan analytics and managing webhooks.
- Setting UTM parameters, redirect rules, and custom domains.
- Checking usage, registering for an API key, and managing Pro billing.

## Limitations and notes

The API requires an `X-API-Key` for its authenticated endpoints. Some capabilities, including custom domains, depend on the Pro plan. The documented free plan includes 10 QR codes and 1,000 scans per month, while the Pro plan is listed at $19 per month with unlimited usage. Bulk CSV creation is documented separately as a Pro-only API feature and is not listed among the provided MCP tools.

Deleting a QR code also deletes its analytics. Public redirect, image, health, documentation, and discovery endpoints do not require authentication, but those endpoints are part of the API rather than separate MCP configuration options.

_Full upstream README: https://allmcps.com/mcp/qr-for-agent/readme_

