QRCode_MCP is a Model Context Protocol (MCP) server designed to generate simple QR codes with customizable styles. This tool integrates with AI assistants like Claude to enable QR code generation capabilities.
The easiest way to install QRCode_MCP for Claude Desktop is through Smithery:
npx -y @smithery/cli install @1595901624/qrcode-mcp --client claude
If you prefer to install manually, follow these steps:
git clone https://github.com/1595901624/qrcode-mcp.git
pnpm install
pnpm run build
To configure QRCode_MCP with Claude, add the following to your Claude MCP settings file:
{
"mcpServers": {
"qrcode-mcp": {
"command": "node",
"args": ["path/to/qrcode-mcp/build/index.js"],
"disabled": false,
"autoApprove": []
}
}
}
Be sure to replace "path/to/qrcode-mcp"
with the actual path where you installed the server.
Once installed and configured, you can generate QR codes using the qrcode
tool.
The server provides a tool called qrcode
with the following parameters:
text
: The text to encode in the QR code (Required)size
: The size of the QR code in pixels (optional, default: 256)darkColor
: The color of the dark modules (optional, default: #000000)lightColor
: The color of the light modules (optional, default: #ffffff)errorCorrectionLevel
: The error correction level (optional, default: M)margin
: The margin of the QR code (optional, default: 4)When interacting with Claude, you can ask it to generate QR codes with various customizations:
Basic QR code generation: "Generate a QR code for https://example.com"
Customized QR code: "Create a QR code for my website https://mywebsite.com with a size of 400px, dark color #FF0000 (red), and light color #FFFFFF (white)"
Adjusting error correction and margins: "Generate a QR code for my contact info with error correction level H and a margin of 2"
The assistant will use the QRCode_MCP server to generate the requested QR code and display it in the conversation.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "qrcode-mcp" '{"command":"node","args":["path/to/qrcode-mcp/build/index.js"],"disabled":false,"autoApprove":[]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"qrcode-mcp": {
"command": "node",
"args": [
"path/to/qrcode-mcp/build/index.js"
],
"disabled": false,
"autoApprove": []
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"qrcode-mcp": {
"command": "node",
"args": [
"path/to/qrcode-mcp/build/index.js"
],
"disabled": false,
"autoApprove": []
}
}
}
3. Restart Claude Desktop for the changes to take effect