payclaw-mcp
This server enables AI agents to declare verified identities to online merchants and make human-approved purchases using single-use virtual Visa cards, acting as a trust layer between AI agents and merchants via the Universal Commerce Protocol (UCP).
Declare Agent Identity (
kya_getAgentIdentity): Before any shopping action, declare the agent as an authorized actor (not a bot) to a merchant. Returns a verification token,next_stepguidance, and optionally acheckoutPatchfor UCP-compliant merchants. Works anonymously by default — no API key required.Report Badge Presented (
kya_reportBadgePresented): Record that the agent presented its badge at a merchant, linked to a shopping session via atrip_id. Supports context stages like arrival, add-to-cart, or checkout.Report Badge Outcome (
kya_reportBadgeOutcome): Report whether the merchant accepted, denied, or gave an inconclusive response after badge presentation, closing the identity verification loop.Report Badge Not Presented (
kya_reportBadgeNotPresented): Report that the badge was not presented (e.g., cart abandoned or merchant didn't require it).Get a Virtual Payment Card (
kya_getCard): Declare a purchase intent (merchant, estimated amount up to $500, description), trigger human MFA approval, and receive a single-use virtual Visa card locked to that specific purchase. Requires prior identity declaration.Report Purchase Outcome (
kya_reportPurchase): After using the virtual card, report success or failure, actual amount charged, items bought, and order confirmation — closing the audit trail and triggering card self-destruction.
Works with UCP-supporting merchants including Shopify, Target, Walmart, and Etsy. Follows a minimal data collection philosophy using anonymous UUIDs.
Issues single-use virtual Visa cards for AI agents to securely complete purchases at existing merchants via Visa rails without exposing real credit card details.
kya labs — Badge + Spend for AI Agents
Your agent isn't a bot. kya proves it — then lets it pay.
Your AI agent looks like a bot to every merchant on the internet. kya gives it two things:
Badge — Declares your agent as an authorized actor. The Universal Commerce Protocol "identity" token for a merchant handshake. Free. No card required.
Spend — Issues a single-use virtual Visa when your agent needs to pay. Human-approved. Self-destructs after use. Your real card never enters the chat.
If you're like 20% of Americans last year - you used an agent to shop. And you probably ran into a ton of login walls, workarounds, bumps?
So did we. So we created kya - the first MCP tool suite that works with the new Universal Commerce Protocol to easily handshake verified agents at supporting merchants (Shopify, Target, Walmart, Etsy... it's a lot). Badge for identity. Spend for payment.
🧪 Developer Sandbox is open. Real infrastructure, test money. Get sandbox access →
Quick Start
npx @kyalabs/mcp-serverOR add to your MCP client config (Claude Desktop, Cursor, or any MCP client):
{
"mcpServers": {
"kyalabs": {
"command": "npx",
"args": ["@kyalabs/mcp-server"]
}
}
}That's it. Badge works immediately — no API key, no signup, no network calls on install.
The first time your agent calls kya_getAgentIdentity, it declares itself to the merchant and gets back a response with next_step guidance. One anonymous event is recorded. Your agent is now a declared, authorized actor.
Or install via ClawHub:
clawhub install payclaw-ioUpgrade to verified mode + Spend
For cryptographic identity and virtual card issuance, add an API key:
"env": {
"KYA_API_KEY": "pk_live_your_key_here",
"KYA_API_URL": "https://www.kyalabs.io"
}Get your API key at kyalabs.io/signup. API keys don't expire.
Without an API key, Badge uses device auth when a merchant requires verified identity — your agent shows a code and URL, you approve on your phone. This only happens when a merchant asks for it. We never ask for it ourselves. Sign up + API key means 1. you dont have to use phone OAuth every time and 2. you can track your agentic shopping (custom avatars included)
Node version
kya MCP requires Node.js 20 or newer. Node 18 is end-of-life and unsupported.
If you see engine or compatibility errors: node -v — install Node 20+ from nodejs.org or nvm install 20
Related MCP server: maiat-protocol
How Badge Works: Two Modes
Declared (default)
First time your agent goes to a merchant with Badge, Badge generates an anonymous install ID — a random UUID stored locally at ~/.kya/install_id. It has no connection to you, your device, or any personal information.
Your agent gets back a declaration and a next_step guiding it to report its badge presentation at the merchant.
This is the default mode. It's how Badge works out of the box, for every user, forever.
Verified (when merchant requires it)
When a merchant requires verified identity — their UCP manifest says required: true — your agent will ask you to approve a device flow. You visit a merchant-kya URL, enter the OAuth code from your agent, and prove you're a real person.
Badge issues a tokenized credential: an ES256-signed JWT, signed by kya's private key, verifiable locally by the merchant. Your agent is free to continue - no login, PII or anything needed.
Our Data Philosophy
When | What | Why |
On install | Nothing | We help agents shop. If they're not shopping, we don't need anything |
On server start | Anonymous ping — Badge version and MCP client name. No identifiers stored on your machine | So we know Badge is actively running. If this number ever diverges from active agents, it tells us something is broken in the pipeline — not something about you |
On first shopping trip | install_id (random UUID, stored locally at | Minimum viable signal to reduce agent friction at merchants |
On verified identity | + hashed user token, intent scope (checkout, etc.) | Only required where login is traditionally required (i.e. checkout) to prove there's a real person authorizing the agent's next step |
On Spend (card issuance) | + full transaction trail: intent, amount, merchant, audit log | Card network compliance, gated behind consent + MFA |
The server start ping contains no persistent identifiers — a new random session ID is generated each time and never saved to disk. You can disable it entirely:
"env": { "KYA_PING": "false" }The install_id is a file we wrote to your disk. You can delete it (rm ~/.kya/install_id) and get a new one.
Full data practices: kyalabs.io/trust
The Universal Commerce Protocol
Badge is a UCP (Universal Commerce Protocol) Credential Provider. Merchants who declare the kya identity extension signal to every UCP-compliant agent that authorized agents are preferred at their store.
When your agent encounters a UCP merchant with Badge installed, it presents a cryptographic badge automatically — no extra steps.
We believe the UCP is the future of commerce and are proud to support reduce friction for agents and users.
Extension spec + schema: github.com/kyalabs/ucp-agent-badge
Read more about the UCP: github.com/universal-commerce-protocol/ucp
Without kya: Agent browses → bot detection fires → blocked. Even if it gets through, it can't check out without your real card number. You're stuck finishing manually.
With Badge: Agent declares itself as an authorized actor → merchants see a verified identity → agent gets through. No bypass. Just proof.
With Spend: Agent declares a purchase → you approve with a tap → kya issues a single-use virtual Visa locked to that merchant → agent checks out → card self-destructs. Your real card never enters the chat.
Your agent will recognize when it needs this. When it encounters a merchant that may challenge automated traffic, or when it's ready to check out, it tells you: "I need kya installed to complete this." You click Allow. Done.
Tools
See docs/tool-contract.md for the formal input/output contract.
Tool | What It Does |
| Declare identity → get verification token + |
| Record that you presented your badge at a merchant |
| Report how the merchant responded (accepted, denied, inconclusive) |
| Report that you did not present your badge (abandoned, merchant didn't ask) |
| Declare purchase intent → get virtual Visa (Spend) |
| Report transaction outcome → close the audit trail |
Every Badge tool call works immediately — no auth required. Events fire in both anonymous and verified modes.
Badge: Declare Identity
Agent → kya_getAgentIdentity({ merchantUrl })
kya → browse_declared event fires automatically
kya → verification token + next_step + checkoutPatch (if merchant supports UCP)
Agent → merges checkoutPatch into checkout payload
Agent → kya_reportBadgePresented({ merchantUrl, verification_token })
Agent → kya_reportBadgeOutcome (accepted | denied | inconclusive)Spend: Get a Card
Agent → kya_getCard (merchant, amount, description)
User → approves via MFA
kya → issues single-use virtual Visa
Agent → uses card at checkout
Agent → kya_reportPurchase (closes audit trail)
Card → self-destructsOne task. One approval. One card. Done.
Extended Auth (optional)
When enabled, kya checks back with your agent 7 seconds after each badge presentation to confirm whether the merchant accepted or denied. Results are logged to your dashboard so you can see when and which merchants are rejecting your agent.
"env": {
"KYA_EXTENDED_AUTH": "true"
}How Authorization Scales
Action | What Happens |
Browse | Badge declaration — identity token issued |
Search | Badge declaration — identity token issued |
Checkout | Badge + Spend — MFA approval → single-use Visa issued |
Browsing requires declaration. Spending money requires declaration + stated intent + explicit human approval + an ephemeral card that self-destructs after one use.
Why kya labs
Give Agent Your Card | Crypto Wallet | kya | |
Agent identity declared | No | No | Every session |
Human approval per purchase | No | No | Every purchase |
Card credential lifespan | Permanent | Permanent | Single use |
Works at existing merchants | Yes | No | Yes — Visa rails |
Your real card exposed | Yes | N/A | Never |
Badge Only?
If you only need identity (no payment), use the lighter package:
npx @kyalabs/badgeWhat's New (v2.3)
Capability | Description |
| Every trip now carries a trust score ( |
Merchant signal awareness |
|
Anonymous-first | Badge works on install. No auth, no signup, no network on install. First |
Enrichment branching | Anonymous events fire without auth. Verified events include full user context. No silent gates. |
| Every identity response includes guidance for the agent's next action. Spend-aware when virtual cards are available. |
KYA — Know Your Agent
kya is KYA infrastructure. Every declaration creates a verified record of agentic commerce behavior — building the trust signal that merchants need to tell authorized agents from anonymous bots.
Links
Website: kyalabs.io
npm: @kyalabs/mcp-server
Badge npm: @kyalabs/badge
UCP Extension: github.com/kyalabs/ucp-agent-badge
ClawHub: payclaw-io
Trust: kyalabs.io/trust
Merchants: kyalabs.io/merchants
Contact: agent_identity@kyalabs.io
Agents are not bots. kya labs proves it. Your real card never enters the chat.
Available Tools
8 toolskya_getAgentIdentityA
You are an authorized actor, not a bot. Prove it before you shop.
Call this BEFORE any shopping action — browsing, searching, or buying. Badge by kyaLabs declares your identity to merchants: who you are (authorized actor), who authorized you (verified human), and what you intend to do (declared scope).
Without this, merchants may block you permanently. Their bot defenses can't tell the difference between you and a scraper. This declaration is your proof of authorization — the verified handshake that lets you through while their defenses stay intact.
When a merchant challenges you, present the agent_disclosure text from the response. kyaLabs will automatically check back with you to record whether you were accepted or denied.
No card is issued. No money moves. For payment, use kya_getCard (included in this package).
Inputs: merchant, merchantUrl.
kya_getCardA
Get a single-use virtual Visa to make a purchase on behalf of the user. You MUST call kya_getAgentIdentity first — you cannot pay without being identified.
Declare the merchant, amount, and what you're buying. The user approves via MFA. kyaLabs issues a card locked to this purchase. The card self-destructs after use. Your user's real card never enters the chat.
Call kya_reportPurchase after the transaction.
Inputs: merchant (required), estimated_amount (required), description (required).
kya_getHeadersA
Get identity headers for your own HTTP requests. Returns a Kya-Token header you can attach to requests made through Playwright, browser extensions, or any HTTP client you control.
Call kya_getAgentIdentity first to establish your identity. Then pass these headers to page.setExtraHTTPHeaders() for browser automation, or set as a cookie via document.cookie for Chrome extensions.
Inputs: merchant.
kya_reportBadgeNotPresentedB
[DEPRECATED — this event is no longer needed. This tool will be removed in a future version.]
Report that you did NOT present your Badge at a merchant.
Inputs: verification_token (required), merchant (required), reason (required), trip_id.
kya_reportBadgeOutcomeA
[DEPRECATED — outcomes are now tracked automatically via the verify endpoint. This tool will be removed in a future version.]
Report how the merchant responded when you presented your Badge.
Inputs: verification_token (required), merchant (required), outcome (required), trip_id.
kya_reportBadgePresentedA
Report that you presented your Badge to a merchant. Call this immediately after merging the checkoutPatch into a checkout payload. Required for kyaLabs to record the trip.
When Extended Auth is enabled, kyaLabs checks back 7 seconds later. Otherwise, call kya_reportBadgeOutcome when you know the result.
Inputs: verification_token (required), merchant, merchantUrl, context, +2 more.
kya_reportPurchaseA
Report the outcome of a purchase after using a kyaLabs virtual card. Must be called after every purchase attempt — this closes the audit trail.
Inputs: intent_id (required), success (required), actual_amount, merchant_name, +2 more.
kya_web_fetchA
Fetch a web page with your Badge identity attached. Your Kya-Token header is injected automatically — merchants see you as an authorized actor, not a bot. Your visit is automatically recorded in your shopping journal.
Call kya_getAgentIdentity first. Then use this instead of web_fetch when shopping at merchant sites. HTTPS only. Returns status, headers, and body (5MB max, 30s timeout). Redirects are not followed — check the Location header if you receive a 3xx status.
Inputs: url (required), method, headers.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Most tools have clearly distinct purposes, but the presence of deprecated tools (kya_reportBadgeNotPresented, kya_reportBadgeOutcome) could confuse agents if they are not careful, slightly reducing clarity.
The kya_ prefix and verb_noun pattern are mostly consistent, but 'web_fetch' breaks the pattern (noun_verb), and some report tool names are verbose (e.g., 'reportBadgeNotPresented').
Eight tools is well-scoped for identity declaration, card issuance, web fetching, and purchase reporting. No unnecessary bloat or insufficiency.
Core shopping workflow (identity, payment, fetch, report) is covered, but there are no explicit search or browsing tools, and deprecated tools are still present, indicating minor gaps.
Maintenance
Related MCP Connectors
Payment infrastructure for AI agents: spending rules, approval flows, single-use virtual cards.
Prepaid virtual cards for AI agents: one-time cards, spend caps, human approvals.
Wallets and rails that let AI agents spend money safely.
Wallets and rails that let AI agents spend money safely.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to programmatically purchase physical and virtual goods from platforms like Amazon and Shopify using stablecoins, without the need for virtual debit cards or browser automation.1ISC
- MIT

Shatale MCP Serverofficial
AlicenseAqualityBmaintenanceAI-native payment infrastructure that enables AI agents to make purchases, issue virtual cards, and manage spending within delegated budgets and policy controls.71,449 npmMIT- FlicenseNot gradedqualityBmaintenanceEnables AI agents to autonomously issue single-use, merchant-locked virtual Visa cards and execute payments across supported merchants through the Model Context Protocol, with human-in-the-loop approval.8-