QR Codes MCP server

Generates QR codes.
Back to servers
Setup instructions
Provider
Cloris
Release date
Feb 24, 2025
Language
TypeScript
Stats
5 stars

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.

Installation

Via Smithery

The easiest way to install QRCode_MCP for Claude Desktop is through Smithery:

npx -y @smithery/cli install @1595901624/qrcode-mcp --client claude

Manual Installation

If you prefer to install manually, follow these steps:

  1. Clone the repository:
git clone https://github.com/1595901624/qrcode-mcp.git
  1. Install dependencies:
pnpm install
  1. Build the project:
pnpm run build

Configuration

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.

Usage

Once installed and configured, you can generate QR codes using the qrcode tool.

QR Code Generation

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)

Usage Examples

When interacting with Claude, you can ask it to generate QR codes with various customizations:

  1. Basic QR code generation: "Generate a QR code for https://example.com"

  2. 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)"

  3. 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.

How to install this MCP server

For Claude Code

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.

For Cursor

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.

Adding an MCP server to Cursor globally

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": []
        }
    }
}

Adding an MCP server to a project

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.

How to use the MCP server

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.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.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

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later