Skip to main content
Glama
DynamicQR MCP Server

DynamicQR MCP Server

Official
by dynamicqrio
README.md
<p>
  <a href="https://dynamicqr.io/docs/mcp">
    <img src="https://dynamicqr.io/images/logo/brand.png" alt="DynamicQR" height="40" />
  </a>
</p>

# DynamicQR MCP Server

Official **Model Context Protocol (MCP)** server integration and zero-dependency stdio bridge for [DynamicQR](https://dynamicqr.io).

Connect **Claude Desktop**, **Claude Code**, **Cursor**, **Windsurf**, or any MCP-compatible AI agent to create, style, update, route, and analyze dynamic QR codes directly from natural language.

[![MCP Docs](https://img.shields.io/badge/Docs-dynamicqr.io%2Fdocs%2Fmcp-7c3aed?style=flat-square)](https://dynamicqr.io/docs/mcp)
[![Discovery](https://img.shields.io/badge/Discovery-.well--known%2Fmcp.json-465fff?style=flat-square)](https://dynamicqr.io/.well-known/mcp.json)
[![Protocol](https://img.shields.io/badge/MCP-2025--03--26-027a48?style=flat-square)](https://modelcontextprotocol.io)

## Option 1: Direct Streamable HTTP (Recommended, Zero Install)

DynamicQR hosts the remote MCP server natively at `https://dynamicqr.io/mcp`. Create a personal API key at [dynamicqr.io/api-keys](https://dynamicqr.io/api-keys) (Pro or Business) and add this snippet:

### Claude Desktop, Cursor & Windsurf

```json
{
  "mcpServers": {
    "dynamicqr": {
      "url": "https://dynamicqr.io/mcp",
      "headers": {
        "Authorization": "Bearer dqr_live_YOUR_API_KEY"
      }
    }
  }
}
```

### Claude Code CLI

```bash
claude mcp add --transport http dynamicqr https://dynamicqr.io/mcp \
  --header "Authorization: Bearer dqr_live_YOUR_API_KEY"
```

## Option 2: Zero-Dependency Stdio Bridge (For Stdio-Only MCP Clients)

If your MCP client only supports local stdio servers, run the included bridge (`Node.js 18+`, zero dependencies):

```json
{
  "mcpServers": {
    "dynamicqr": {
      "command": "node",
      "args": ["/path/to/dynamicqr-mcp/bin/dynamicqr-mcp.mjs"],
      "env": {
        "DYNAMICQR_API_KEY": "dqr_live_YOUR_API_KEY"
      }
    }
  }
}
```

You can override the endpoint with `DYNAMICQR_MCP_URL` (defaults to `https://dynamicqr.io/mcp`).

## Available MCP Tools (10)

| Tool | Description |
| --- | --- |
| `get_account_usage` | Check plan tier, active QR count, quota limit, extra packs, and paused count. |
| `list_qr_codes` | Search and filter QR codes by name, type, or tag with 7-day scan totals. |
| `create_qr_code` | Create any of the 8 QR types (link, vCard 3.0, Wi-Fi, email, phone, SMS, Bitcoin, geo) with colors, logos, CTA frames, custom domain, and smart redirect rules. |
| `get_qr_code` | Inspect full details of one QR code including redirect URL, routing rules, share link, and inline SVG. |
| `update_link_qr_code` | Update destination URL, name, styling, expiry, scan limits, password, custom domain, or smart redirects without reprinting. |
| `delete_qr_code` | Permanently delete a QR code and its scan history. |
| `get_qr_scan_stats` | Read daily scan time-series plus privacy-friendly device, OS, and country breakdowns. |
| `toggle_qr_share_link` | Enable, regenerate, or disable a public read-only client analytics link (`/share/{token}`). |
| `list_custom_domains` | List connected custom short domains with DNS verification and automatic SSL status. |
| `list_webhooks` | List configured outbound scan webhooks (`qr.scanned`). |

## Example Agent Prompts

- "Create a dynamic QR code for our app launch with iOS pointing to Apple App Store and Android to Google Play."
- "Update our Autumn Menu QR code to point to the new Winter Menu PDF without changing the printed slug."
- "Show me this month's scans broken down by device and country for QR #42."
- "Enable a public client report link for QR #42 so I can send live numbers to the client."

## Running Tests

```bash
npm test
```

## Links

- [Developer Documentation](https://dynamicqr.io/docs)
- [MCP Guide](https://dynamicqr.io/docs/mcp)
- [REST API v1 & OpenAPI 3.1](https://github.com/dynamicqrio/api-docs)
- [Official TypeScript & Go SDKs](https://github.com/dynamicqrio/dynamicqr-sdk)
- [Machine Discovery JSON](https://dynamicqr.io/.well-known/mcp.json)

## License

MIT