Enhanced QR Code MCP Server

by myownipgit

Not rated
GitHub

About

Generates QR codes with metadata, batch processing, and file management tools.

Details

Author
myownipgit
Categories
Developer Tools, File Management

Setup

Install Enhanced QR Code MCP Server in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/myownipgit/enhanced-qrcode-mcp

Follow the installation instructions in the repository README, then restart your MCP client.

Generates QR codes with metadata, batch processing, and file management tools.

An advancedModel Context Protocol (MCP) serverthat generates QR codes andautomatically saves them as PNG fileswith comprehensive metadata, batch processing capabilities, and file management tools.

πŸ”— Dual Implementation Strategy
ThisPython implementationfocuses onreliable file generation and batch processing.
Foradvanced styling, analysis, and templates, see ourTypeScript implementation.

Built upon and enhanced from:@jwalsh/mcp-server-qrcode

This enhanced version adds automatic file generation, metadata tracking, batch processing, and production-ready features while maintaining full compatibility with the MCP protocol.

- Python 3.8+
- MCP client (Claude Desktop, VS Code extension, etc.)

git clone https://github.com/myownipgit/enhanced-qrcode-mcp.git cd enhanced-qrcode-mcp chmod +x setup.sh ./setup.sh
# Create virtual environment python3 -m venv venv source venv/bin/activate # Install dependencies pip install -r requirements.txt # Make server executable chmod +x src/enhanced_qrcode_server.py
{ "mcpServers": { "enhanced-qrcode": { "command": "python3", "args": ["/path/to/enhanced-qrcode-mcp/src/enhanced_qrcode_server.py"], "env": {}, "description": "Enhanced QR code generator with automatic PNG file saving" } } }

Generate a single QR code and automatically save as PNG file.

- content(required): Text content to encode
- output_directory: Target directory (default:./qr_output/)
- filename: Custom filename (auto-generated if empty)
- errorCorrectionLevel: L, M, Q, or H (default: M)
- size: Size multiplier 1-20 (default: 5)
- border: Border size 1-20 (default: 4)
- include_metadata: Generate JSON metadata (default: true)
- display_in_chat: Show in chat interface (default: true)

{ "content": "https://github.com/myownipgit/enhanced-qrcode-mcp", "output_directory": "./qr_codes/", "filename": "github_repo", "errorCorrectionLevel": "H", "size": 6 }

- PNG file:github_repo.png
- Metadata:github_repo_metadata.json
- Chat display (optional)

Generate multiple QR codes from array input.

{ "qr_codes": [ { "id": "contact", "content": "BEGIN:VCARD\nVERSION:3.0\nFN:John Doe\nORG:Acme Corp\nTEL:555-0123\nEMAIL:john@acme.com\nEND:VCARD", "type": "vcard" }, { "id": "website", "content": "https://example.com", "type": "url" } ], "output_directory": "./batch_output/", "size": 5 }

- PNG files:qr_contact.png,qr_website.png
- Individual metadata files
- Batch manifest:batch_manifest_YYYYMMDD_HHMMSS.json

List all QR code files in a directory with metadata.

{ "directory": "./qr_output/" }
output_directory/ β”œβ”€β”€ qr_20250616_143022_hello_world.png β”œβ”€β”€ qr_20250616_143022_hello_world_metadata.json β”œβ”€β”€ github_repo.png β”œβ”€β”€ github_repo_metadata.json └── batch_manifest_20250616_143500.json
{ "generated_date": "2025-06-16T14:30:22.123456", "content": "Hello World!", "parameters": { "error_correction": "M", "size": 5, "border": 4, "box_size": 10 }, "png_file": "/path/to/qr_file.png", "file_size_bytes": 1117 }

- Event Management: Generate ticket QR codes as ready-to-print PNG files
- Marketing: Create campaign QR codes with tracking metadata
- Inventory: Generate asset labels with automatic file organization
- Contact Sharing: Batch create vCard QR codes for business cards

- Print Production: Direct PNG output for design workflows
- API Workflows: Batch generate QR codes from database records
- Asset Management: Organized file structure with metadata
- Quality Control: Error correction levels for different environments

# Activate virtual environment source venv/bin/activate # Run tests python3 tests/test_server.py
πŸš€ Running Enhanced QR Code MCP Server Tests βœ… QR code generation successful βœ… Filename generation tests passed βœ… File operations tests passed βœ… Integration test passed - 3 files generated πŸ“Š Test Results: 4/4 passed πŸŽ‰ All tests passed! Enhanced MCP server is ready to use.

- Single QR code: ~50ms generation + file save
- Batch processing: ~100ms per code + manifest
- Metadata generation: ~5ms per file
- File listing: ~10ms per 100 files

- L (Low): ~7% damage recovery - basic indoor use
- M (Medium): ~15% damage recovery - standard use (default)
- Q (Quartile): ~25% damage recovery - industrial environments
- H (High): ~30% damage recovery - outdoor/damaged surfaces

See our comprehensiveROADMAP.mdfor detailed development plans including:

- Structured content buildersfor vCard, WiFi, and events
- SVG and PDF output formats
- Enhanced validationand content optimization

🎨 Advanced Features (Available in TypeScript Version)

OurTypeScript implementationalready includes:

- Custom stylingwith colors, logos, and gradients
- QR code analysisand decoding capabilities
- Template systemwith pre-defined styles
- Quality assessmenttools with recommendations

ModuleNotFoundError: No module named 'mcp'

- Check directory permissions
- Verify output path exists
- Check disk space

# Test dependencies python3 -c "import qrcode, mcp; print('βœ… Dependencies OK')" # Test server startup python3 src/enhanced_qrcode_server.py

Contributions are welcome! Please seeCONTRIBUTING.mdfor guidelines.

git clone https://github.com/myownipgit/enhanced-qrcode-mcp.git cd enhanced-qrcode-mcp ./setup.sh source venv/bin/activate python3 tests/test_server.py

MIT License - seeLICENSEfile for details.

- Original Work:@jwalsh/mcp-server-qrcode- Foundation QR code MCP server
- MCP Protocol:
Model Context Protocol- Enabling AI-tool integration
- QR Code Library:
qrcode- Core QR code generation
- Pillow:
PIL/Pillow- Image processing capabilities

- Enhanced TypeScript Version- Advanced styling and analysis features
-
Original MCP QR Code Server- The foundation this builds upon
-
Model Context Protocol- MCP specification and tools
-
Claude Desktop- AI assistant with MCP support

- Language: Python 3.8+
- Dependencies: MCP, qrcode, Pillow
- Test Coverage: 100% (4/4 tests passing)
- Documentation: Complete with examples
- License: MIT

Enhanced QR Code MCP Server v2.0.0
Production-ready QR code generation with automatic PNG file output and comprehensive metadata

Built with ❀️ upon the excellent foundation of@jwalsh/mcp-server-qrcode

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

Provides utility functions for common tasks like text processing, encoding, decoding, hashing, and system information.

Cross-platform MCP server for system clipboard access. Three tools: get_clipboard, set_clipboard, watch_clipboard. Single Rust binary, zero runtime deps.

A minimal file bundling and tagging tool for AI development, featuring a web interface and MCP server mode for AI integration.

Enables AI assistants to write, edit, and manage code files directly in a specified directory, respecting .gitignore patterns.

Integrates with the unofficial Google Gemini CLI, allowing file access within configured directories.

Fetch and process images from URLs, local file paths, and numpy arrays, returning them as base64-encoded strings.

Retrieve image dimensions and compress images from URLs or local files using Tinify and Figma APIs.

A collection of servers for file system operations, Google search, web automation, and executing terminal commands.

A demonstration MCP server implementation in Go featuring real-time bidirectional file communication.

An MCP server that integrates with Ollama to provide tools for file operations, calculations, and text processing. Requires a running Ollama instance.

No reviews yet β€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.