Model Context Protocol
AI Integration (MCP)
Generate QR codes from any AI agent using our free Model Context Protocol server. Works with VS Code Copilot, Claude Desktop, and more.
What is the Model Context Protocol?
The Model Context Protocol (MCP) is an open standard that lets AI agents interact with external tools. Our free MCP server allows any compatible AI โ including GitHub Copilot, Claude, and ChatGPT โ to generate QR codes programmatically. No API key required.
Setup for VS Code / GitHub Copilot
Add this to your project's .vscode/mcp.json file to enable QR code generation directly from Copilot Chat.
// .vscode/mcp.json
{
"servers": {
"qr-generator": {
"command": "node",
"args": ["mcp-server/index.js"]
}
}
}
{
"servers": {
"qr-generator": {
"command": "node",
"args": ["mcp-server/index.js"]
}
}
}
Setup for Claude Desktop
Add this to your claude_desktop_config.json to use QR generation in Claude Desktop conversations.
// claude_desktop_config.json
{
"mcpServers": {
"qr-generator": {
"command": "node",
"args": ["/path/to/mcp-server/index.js"]
}
}
}
{
"mcpServers": {
"qr-generator": {
"command": "node",
"args": ["/path/to/mcp-server/index.js"]
}
}
}
Available Tools
generate_qr_code
Generate a QR code and get back a PNG/SVG image with a shareable link.
Parameters
| Name | Required | Description |
|---|---|---|
type |
โ | url, wifi, vcard, email, phone, sms, calendar |
url |
url | URL to encode |
ssid, password, security |
wifi | WiFi credentials (security: WPA/WEP/nopass) |
size |
Optional | 100โ2000px (default: 300) |
format |
Optional | png / svg (default: png) |
foreground_color, background_color |
Optional | Hex color codes (e.g. #0d9488) |
save_qr_code
Save a generated QR code data URI to a file on disk.
Parameters:
data_uri (Required), file_path (Required)
Example Prompts
โธ
"Generate a QR code for https://example.com"
โธ
"Create a WiFi QR code for network MyWiFi with password secret123"
โธ
"Make a QR code with contact: John Doe, john@example.com, +1234567890"
โธ
"Generate a QR code for https://example.com with dark green foreground #0d9488 and size 500px"