QR Code MCP Server

QR Code MCP Server

Enables the generation of QR codes in PNG, SVG, Base64, and ASCII formats via Model Context Protocol clients. Users can save codes directly to local files or display them as terminal-friendly art through natural language commands.

Category
Visit Server

README

QR Code MCP Server

QRコードを生成するためのMCP(Model Context Protocol)サーバーですわ。こちらのサーバーを使えば、Claude DesktopなどのMCP対応クライアントから、簡単にQRコードを生成していただけますわよ!

📦 インストール

Claude Codeでのインストール(推奨)

Claude Codeをお使いの場合は、以下のコマンド一つでインストール完了ですわ:

claude mcp add --scope user qr-mcp-server uvx git+https://github.com/cympfh/qr-mcp-server

Claude Desktopでの設定

Claude Desktopの設定ファイルに、こちらのサーバーを登録していただく必要がございますわ。

  • macOS:
    • ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows:
    • %APPDATA%\Claude\claude_desktop_config.json
  • Linux:
    • ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "qr-generator": {
      "command": "uvx",
      "args": [
        "git+https://github.com/cympfh/qr-mcp-server"
      ]
    }
  }
}

設定を保存したら、Claude Desktopを再起動していただけますでしょうか。

🎯 使い方

Claude Desktopでこちらのサーバーが利用可能になりましたら、以下のような使い方ができますわ。

PNG画像として保存

QRコードを生成して、"qr.png"というファイル名で保存してください。
データは"https://example.com"でお願いします。

SVG画像として保存

"Hello World"というテキストのQRコードをSVG形式で"qr.svg"に保存してください。

Base64エンコード画像を取得

"https://github.com"のQRコードをBase64エンコードされたPNG形式で生成してください。

ASCIIアートとして表示

"QR Code"というテキストのQRコードをASCIIアートで表示してください。

🛠️ 利用可能なツール

わたくしのサーバーでは、以下の5つのツールをご用意しておりますわ。

1. generate_qr_png

QRコードをPNG画像として生成し、ファイルに保存いたします。

パラメータ:

  • data (string, 必須): QRコードに埋め込むデータ
  • output_path (string, 必須): 保存先のファイルパス
  • overwrite (boolean, 任意): 既存ファイルを上書きするか(デフォルト: false)
  • size (integer, 任意): QRコードのボックスサイズ(デフォルト: 10)
  • border (integer, 任意): QRコードの余白サイズ(デフォルト: 4)

2. generate_qr_svg

QRコードをSVG画像として生成し、ファイルに保存いたします。

パラメータ:

  • data (string, 必須): QRコードに埋め込むデータ
  • output_path (string, 必須): 保存先のファイルパス
  • overwrite (boolean, 任意): 既存ファイルを上書きするか(デフォルト: false)
  • border (integer, 任意): QRコードの余白サイズ(デフォルト: 4)

3. generate_qr_base64_png

QRコードをPNG画像として生成し、Base64エンコードした文字列を返しますわ。

パラメータ:

  • data (string, 必須): QRコードに埋め込むデータ
  • size (integer, 任意): QRコードのボックスサイズ(デフォルト: 10)
  • border (integer, 任意): QRコードの余白サイズ(デフォルト: 4)

4. generate_qr_base64_svg

QRコードをSVG画像として生成し、Base64エンコードした文字列を返しますわ。

パラメータ:

  • data (string, 必須): QRコードに埋め込むデータ
  • border (integer, 任意): QRコードの余白サイズ(デフォルト: 4)

5. generate_qr_ascii

QRコードをASCIIアートとして生成いたします。ターミナルでの表示に最適ですわよ。

パラメータ:

  • data (string, 必須): QRコードに埋め込むデータ
  • border (integer, 任意): QRコードの余白サイズ(デフォルト: 2)

📚 技術仕様

  • 言語: Python 3.13+
  • フレームワーク: FastMCP 0.3.0+
  • QRコードライブラリ: qrcode 8.2+ (PIL対応)
  • パッケージマネージャ: uv

🔍 トラブルシューティング

サーバーが起動しない場合

  1. Python 3.13以上がインストールされているか確認してくださいませ
  2. uv sync で依存関係が正しくインストールされているか確認してくださいませ
  3. Claude Desktopの設定ファイルのパスが正しいか確認してくださいませ

ツールが表示されない場合

  1. Claude Desktopを完全に再起動してくださいませ(単にウィンドウを閉じるだけでなく、プロセスを終了させてくださいね)
  2. 設定ファイルのJSON形式が正しいか確認してくださいませ

ファイルが保存できない場合

  1. 指定したディレクトリへの書き込み権限があるか確認してくださいませ
  2. overwrite=true を指定して、既存ファイルの上書きを許可してくださいませ

📄 ライセンス

MITライセンスの下で公開しておりますわ。

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured