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-serverAvailable Tools
The MCP server provides 9 tools for QR code generation and management.
generate_qrGenerate a fully customizable QR code with all styling options (dots, colors, corners, logo, frame)
generate_url_qrQuick URL QR code with minimal configuration
generate_wifi_qrWiFi auto-connect QR code (SSID, password, encryption)
generate_email_qrEmail compose QR code (address, subject, body)
create_dynamic_qrCreate a dynamic QR code with editable redirect URL
update_dynamic_qrUpdate the target URL of a dynamic QR code
get_dynamic_qrGet details of a dynamic QR code
delete_dynamic_qrDelete a dynamic QR code
list_optionsList 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.
| Variable | Description |
|---|---|
SUPABASE_URL | Your Supabase project URL |
SUPABASE_SERVICE_ROLE_KEY | Supabase service role key |
SITE_URL | Base URL for redirect URLs (e.g. https://qrgen.dev) |