QR Code Generator
Back to generator
MCP

MCP Server for AI Agents

Generate and manage QR codes programmatically from any AI agent that supports the Model Context Protocol (MCP).

Installation

Run the MCP server with a single command. No configuration required for QR code generation.

npx @qrgen/mcp-server

Available Tools

The MCP server provides 9 tools for QR code generation and management.

generate_qr

Generate a fully customizable QR code with all styling options (dots, colors, corners, logo, frame)

generate_url_qr

Quick URL QR code with minimal configuration

generate_wifi_qr

WiFi auto-connect QR code (SSID, password, encryption)

generate_email_qr

Email compose QR code (address, subject, body)

create_dynamic_qr

Create a dynamic QR code with editable redirect URL

update_dynamic_qr

Update the target URL of a dynamic QR code

get_dynamic_qr

Get details of a dynamic QR code

delete_dynamic_qr

Delete a dynamic QR code

list_options

List all available customization options

Configuration

Add the following to your agent's MCP configuration file:

Claude Code

.mcp.json
{
  "mcpServers": {
    "qrcode": {
      "command": "npx",
      "args": ["-y", "@qrgen/mcp-server"]
    }
  }
}

Claude Desktop

claude_desktop_config.json
{
  "mcpServers": {
    "qrcode": {
      "command": "npx",
      "args": ["-y", "@qrgen/mcp-server"]
    }
  }
}

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "qrcode": {
      "command": "npx",
      "args": ["-y", "@qrgen/mcp-server"]
    }
  }
}

VS Code / Copilot

.vscode/mcp.json
{
  "servers": {
    "qrcode": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@qrgen/mcp-server"]
    }
  }
}

Windsurf

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "qrcode": {
      "command": "npx",
      "args": ["-y", "@qrgen/mcp-server"]
    }
  }
}

Gemini CLI

~/.gemini/settings.json
{
  "mcpServers": {
    "qrcode": {
      "command": "npx",
      "args": ["-y", "@qrgen/mcp-server"]
    }
  }
}

Environment Variables

Environment variables are only required for dynamic QR code operations. QR code generation works without any configuration.

VariableDescription
SUPABASE_URLYour Supabase project URL
SUPABASE_SERVICE_ROLE_KEYSupabase service role key
SITE_URLBase URL for redirect URLs (e.g. https://qrgen.dev)