Skip to main content
Glama

qrtap-mcp — QRTap for AI agents

An MCP stdio server that lets Claude, or any MCP-compatible assistant, run a QRTap workspace: editable QR codes and short links, public pages, guest reviews, booking requests and conditional redirects.

Русская версия: README.ru.md.

Why it exists

A QRTap code encodes a permanent short link, and the destination behind that link stays editable forever. Print a code on a menu, a price list, a shop window or a business card once — then change where it leads as often as you need. Nothing is reprinted.

That makes the product a good fit for an agent: "put a QR on the summer menu", "point the sticker at the new price list", "issue 120 codes for the branches, one per branch", "are there new bookings?" are all one or two tool calls.

Related MCP server: QRSalt MCP server

Install

npx -y qrtap-mcp        # run the stdio server
npm i -g qrtap-mcp      # or install the qrtap-mcp binary

Node 20 or newer, and nothing else: the package is compiled JavaScript with zero runtime dependencies, so npx fetches about 22 kB and the server is up — no toolchain download on first run. It speaks MCP on stdin/stdout and logs to stderr only.

Configuration

Variable

Meaning

QRTAP_API_KEY

Required. Workspace API key.

QRTAP_API_URL

API base. Default https://app.qrtap.kg.

Where to get a key. The workspace owner issues it in the QRTap cabinet at app.qrtap.kg/workspace/api. The key is shown once, carries the rights of the whole workspace, and can be revoked there at any time. A key can be issued on any plan, including the free one — you can try the integration before paying. What the plan changes is the budget and the batch endpoints, not the door; see Limits and plans below and app.qrtap.kg/pricing.

Treat the key like a password: keep it in the MCP client's env block, not in a prompt, a repository or a shared document.

Claude Desktop

Settings → Developer → Edit Config, then add to claude_desktop_config.json:

{
  "mcpServers": {
    "qrtap": {
      "command": "npx",
      "args": ["-y", "qrtap-mcp"],
      "env": { "QRTAP_API_KEY": "qrtap_key_XXXX" }
    }
  }
}

Claude Code

claude mcp add qrtap --env QRTAP_API_KEY=qrtap_key_XXXX -- npx -y qrtap-mcp

Cursor, Windsurf, VS Code and other MCP clients

The same entry works anywhere that accepts the standard mcpServers shape — .cursor/mcp.json, .mcp.json at a project root, or the client's own settings file:

{
  "mcpServers": {
    "qrtap": {
      "command": "npx",
      "args": ["-y", "qrtap-mcp"],
      "env": { "QRTAP_API_KEY": "qrtap_key_XXXX" }
    }
  }
}

Tools

Twenty tools over the public REST API v1. Read operations are safe to call freely; the four marked public effect change what real customers see, and their descriptions tell the agent to confirm with the user first.

Tool

Maps to

qrtap_create_code(url, title?, external_ref?, group?, design_template_id?)

POST /api/v1/codes

qrtap_create_codes_bulk(items[])

POST /api/v1/codes/bulk — up to 500, per-item results

qrtap_list_codes(group?, external_ref?, include_stats?, limit?, offset?)

GET /api/v1/codes

qrtap_get_code(codeId)

GET /api/v1/codes/{id}

qrtap_change_destination(codeId, url) — public effect

PATCH /api/v1/codes/{id}

qrtap_code_history(codeId)

GET /api/v1/codes/{id}/history

qrtap_create_short_link(url)

POST /api/v1/codes

qrtap_list_design_templates()

GET /api/v1/design-templates

Analytics

Tool

Maps to

qrtap_code_stats(codeId, from?, to?)

GET /api/v1/codes/{id}/stats

qrtap_group_stats(group, from?, to?)

GET /api/v1/groups/{group}/stats

Scan analytics are anonymous and aggregate by design: totals, a per-day series and a device split. Bots are excluded, and no visitor IPs or user-agents are stored, so there are no per-person records for an agent to ask for.

Public pages (/a/{slug})

Tool

Maps to

qrtap_list_pages()

GET /api/v1/pages

qrtap_get_page(slug)

GET /api/v1/pages/{slug}

qrtap_create_page(content)

POST /api/v1/pages

qrtap_update_page(slug, content)

PATCH /api/v1/pages/{slug}

Reviews and bookings

Tool

Maps to

qrtap_list_reviews(status?)

GET /api/v1/reviews (default pending)

qrtap_moderate_review(reviewId, action) — public effect

POST /api/v1/reviews/{id}/moderate

qrtap_list_bookings(status?)

GET /api/v1/bookings

qrtap_set_booking_status(bookingId, status) — public effect

POST /api/v1/bookings/{id}/status

Tool

Maps to

qrtap_get_smart_rules(codeId)

GET /api/v1/codes/{id}/smart-rules

qrtap_set_smart_rules(codeId, rules) — public effect

PUT /api/v1/codes/{id}/smart-rules

Two rules an agent should know

Read before you overwrite. qrtap_update_page and qrtap_set_smart_rules replace their payload wholesale — anything you omit is erased. Fetch the current state with qrtap_get_page / qrtap_get_smart_rules, merge your change into it, send the whole object back.

Set external_ref on batches. Creation is idempotent by external_ref, so a retried call returns the existing code instead of minting a duplicate. It is what makes a partly failed batch safe to re-run.

Printable artifacts

png_url and svg_url come back on every code. For a print shop, request a PDF directly — artifact endpoints need the same Bearer key:

curl -H "Authorization: Bearer $QRTAP_API_KEY" \
  "https://app.qrtap.kg/api/v1/codes/$CODE_ID/qr?format=pdf" -o code.pdf

format is png | svg | pdf; size sets PNG width (256–3000, ~2000 for print). PNG output is decode-verified before it is returned. Rendering is not exposed as a tool because the result is a binary file rather than text an agent can reason over.

Ready-made agent skills

Step-by-step recipes for the common jobs — a menu you can change without reprinting, a specialist's page in five minutes, one QR for reviews on 2GIS/Google/Yandex, issuing a batch of codes, working the booking inbox — live in skills/ in the repository. Each one is a single self-contained markdown file you can hand to an assistant.

Limits and plans

Two budgets apply to every /api/v1 call: a per-minute brake and a per-day quota, both set by the workspace plan.

Plan

Per minute

Per day

Active keys

Bulk and scan webhooks

Free

60

100

1

no

Standard

120

5,000

3

yes

Full

300

50,000

10

yes

The free tier exists so a developer or an agent can try the integration before buying: 100 calls a day is enough to build and demo, not to run a business on.

Over a budget the API answers 429 and says which one ran out — {"error":"rate_limited", "scope":"minute"} means wait seconds, {"error":"quota_exceeded","scope":"day"} means wait for UTC midnight. Both carry Retry-After and the X-RateLimit-Limit / -Remaining / -Reset headers, and the tool result surfaces all of it verbatim so an agent can back off instead of hammering.

Two calls are worth preferring on any plan: qrtap_create_codes_bulk over a loop, and qrtap_list_codes(include_stats=true) over per-code stats requests.

qrtap_create_codes_bulk needs a paid plan. On a free workspace it answers 402 plan_required with the current plan and an upgrade URL; the fallback is a loop of qrtap_create_code within the daily quota. Current plan limits live in one place in the platform — API_PLAN_LIMITS — and the table above tracks it.

Errors

API failures come back as ordinary tool results with isError: true, carrying the HTTP status and the response body as text, so the agent can read and explain them rather than crash. Only an unknown tool name is a JSON-RPC error (-32602).

Status

Meaning

401

Key missing, invalid or revoked

402 plan_required

The request is valid, the plan does not cover it (bulk, scan webhooks)

404

No such object in your workspace — another tenant's id looks identical to a typo, deliberately

422

Content rejected: a page with no contact, or a QR caption with promo wording

429

Budget exhausted; read scope and honour Retry-After

Licence and terms — where the line is

The client code in this package is MIT-licensed: read it, fork it, vendor it, ship it inside your own product. The LICENSE file is the whole of the grant.

That licence covers this thin client and nothing else. Access to the QRTap API is a separate matter, governed by your QRTap plan and the QRTap terms of use: the service, the hosted platform and the data in your workspace remain QRTap's. An MIT licence on the client is not an entitlement to the API — you still need a valid key on a plan that includes API access, and the usual limits and terms apply.

Development

All commands run from this package directory, in the monorepo and in the public mirror alike:

npm install          # first time only
npm test             # vitest: tool→HTTP mapping and MCP dispatch
npm run typecheck

Smoke test by hand — one JSON-RPC message per line:

npm run build    # dist/ must exist first
QRTAP_API_KEY=qrtap_key_XXXX node bin/qrtap-mcp.mjs <<'EOF'
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"smoke","version":"0"}}}
{"jsonrpc":"2.0","method":"notifications/initialized"}
{"jsonrpc":"2.0","id":2,"method":"tools/list"}
EOF

The published package is compiled JavaScript in dist/ and has zero runtime dependencies — npx -y qrtap-mcp downloads about 22 kB and starts on plain Node, with no toolchain to fetch first. prepack rebuilds dist/ on every npm pack and npm publish, so an unbuilt or stale package cannot be shipped.

npm run build     # tsc -p tsconfig.build.json → dist/

TypeScript sources live in src/ in the repository (MIT, see below) but are not in the tarball. The MCP stdio protocol is implemented directly in src/server.ts; imports carry explicit .js extensions because tsc does not rewrite specifiers and the emitted ESM has to resolve under plain Node.

About this repository

This is the published source of the qrtap-mcp npm package: the server, its tests and the agent skills. The rest of the QRTap platform (web app, API, database) is closed and lives in a private repository, so the history here starts at the first public release rather than at the first commit.

One test is intentionally absent. plan-limits.test.ts reads the plan grid out of the platform's database package and checks that the numbers in this README match what is actually sold; it can only run where both halves exist, so it stays in the private repository.

Issues and pull requests about the server, the skills or the docs are welcome here.

MIT © 2026 QRTap (ИП Шуренков И.П., Kyrgyz Republic)

Available Tools

20 tools
qrtap_change_destinationA

Point an existing code at a new destination URL. This is the core of the product: the printed QR, its slug and its short_url stay byte-for-byte the same, only the redirect target changes, so a menu or price list can be replaced without reprinting anything. The change is live for the next scan, immediately, and the previous destination is kept in the audit trail (qrtap_code_history). Because it changes what real customers see, confirm the new URL with the user before calling.

Inputs: url (required), codeId (required).

qrtap_code_historyA

Every destination one code has ever pointed at, newest first, with the version number, the reason and when each became active. Use it to answer 'where did this code point last week?' or to recover a previous URL after a wrong retarget. The printed code itself never changed — only its target did.

Inputs: codeId (required).

qrtap_code_statsA

Aggregated anonymous scan statistics for ONE code: total scans, a per-day series and the device split (mobile/tablet/desktop). Bots are excluded; QRTap stores no visitor IPs or user-agents, so no per-person data exists to return. Bound the window with from/to when the user asks about a period. For a whole batch use qrtap_group_stats; for plain totals across many codes use qrtap_list_codes with include_stats.

Inputs: codeId (required), to, from.

qrtap_create_codeA

Create ONE managed QR code on QRTap. Returns the code object: id, short_url (the stable link the QR actually encodes — printing this once is safe because it never changes), png_url/svg_url for the rendered artifact, plus the label/group/external_ref you set. The destination behind the code is editable forever via qrtap_change_destination, so the printed sticker never has to be reissued. For more than a handful of codes at once use qrtap_create_codes_bulk instead — it is one request rather than N.

Inputs: url (required), group, title, external_ref, +1 more.

qrtap_create_codes_bulkA

Create MANY managed codes in a single request — up to 500. Use this for any batch: stickers for a print run, one code per table or shelf, one per branch or partner. Results are per item, so one bad URL does not sink the batch: the reply is {created, reused, failed, data:[…]} where each entry is either a code (ok=true, plus reused telling you whether it already existed) or {ok:false, external_ref, error}. On a re-run after a partial failure created counts only what was actually new and reused counts what was returned unchanged, so the two numbers tell you whether the call did any work. Give every item an external_ref — the call is then idempotent per item and safe to re-run after a partial failure, without producing duplicates. Bulk requires a paid plan: on a free workspace it answers HTTP 402 plan_required, and the fallback is a loop of qrtap_create_code within the plan's limits.

Inputs: items (required).

qrtap_create_pageA

Create and publish the organization's public page — a mobile business card served at https://app.qrtap.kg/a/ with the name, contacts, price list and review links. Returns slug and public_url; feed that public_url to qrtap_create_code to get a printable card. WARNING: a workspace has exactly ONE page, and if one already exists this REPLACES its whole content with what you send. Every field you leave out is dropped from the live page. Never reach for this tool to add or change something on a page that exists: call qrtap_get_page first, merge your change into the content it returns, and send the merged object through qrtap_update_page. Retrying with the SAME content is safe: the slug never changes, so an already printed QR keeps working, and the replaced version stays in the page's history.

Inputs: content (required).

qrtap_get_codeA

Fetch one code by id: its current destination, label, group, external_ref, the permanent short_url and the artifact URLs. Use it to confirm where a code points right now before changing it, or to re-read a code returned earlier.

Inputs: codeId (required).

qrtap_get_pageA

Read ONE public page in full, including its current content object. This is the read-before-write step for qrtap_update_page, which overwrites content wholesale — fetch here, change the one field, send the merged object back. qrtap_list_pages deliberately omits content, so it cannot be used for this.

Inputs: slug (required).

qrtap_get_smart_rulesA

Read the conditional (Smart Links) redirect rules currently set on one code. An empty array means the code always goes to its primary destination. Call this before qrtap_set_smart_rules, which replaces the whole rule set — otherwise you will silently drop rules you did not know about.

Inputs: codeId (required).

qrtap_group_statsA

Aggregated scan statistics for a WHOLE group of codes at once: how many codes are in the group plus the combined total, per-day series and device split. This is the report for a batch — all branches, all tables, all partner stickers — without iterating over codes one by one.

Inputs: group (required), to, from.

qrtap_list_bookingsA

List booking requests left by guests on the organization's public pages, newest first: service, the guest's free-form preferred time, name, phone and status. status='new' is the inbox that still needs a decision — that is the usual call. Omit status to see everything. The reply contains customers' names and phone numbers, so treat it as personal data: use it to serve the request, do not copy it elsewhere.

Inputs: status.

qrtap_list_codesA

List the organization's managed codes and short links, newest first. This is the way to find a code's id before retargeting it, and the way to check what already exists before creating more. Filter by group (a whole batch) or external_ref (one specific code). Set include_stats=true to get every code's all-time scan count in the same response — far cheaper than calling qrtap_code_stats per code when you only need totals.

Inputs: group, limit, offset, external_ref, +1 more.

qrtap_list_design_templatesA

List the organization's branded design templates (brand colour, centre logo, default caption), newest first. Its only purpose is to get a design_template_id to pass to qrtap_create_code / qrtap_create_codes_bulk. Templates are created by the owner in the cabinet, not through this server, because they carry logo image data.

Inputs: no named parameters.

qrtap_list_pagesA

List the organization's public pages — slug, segment, theme, published state, version and public_url. Content is NOT included; use qrtap_get_page to read it. Use this when you only need to discover the slug or check whether a page exists yet.

Inputs: no named parameters.

qrtap_list_reviewsA

List guest reviews left on the organization's public pages. Nothing a guest writes appears publicly until someone publishes it, so the default status 'pending' is the moderation queue — this is the tool for 'are there new reviews?'. Pass 'published' or 'hidden' to review earlier decisions.

Inputs: status.

qrtap_moderate_reviewA

Publish or hide one guest review. Publishing puts it on the public page immediately, visible to everyone; hiding takes it off. This is a decision made on behalf of the business owner and it is publicly visible — always show the user the review text and ask before calling.

Inputs: action (required), reviewId (required).

qrtap_set_booking_statusA

Confirm or decline one booking request. Two things to tell the user before calling: this is a commitment to a real person, so ask first; and QRTap sends the guest NO notification, so somebody still has to ring the phone number on the request. The status here is the business's own record of that decision. It cannot be moved back to 'new'.

Inputs: status (required), bookingId (required).

qrtap_set_smart_rulesA

REPLACE the Smart Links rules of one code — conditional redirects evaluated on every scan, first match wins, falling back to the code's primary destination when nothing matches. Typical uses: send iOS and Android scans to their own app stores, serve a Russian and a Kyrgyz page, or point at the delivery menu outside opening hours. The array you pass becomes the complete rule set, so read the current one with qrtap_get_smart_rules first; passing [] clears all rules. At most 5 rules.

Inputs: rules (required), codeId (required).

qrtap_update_pageA

Publish a new version of an existing public page, identified by its slug. The slug and public_url do not change, so printed QR codes stay valid. IMPORTANT: content REPLACES the previous content wholesale — any field you omit is erased, not kept. To change one field, first read the current content with qrtap_get_page, merge your change into it, and send the whole object back.

Inputs: slug (required), content (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 20 tools

    Disambiguation4/5

    Most tools target clearly distinct resources and actions, and the descriptions explicitly separate close pairs like list vs get, per-code stats vs group stats, and get-before-set for smart rules. Two overlaps remain: qrtap_create_short_link is essentially a narrower qrtap_create_code, and qrtap_create_page can replace an existing page, overlapping with qrtap_update_page despite the warnings.

    Naming Consistency4/5

    The set uses a consistent qrtap_ prefix and mostly follows a verb_noun snake_case convention. A few tools omit the verb, such as qrtap_code_history, qrtap_code_stats, and qrtap_group_stats, but the pattern remains predictable.

    Tool Count3/5

    The server covers a broad QR platform surface: codes, pages, reviews, bookings, stats, smart rules, templates, and short links. Twenty tools is borderline heavy for the domain, and qrtap_create_short_link in particular feels like a redundant specialization of qrtap_create_code.

    Completeness3/5

    Core workflows are well covered: code creation, lookup, retargeting, history, stats, bulk creation, page read/update, review moderation, and booking status. However, there is no delete or archive operation for codes, no tool to update code metadata such as label, group, or external_ref, and page deletion is absent, leaving notable lifecycle gaps.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables AI clients to generate QR codes for URLs, WiFi networks, contacts, text and email, and to list saved codes and read scan analytics by time range, device, OS and approximate location. Connects over a remote streamable HTTP endpoint with no installation required, though the analytics and account tools require an API key.
      3
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Lets an AI assistant create QR codes and short links, re-point or pause them, inspect scan counts and analytics, and read the contents of a QR image you supply. It connects to a hosted workspace over Streamable HTTP, so codes can be managed and tracked without leaving the chat.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to create, update, organize, and delete short links; render styled QR codes; route visitors by device or country; and read click and scan statistics. Agents can also manage groups and custom domains while changing destinations without breaking printed QR codes or shared short URLs.
      MIT