
Scan QRCode MCP Server
Enables decoding QR codes from images provided as either base64 data URLs or HTTP(S) image URLs. Supports common image formats and returns the decoded text content with clear error handling.
README
Scan QRCode MCP Server
MCP server that decodes QR codes from either a data URL (base64) or an HTTP(S) image URL and returns the decoded text.
Features
- Two precise tools for decoding:
decode_qrcode_data_url
— acceptsimageDataUrl
decode_qrcode_image_url
— acceptsimageUrl
- Decodes common image formats (PNG, JPEG, etc.).
- Deterministic behavior with clear errors for invalid inputs.
Getting Started
Configure this MCP server in your client using either npx
(recommended) or the global binary.
Standard config (recommended, uses npx
):
{
"mcpServers": {
"qrcode": {
"command": "npx",
"args": [
"scan-qrcode-mcp@latest"
]
}
}
}
Alternative using the global binary (after npm i -g scan-qrcode-mcp
):
{
"mcpServers": {
"qrcode": {
"command": "scan-qrcode-mcp",
"args": []
}
}
}
<details> <summary>Claude Desktop</summary>
Follow the MCP install guide: https://modelcontextprotocol.io/quickstart/user
Use the Standard config JSON above (name it qrcode
).
</details>
<details> <summary>Claude Code</summary>
Use the Claude Code CLI to add the QR MCP server:
claude mcp add qrcode npx scan-qrcode-mcp@latest
</details>
<details> <summary>VS Code (GitHub Copilot with MCP)</summary>
Follow: https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_add-an-mcp-server Or install via VS Code CLI (npx example):
code --add-mcp '{"name":"qrcode","command":"npx","args":["scan-qrcode-mcp@latest"]}'
</details>
<details> <summary>Codex CLI</summary>
Edit ~/.codex/config.toml
and add one of the following:
[mcp_servers.qrcode]
command = "npx"
args = ["scan-qrcode-mcp@latest"]
or, if you installed globally:
[mcp_servers.qrcode]
command = "scan-qrcode-mcp"
</details>
<details> <summary>Cursor</summary>
Settings -> MCP -> Add new MCP Server.
Name: qrcode
. Either use npx scan-qrcode-mcp@latest
or the global binary.
</details>
Notes:
- Requires Node.js 18.17+.
- If using the global binary but
scan-qrcode-mcp
is not found, ensure your global npm bin is on PATH and restart the client.
Project Structure
src/
server.ts
services/
qrcode-service.ts
utils/
data-url.ts
tests/
services/
qrcode.spec.ts
Scripts
npm i
: Install dependencies.npm run dev
: Start MCP server in watch mode (stdio transport).npm run build
: Compile TypeScript todist/
.npm start
: Run compiled server fromdist/
.npm test
: Run unit tests with coverage (Vitest).npm run lint
/npm run format
: Lint and format.
Usage
The server uses stdio transport and exposes two tools:
decode_qrcode_data_url
- Input:
{ imageDataUrl: string }
—data:<mime>;base64,<data>
URL for the QR image
- Input:
decode_qrcode_image_url
- Input:
{ imageUrl: string }
—http(s)
URL to the QR image
- Input:
Examples (pseudo-JSON-RPC over MCP):
Decode from data URL
{
"method": "tools/call",
"params": {
"name": "decode_qrcode_data_url",
"arguments": { "imageDataUrl": "data:image/png;base64,..." }
}
}
Decode from image URL
{
"method": "tools/call",
"params": {
"name": "decode_qrcode_image_url",
"arguments": { "imageUrl": "https://example.com/qr.png" }
}
}
Response text content contains the decoded string.
Configuration
- Requires Node.js 18.17+ for built-in
fetch
. - No environment variables are required.
Security Notes
- Only
http(s)
is allowed forimageUrl
. Data URLs must be base64-encoded. - Do not pass untrusted remote URLs without appropriate allowlisting in your environment.
License
MIT
Recommended Servers
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.
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.
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.

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.