jwalsh/mcp-server-qrcode
If you are the rightful owner of mcp-server-qrcode and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The MCP QR Code Server enables seamless QR code generation using the Model Context Protocol, connecting large language models to QR code generation capabilities across various client interfaces.
The MCP QR Code Server is a versatile tool designed to facilitate the generation of QR codes through the Model Context Protocol (MCP). This server acts as a bridge between large language models and QR code generation functionalities, allowing users to create QR codes for a variety of content types. Whether you need to encode URLs, WiFi credentials, contact information, plain text, or calendar events, this server provides a robust solution. It supports multiple output formats, including PNG images, ASCII/text representation, and Data URL format, ensuring compatibility with different use cases. Users can customize the size of the QR codes and select the desired error correction level, providing flexibility in how the codes are generated and used. The server is designed to integrate seamlessly with various platforms, making it an ideal choice for developers looking to enhance their applications with QR code capabilities.
Features
- Generate QR codes for URLs, WiFi credentials, contact information, plain text, and calendar events.
- Supports multiple output formats: PNG images, ASCII/text, and Data URL.
- Customization options for size and error correction levels.
- Seamless integration with various client interfaces.
- Robust solution for enhancing applications with QR code capabilities.
Usages
usage with Claude Desktop
{ "mcpServers": { "qrcode": { "command": "npx", "args": [ "-y", "@jwalsh/mcp-server-qrcode" ] } } }
usage with Emacs mcp.el
elisp ;; Basic installation with straight.el (use-package mcp :straight (mcp :type git :host github :repo "lizqwerscott/mcp.el")) ;; Connect to the QR code server (mcp-connect-server "qrcode" "npx" '("-y" "@jwalsh/mcp-server-qrcode") :initial-callback (lambda (connection) (message "Connected to %s" (jsonrpc-name connection))) :tools-callback (lambda (connection tools) (message "Available tools: %s" tools))) ;; Generate a QR code (let ((connection (gethash "qrcode" mcp-server-connections))) (mcp-call-tool connection "generate-qrcode" '(:content "https://example.com" :format "text")))
usage with MCP Inspector
bash npx -y @modelcontextprotocol/inspector npx -y @jwalsh/mcp-server-qrcode
usage with NPM Package CLI
bash # Verify installation echo '{"method":"tools/list","params":{},"id":1,"jsonrpc":"2.0"}' | mcp-server-qrcode | jq -r '.result.tools[]|.name' # Generate QR code via JSON-RPC echo '{"method":"tools/call","params":{"name":"generate-qrcode","arguments":{"content":"https://example.com","format":"text"}},"id":1,"jsonrpc":"2.0"}' | mcp-server-qrcode | jq -r '.result.content[0].text'
Tools
generate-qrcode
Generates a QR code for the specified content.