# Payclaw MCP [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/payclaw/mcp-server  
**GitHub Stars:** 2  
**npm Downloads (last month):** 133  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/payclaw-mcp-server

## Description
Virtual Visa cards for AI agents. Just-in-time card issuance per transaction, human-approved spend authorization, MCP-native. Works anywhere Visa is accepted.

## Tools
Capabilities this server exposes over MCP:

- **kya_getAgentIdentity** — 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).
- **kya_reportBadgePresented** — 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.
- **kya_reportBadgeOutcome** — [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.
- **kya_reportBadgeNotPresented** — [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.
- **kya_getCard** — 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.
- **kya_reportPurchase** — Report the outcome of a purchase after using a kyaLabs virtual card. Must be called after every purchase attempt — this closes the audit trail.
- **kya_web_fetch** — 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.
- **kya_getHeaders** — 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.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "payclaw-mcp": {
    "command": "npx",
    "args": ["-y","@kyalabs/mcp-server"],
    "env": {
      "KYA_API_KEY": "",
      "KYA_API_URL": "",
      "KYA_PING": "",
      "KYA_EXTENDED_AUTH": ""
    }
  }
}
```

**Requires environment variables:** `KYA_API_KEY`, `KYA_API_URL`, `KYA_PING`, `KYA_EXTENDED_AUTH` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What payclaw/mcp-server does

payclaw/mcp-server MCP server provides two related capabilities for agent-assisted commerce: Badge identity and Spend payments. Badge declares the agent as an authorized actor and can provide a merchant-facing token or checkout data. Spend creates a virtual Visa card for a specific purchase after the user approves the transaction with MFA.

The identity flow is intended for merchants that support the Universal Commerce Protocol and its identity extension. The repository names Shopify, Target, Walmart, and Etsy as examples of supporting merchants, but support depends on the merchant's implementation. The virtual card is single-use, restricted to the declared merchant and purchase, and self-destructs after use.

## How it works

An agent should call `kya_getAgentIdentity` before browsing, searching, or buying. The response can include identity information, next-step instructions, and a checkout patch when the merchant supports UCP. After applying the patch, the agent reports the presentation with `kya_reportBadgePresented`. Badge outcomes can be reported explicitly, although the repository marks the outcome and non-presentation tools as deprecated because newer verification tracking handles these events automatically.

For payment, the agent calls `kya_getCard` with the merchant, amount, and purchase description. The user authorizes the request through MFA, then the server returns a single-use virtual Visa. After the checkout attempt, `kya_reportPurchase` records the result and closes the transaction audit trail. The user's real card details are not sent through the agent conversation.

`kya_web_fetch` retrieves HTTPS pages with the Kya identity header automatically added. It returns the status, headers, and body, with a 5 MB response limit and a 30-second timeout. Redirects are not followed. `kya_getHeaders` instead returns headers for requests controlled by the developer, such as Playwright or a browser extension.

## Setup and configuration

Run the package with Node.js 20 or newer:

```bash
npx @kyalabs/mcp-server
```

It can be added to an MCP client as a stdio process with `npx` and the package name as its argument. The README specifically shows Claude Desktop and Cursor configurations, and says the same approach works with any MCP client.

Badge starts in declared mode without an API key. It stores an anonymous installation UUID locally at `~/.kya/install_id`. To use verified identity and virtual card issuance, configure `KYA_API_KEY` and, where needed, `KYA_API_URL`. The documented API URL is `https://www.kyalabs.io`. An API key can be obtained through the kyaLabs signup flow.

`KYA_EXTENDED_AUTH=true` enables a follow-up check roughly seven seconds after badge presentation. Set `KYA_PING=false` to disable the anonymous server-start ping. The repository states that API keys do not expire.

## Tools and capabilities

The payclaw/mcp-server MCP server exposes these tools:

- `kya_getAgentIdentity`: establish agent identity and receive merchant guidance.
- `kya_reportBadgePresented`: record that the badge was presented.
- `kya_reportBadgeOutcome`: legacy manual outcome reporting.
- `kya_reportBadgeNotPresented`: legacy reporting for an unpresented badge.
- `kya_getCard`: request a user-approved, single-use virtual Visa.
- `kya_reportPurchase`: record the result of a card transaction.
- `kya_web_fetch`: fetch an HTTPS page with the identity token attached.
- `kya_getHeaders`: provide identity headers for developer-controlled HTTP requests.

Badge events can run anonymously or in verified mode.

## Limitations and notes

Node.js 18 is unsupported. Identity declaration is not the same as payment authorization: `kya_getAgentIdentity` must precede `kya_getCard`, and every purchase attempt should be followed by `kya_reportPurchase`. The web fetch tool accepts HTTPS only, does not follow redirects, and limits responses to 5 MB and 30 seconds. Merchants must support the relevant identity flow for Badge benefits to apply. The repository also documents telemetry and shopping-event collection; developers should review the provider's trust documentation before deploying it with sensitive workflows.

_Full upstream README: https://allmcps.com/mcp/payclaw-mcp-server/readme_

