Skip to content

Add QR code Python MCP server example - #105

Merged
ochafik merged 5 commits into
mainfrom
add-qr-server
Dec 9, 2025
Merged

Add QR code Python MCP server example#105
ochafik merged 5 commits into
mainfrom
add-qr-server

Conversation

@antonpk1

@antonpk1 antonpk1 commented Dec 9, 2025

Copy link
Copy Markdown
Contributor

Summary

Adds a minimal Python MCP server that generates customizable QR codes with an interactive widget UI.

Features:

  • Generate QR codes from any text or URL
  • Customizable colors (fill_color, back_color)
  • Adjustable size (box_size, border)
  • Error correction levels (L/M/Q/H)
  • Interactive widget using MCP Apps SDK protocol
  • Supports both HTTP and stdio transport modes

Files:

  • examples/qr-server/server.py - FastMCP server implementation
  • examples/qr-server/widget.html - Vanilla JS widget (no build step)
  • examples/qr-server/README.md - Documentation with examples
  • docs/screenshots/qr-server/screenshot.png - Screenshot for README

Test plan

  • Run python server.py and test with basic-host
  • Test python server.py --stdio with MCP Inspector
  • Verify QR code generation with various parameters
  • Test widget rendering and size reporting

🤖 Generated with Claude Code

@pkg-pr-new

pkg-pr-new Bot commented Dec 9, 2025

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/ext-apps@105

commit: 517b4c1

Comment thread examples/qr-server/widget.html Fixed
Comment thread examples/qr-server/widget.html Fixed
A minimal Python MCP server that generates customizable QR codes with an
interactive widget UI. Features:

- Generate QR codes from any text or URL
- Customizable colors, size, border, and error correction
- Interactive widget using MCP Apps SDK protocol
- Supports both HTTP (for web clients) and stdio (for Claude Desktop)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
antonpk1 and others added 2 commits December 9, 2025 15:34
…scripting

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@antonpk1

antonpk1 commented Dec 9, 2025

Copy link
Copy Markdown
Contributor Author
Screenshot 2025-12-09 at 15 03 06

jonathanhefner
jonathanhefner previously approved these changes Dec 9, 2025

@ochafik ochafik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! Can you add a screenshot? Edit: saw it, neat!

@ochafik
ochafik merged commit 546f507 into main Dec 9, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants