Enhanced QR Code MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
git clone https://github.com/myownipgit/mcp-server-qrcode-enhanced.git
cd mcp-server-qrcode-enhanced
npm install
npm run build
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add qrcode-enhanced -- node "<FULL_PATH_TO_MCP_SERVER_QRCODE_ENHANCED>/dist/index.js"

Replace <FULL_PATH_TO_MCP_SERVER_QRCODE_ENHANCED>/dist/index.js with the actual folder you prepared in step 1.

README.md

Advanced MCP server for generating styled QR codes and processing images.

Enhanced QR Code MCP Server

An enhanced Model Context Protocol (MCP) server for advanced QR code generation and processing, inspired by and extending @jwalsh/mcp-server-qrcode.

🙏 Attribution

This project builds upon the excellent foundation provided by @jwalsh/mcp-server-qrcode. We extend our gratitude to the original author for creating the base QR code MCP server that inspired these enhancements.

✨ Enhanced Features

Beyond the original QR code generation capabilities, this enhanced version adds:

🚀 Advanced QR Code Generation

  • Custom styling: Logo embedding, custom colors, rounded corners
  • Multiple formats: PNG, SVG, PDF output support
  • Batch processing: Generate multiple QR codes simultaneously
  • Template system: Pre-defined QR code templates for common use cases

📊 Smart Content Detection

  • URL validation: Automatically validates and optimizes URLs
  • Contact cards: Generate vCard QR codes from contact information
  • WiFi credentials: Create WiFi network QR codes
  • Event details: Generate calendar event QR codes

🔍 QR Code Analysis

  • Decode existing QR codes: Extract content from QR code images
  • Quality assessment: Analyze QR code readability and optimization
  • Format detection: Identify QR code content types

📈 Analytics & Tracking

  • Usage statistics: Track QR code generation patterns
  • Performance metrics: Monitor server performance and response times
  • Export capabilities: Generate reports and analytics

🛠 Installation

# Clone the repository
git clone https://github.com/myownipgit/mcp-server-qrcode-enhanced.git
cd mcp-server-qrcode-enhanced

# Install dependencies
npm install

# Build the project
npm run build

# Start the server
npm start

🔧 Configuration

Add to your MCP client configuration:

{
  "mcpServers": {
    "qrcode-enhanced": {
      "command": "node",
      "args": ["path/to/mcp-server-qrcode-enhanced/dist/index.js"],
      "env": {
        "QR_OUTPUT_DIR": "./qr-codes",
        "QR_DEFAULT_SIZE": "300",
        "QR_DEFAULT_ERROR_CORRECTION": "M"
      }
    }
  }
}

📋 Available Tools

Basic QR Code Generation

  • generate_qr_basic - Simple QR code generation
  • generate_qr_styled - QR code with custom styling
  • generate_qr_batch - Generate multiple QR codes

Specialized QR Codes

  • generate_vcard_qr - Contact card QR codes
  • generate_wifi_qr - WiFi network QR codes
  • generate_event_qr - Calendar event QR codes

Analysis & Processing

  • decode_qr_image - Extract content from QR code images
  • analyze_qr_quality - Assess QR code quality
  • optimize_qr_content - Optimize content for QR codes

Templates & Utilities

  • list_qr_templates - Available QR code templates
  • get_qr_statistics - Usage and performance statistics
  • validate_qr_content - Validate content before generation

📖 Usage Examples

Generate a styled QR code

const result = await generateStyledQR({
  content: "https://example.com",
  style: {
    foregroundColor: "#000000",
    backgroundColor: "#ffffff",
    logoPath: "./logo.png",
    cornerRadius: 10
  },
  format: "png",
  size: 400
});

Create a WiFi QR code

const wifiQR = await generateWiFiQR({
  ssid: "MyNetwork",
  password: "MyPassword",
  security: "WPA2",
  hidden: false
});

Decode an existing QR code

const decoded = await decodeQRImage({
  imagePath: "./qr-code.png",
  outputFormat: "json"
});

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. Make sure to:

  1. Follow the existing code style
  2. Add tests for new features
  3. Update documentation as needed
  4. Reference the original @jwalsh/mcp-server-qrcode when appropriate

📄 License

MIT License - see LICENSE file for details.

🔗 Related Projects

📝 Changelog

v1.0.0

  • Initial enhanced version based on @jwalsh/mcp-server-qrcode
  • Added custom styling capabilities
  • Implemented specialized QR code types
  • Added QR code analysis tools
  • Enhanced error handling and validation

Built with ❤️ on top of the excellent foundation by @jwalsh

Tools (12)

generate_qr_basicSimple QR code generation
generate_qr_styledQR code with custom styling
generate_qr_batchGenerate multiple QR codes
generate_vcard_qrContact card QR codes
generate_wifi_qrWiFi network QR codes
generate_event_qrCalendar event QR codes
decode_qr_imageExtract content from QR code images
analyze_qr_qualityAssess QR code quality
optimize_qr_contentOptimize content for QR codes
list_qr_templatesAvailable QR code templates
get_qr_statisticsUsage and performance statistics
validate_qr_contentValidate content before generation

Environment Variables

QR_OUTPUT_DIRDirectory to save generated QR codes
QR_DEFAULT_SIZEDefault pixel size for QR codes
QR_DEFAULT_ERROR_CORRECTIONDefault error correction level

Configuration

claude_desktop_config.json
{"mcpServers": {"qrcode-enhanced": {"command": "node", "args": ["path/to/mcp-server-qrcode-enhanced/dist/index.js"], "env": {"QR_OUTPUT_DIR": "./qr-codes", "QR_DEFAULT_SIZE": "300", "QR_DEFAULT_ERROR_CORRECTION": "M"}}}}

Try it

Generate a styled QR code for https://example.com with a logo and rounded corners.
Create a WiFi QR code for my home network named 'MyNetwork' with password 'MyPassword'.
Decode the QR code image located at ./qr-code.png and return the content.
Generate a vCard QR code for John Doe with phone number 555-0199.

Frequently Asked Questions

What are the key features of Enhanced QR Code?

Custom styling including logo embedding, custom colors, and rounded corners. Support for multiple output formats like PNG, SVG, and PDF. Batch processing for generating multiple QR codes simultaneously. Specialized QR generation for WiFi credentials, vCards, and calendar events. Built-in analysis tools for decoding and quality assessment of existing QR codes.

What can I use Enhanced QR Code for?

Creating branded QR codes for marketing materials with company logos. Automating the generation of WiFi access QR codes for office guests. Batch generating unique QR codes for event ticketing or product tracking. Decoding and validating QR codes from scanned documents or images.

How do I install Enhanced QR Code?

Install Enhanced QR Code by running: git clone https://github.com/myownipgit/mcp-server-qrcode-enhanced.git && cd mcp-server-qrcode-enhanced && npm install && npm run build

What MCP clients work with Enhanced QR Code?

Enhanced QR Code works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Enhanced QR Code docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare