MCP Connector
barcoder-codec
Barcoder's MCP servers give AI agents the encyclopedia and the codecs: the hosted server signs in to your account and checks payments; the local one runs offline for the reference and codes.
Hosted server
Nothing to install. Add the server once; the first tool call opens a sign-in in your browser, and the agent works on your Barcoder account from then on.
Server URL (streamable HTTP, OAuth 2.1)
https://api.barcoder.ai/mcpConnect your client
On Barcoder's permission screen a client appears under the name it gives itself (Claude Code, Codex), marked Unverified, with its client ID. The app's Connected apps lists it under the same name, and you can revoke it there.
Claude Code
Tested: Claude Code 2.1.299, up to Barcoder's sign-in and permission screen on production, and signed in, connected and revoked end to end on a local stack, 2026-10-16
- Add the server. Add --scope user to have it in every project; the default is the current project only.
claude mcp add --transport http barcoder https://api.barcoder.ai/mcp - Sign in: in a session, run /mcp, pick barcoder and choose Authenticate. Your browser opens Barcoder's sign-in, then the permission screen. From a shell, claude mcp login barcoder does the same (--no-browser over SSH).
/mcp - Check it: claude mcp list shows ! Needs authentication until you sign in, and ✔ Connected after. Sign out with claude mcp logout barcoder.
claude mcp list
Source: Claude Code docs: Connect Claude Code to tools via MCP (read 2026-10-16)
Claude (claude.ai and Claude Desktop)
A custom connector, on the Free, Pro, Max, Team and Enterprise plans. Free accounts can add one custom connector.
Pro and Max
Not tested here: follows the vendor's docs
- Go to Customize > Connectors, click + Add, then Add custom connector.
- Name it Barcoder, paste the server URL and click Continue.
https://api.barcoder.ai/mcp - Keep the sign-in Claude detects. Under OAuth client, keep Use Claude's published identity (Recommended). Click Add, then sign in to Barcoder when asked.
- In a chat, turn it on with the + button at the lower left, then Connectors.
Team and Enterprise
Not tested here: follows the vendor's docs
- An Owner goes to Organization settings > Connectors, clicks Add, hovers over Custom and selects Web, then enters the name and URL as above.
- Each member then goes to Customize > Connectors, finds Barcoder (labelled Custom) and clicks Connect.
Source: Claude Help Center: Get started with custom connectors using remote MCP (read 2026-10-16)
ChatGPT
A custom MCP server, added as a plugin. OpenAI says account and workspace policies decide who may add one; which plans allow it isn't stated on the page these steps come from.
Not tested here: follows the vendor's docs
- Go to ChatGPT Plugins (chatgpt.com/plugins), select the plus button, then Add custom MCP server.
- Enter a name and description. Under Connection, enter the server URL, including /mcp.
https://api.barcoder.ai/mcp - Configure authentication (Barcoder signs in with OAuth), review the risk warning and select I understand and want to continue.
- Select Create as a plugin, then review the tools ChatGPT found on the server.
Source: OpenAI Apps SDK: Connect from ChatGPT (read 2026-10-16)
Codex
The Codex CLI, the IDE extension and the ChatGPT desktop app share one configuration, ~/.codex/config.toml.
CLI
Tested: Codex CLI 0.154.0, up to Barcoder's sign-in and permission screen on production, and signed in, connected and revoked end to end on a local stack, 2026-10-16
- Add the server. It detects the sign-in and opens Barcoder's sign-in in your browser straight away; it prints Successfully logged in. once you allow it (seen in testing).
codex mcp add barcoder --url https://api.barcoder.ai/mcp - That writes this to config.toml; no other setting is needed.
[mcp_servers.barcoder] url = "https://api.barcoder.ai/mcp" - Sign in again later, or after codex mcp logout barcoder:
codex mcp login barcoder - Check it: codex mcp list, or /mcp in the Codex terminal UI. The list shows Auth OAuth once you're signed in.
codex mcp list
IDE extension
Not tested here: follows the vendor's docs
- Open the gear menu, select MCP servers, then Add server. Name it barcoder, choose Streamable HTTP and paste the URL.
- Save, then select Restart extension. Select Authenticate next to barcoder to sign in.
Source: ChatGPT Learn: Model Context Protocol (Codex) (read 2026-10-16)
Any other client
Any client with remote MCP over streamable HTTP and OAuth sign-in needs only the URL.
Tested: MCP Inspector 2.11.0 (CLI), up to Barcoder's sign-in and permission screen on production, and signed in, connected and revoked end to end on a local stack, 2026-10-16, registering itself through dynamic client registration
- Transport: streamable HTTP at the server URL.
https://api.barcoder.ai/mcp - Discovery: a call without a token gets 401 with a WWW-Authenticate header naming the protected-resource metadata, which names the authorization server.
- OAuth 2.1 authorization code with PKCE (S256 only) for public clients (no client secret). The client registers itself, by dynamic client registration or a client ID metadata document. The redirect may be any https URL or an http loopback address on any port.
- Scopes: codes:read, cases:read and cases:write, approved together on one screen. mcp is an older single scope that covers all three.
Source: MCP specification: Authorization (read 2026-10-16)
Looking up standards, decoding and generating codes are free. Reading a payment request, checking a payment or making a payment code uses a case from the account. Disconnect it any time in the app's Connected apps.
What it may do
On first use the server asks for three permissions, approved together on one consent screen. Connections made before the split hold a single mcp permission that covers all three.
- codes:read
- Look up standards and markets, and decode, identify and generate codes. Reads none of your data and charges nothing.search_standards · get_standard · search · get_page · list_encoders · get_encoder_schema · identify_payload · decode_image · generate_code · list_markets
- cases:read
- See your cases, their stored reports and your remaining cases.list_cases · get_case · get_usage
- cases:write
- Read payment details from documents, validate payments and make payment codes for you. Each extraction or validation charges a case.extract_payment_fields · make_payment_code · validate_payment
Tools · 16
search_standardsSearch standards
read-onlyList Barcoder's standards (QR, barcode and payment-code formats), filterable by text (q) and type.
get_standardGet a standard
read-onlyGet one standard's full reference page (frontmatter + rendered HTML) by id, e.g. 'pix', 'hub3', 'swiss-qr-bill'.
searchSearch the reference
read-onlySearch standards, country payment landscapes and wallets. Read a result with get_page (its kind and id).
get_pageGet a reference page
read-onlyGet one full reference page (frontmatter + rendered HTML, and its public url) by kind and id, e.g. from a search result: standard ('pix'), country (ISO code, 'BR'), scheme ('<ISO>/<scheme>', from a country page's schemes, e.g. 'BR/pix-qr'), wallet ('picpay'), or wallet_standard ('<wallet>/<standard>', from a wallet page's standards, e.g. 'revolut/pix').
list_encodersList encoders
read-onlyList every encoder generate_code accepts, with the standards that use it.
get_encoder_schemaGet an encoder's fields
read-onlyGet the field schema and an example for one encoder, to fill generate_code's values correctly.
identify_payloadIdentify a payload
read-onlyIdentify which standard a decoded QR/barcode payload belongs to, with decoded fields and wiki links.
decode_imageDecode codes in an image
read-onlyDecode every QR code / barcode in an image (base64 PNG/JPEG/WebP, max 5 MB) and identify each payload.
generate_codeGenerate a code image
read-onlyGenerate a scannable payment code or barcode from structured fields (see get_encoder_schema for the fields). A PNG comes back as an image content block; pass include_base64: true to get it as image_base64 instead (to save it). An SVG comes back as image_base64.
extract_payment_fieldsExtract payment fields
spends a caseconfirm firstRead the payment details from pasted text (text: an email or message asking for a payment, e.g. a school trip) or an invoice (document.file_base64 + media_type for an image/PDF). Returns only the fields the source states, each with a confidence, `missing` for the rest (never guessed), and warnings (low confidence, suspected injected instructions, missing fields, values not found in the text). The fields are UNCONFIRMED: show them to the user to confirm or complete. Optional market (an id from list_markets, e.g. "sl", "de-ch", "hu", "pt-br", "en-in", "sv") steers it to that market's account and reference conventions (pt-br: the Pix key in pix_key; en-in: the UPI ID in upi_vpa; sv: the Swish number in swish_number). Charges 1 case; pass the case_id to validate_payment or make_payment_code for free.
make_payment_codeMake a payment code
confirm firstMake a scannable payment code for a case from fields THE USER CONFIRMED: show every field to the user first and send only what they confirmed or typed (fields: {key: {value, confirmed: true}} or {key: "typed value"}); unconfirmed fields are refused. Needs payee_name and ONE account: iban, or pix_key, upi_vpa or swish_number (an Italian pagoPA notice instead needs creditor_tax_code, the 18-digit notice number as reference, and the amount) (UPN QR also street, city and description; the Swiss QR-bill "postcode town" and the currency; Pix also payee_city); optional fields stay empty and are never filled in. Picks the standard by the account: an IBAN by its country (HUB3 (HR), UPN QR (SI), Swiss QR-bill (CH/LI), QR Platba (CZ, with constant_symbol / specific_symbol), PAY by square (SK, with constant_symbol / specific_symbol; the reference is a variable symbol or an RF reference), MNB QR (HU: needs the BIC), NBS IPS QR (RS: needs the amount; a domestic account like 160-…-78 works), EPC QR (other SEPA; a non-euro account needs currency EUR; a Belgian structured communication +++…+++ goes on its structured-reference line)); a pix_key makes Pix (BRL, reference = txid of 1–25 letters/digits), a upi_vpa UPI (INR), a swish_number Swish (SEK; the code carries no payee name), a promptpay_id PromptPay (THB), a biller_id a PromptPay bill code (THB; reference = Ref. 1 is required, reference_2 = Ref. 2), a paynow_proxy PayNow QR (SGD; needs payee_name and payee_city; reference = bill number), a jompay_biller a JomPAY DuitNow QR (MYR; needs payee_name, payee_city and reference = Ref-1; reference_2 = Ref-2), an account_number with bank_bin (the bank's NAPAS BIN, or its name if it matches one bank), or card_number (a domestic card; its BIN is the bank) VietQR (VND, whole đồng; description = transfer content). Optional market (list_markets) fills a missing currency for CH/CZ. Returns the payload, what was encoded, what was left open, and warnings (always: the payee isn't verified). To get an image, call generate_code with encoder "raw", symbology = the returned symbology, options = the returned render_options, and values.data = payload. Free.
validate_paymentValidate a payment
spends a caseconfirm firstcalls an outside serviceCheck a payment code before paying: send the decoded payload (code.payload) and/or the fields you read from the invoice (document.fields). Returns a verdict (match / mismatch = do not pay / review) with per-check reasons: format, EMVCo CRC, IBAN checksum, EU VAT numbers via VIES (non-EU tax ids are not checked), payee/IBAN/account/amount consistency (IBAN, Pix key, UPI ID or Swish number), and payee history: a payee name seen before with a different account is flagged (invoice redirect). Charges 1 case.
list_marketsList markets
read-onlyList the markets Barcoder serves (hr, sl, cs, sk, de, de-at, de-ch, fr-ch, it-ch, it, nl-be, fr-be, th, en-sg, ms, vi, en, hu, sr, pt-br, en-in, sv): each one's payment standard, currency, and how make_payment_code draws it. Pass a market id as `market` to extract_payment_fields and make_payment_code.
list_casesList my cases
read-onlyList the caller's cases, newest first, with each one's standard and verdict (limit, cursor).
get_caseGet a case
read-onlyGet one case with its stored validation report (kept 90 days; null if not stored or expired).
get_usageShow my usage
read-onlyShow the caller's remaining cases (monthly allowance + packs) and rate limit.
Privacy and support
What the server stores and for how long is in the privacy notice. Questions or problems: info@lumiverse.hr.
Skill for Claude
A short skill that tells Claude when and how to use Barcoder: it reads these docs as markdown, with no account, and uses the hosted server above to decode, identify and generate codes once you connect it.
Claude Code
Tested: Claude Code with only this skill and no MCP server, 2026-10-28
- Save it as a personal skill (every project), or under
.claude/skills/in one project:mkdir -p ~/.claude/skills/barcoder curl -fsSL https://docs.barcoder.ai/skills/barcoder/SKILL.md -o ~/.claude/skills/barcoder/SKILL.md - Start a new session and name Barcoder in your request, or run
/barcoder. In testing, “Using Barcoder, what's inside a Pix QR code?” loaded the skill and read the Pix page's markdown; the same question without “Barcoder” was answered from memory.
Claude (claude.ai and Claude Desktop)
Not tested here: follows Claude's Help Center
- Download barcoder.zip. Don't unpack it.
- Skills need code execution: turn on Code execution and file creation in Settings > Capabilities.
- Go to Customize > Skills, click +, then Create skill, then Upload a skill, and pick the ZIP. Barcoder appears in your skills, where you can turn it on or off.
Source: Use skills in Claude, How to create custom skills (read 2026-10-28)
Install
Local server, offline
The server ships as a Node/TypeScript package inside the Barcoder repository, which is private for now: you need access to it. No hosting, no ports — it runs as a stdio subprocess that Claude Code starts on demand, and it covers the reference and the codecs only (no account, no cases).
Step 1 — Clone and install
git clone https://github.com/LumiVerseHR/barcoder.git cd barcoder/apps/mcp npm ciStep 2 — Build the server
npm run build # from apps/mcp/ — emits apps/mcp/dist/server.js (npm ci already ran it)Step 3 — Open Claude Code
claude # On first connect, approve the project MCP server trust promptThat is all. The .mcp.json file (committed in the repo root) tells Claude Code how to start the server. No configuration files to edit, no environment variables to set.
Manual MCP setup
If you are not using Claude Code, the .mcp.json at the repo root defines a stdio server at apps/mcp/dist/server.js. Point your MCP client at it:
// .mcp.json
{
"mcpServers": {
"barcoder-codec": {
"type": "stdio",
"command": "node",
"args": ["./apps/mcp/dist/server.js"],
"env": {
"BARCODER_DOCS_DIR": "./content"
}
}
}
}The server reads from content/standards/ to build an in-memory search index at startup. Set BARCODER_DOCS_DIR if your docs live elsewhere.
Tool Catalog
The local server exposes 10 tools: search, encoders, generation and decoding.
ping
toolCheck that the Barcoder MCP server is alive and connected.
{
"tool": "ping",
"args": {}
}search_standards
toolFind standards in the Barcoder encyclopedia, optionally only those with a working playground.
{
"tool": "search_standards",
"args": {
"query": "pix",
"with_playground_only": true
}
}get_standard
toolFull detail for one standard by id.
{
"tool": "get_standard",
"args": {
"id": "pix"
}
}get_page
toolGet one full reference page (frontmatter + markdown, and its public url) by kind and id: standard ('pix'), country (ISO code, 'BR'), scheme ('<ISO>/<scheme>', e.g. 'BR/pix-qr'), wallet ('picpay'), or wallet_standard ('<wallet>/<standard>', e.g. 'revolut/pix').
{
"tool": "get_page",
"args": {
"kind": "country",
"id": "BR"
}
}list_encoders
toolEnumerate available barcode/QR encoders (the generate catalog).
{
"tool": "list_encoders",
"args": {}
}get_encoder_schema
toolGet the form schema for one encoder, so the caller can fill fields correctly.
{
"tool": "get_encoder_schema",
"args": {
"encoder": "wifi-qr"
}
}generate_code
toolBuild a scannable barcode/QR code image from structured field input. Returns the encoded payload + rendered PNG/SVG.
{
"tool": "generate_code",
"args": {
"encoder": "pix",
"values": {
"mode": "static",
"keyType": "email",
"pixKey": "ana.silva@loja.example",
"merchantName": "ANA SILVA",
"merchantCity": "BELO HORIZONTE"
}
}
}identify_payload
toolIdentify a raw/pasted payload string -> which standard it belongs to, with confidence and decoded fields.
{
"tool": "identify_payload",
"args": {
"text": "upi://pay?pa=merchant@example&am=100&cu=INR"
}
}decode_image
toolDecode an image file/base64 into barcode/QR payload(s).
{
"tool": "decode_image",
"args": {
"image_path": "./receipt.png"
}
}scan_and_identify
toolEnd-to-end: decode an image AND identify what standard each symbol belongs to.
{
"tool": "scan_and_identify",
"args": {
"image_path": "./receipt.png"
}
}How It Works
The server imports the same ~40 encoder modules and the 31-pattern matcher that the frontend website uses. It never reimplements encoding or identification logic. This means the MCP tools always produce the same payloads as the web playgrounds.
Image decoding uses sharp for rasterization and zxing-wasm for multi-format barcode detection — QR, Code128, PDF417, DataMatrix, Aztec, EAN/UPC, ITF, and more.
Design principle
One source of truth. The MCP server imports the frontend's ENCODERS registry and matcher.ts — never reimplements them. A reimplementation would silently drift from the ~40 golden-vector-tested encoders.