# clawallex-mcp [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/clawallex/clawallex-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 217  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/clawallex-mcp

## Description
MCP Server for Clawallex payment API - Pay for anything with USDC virtual cards

## Tools
Capabilities this server exposes over MCP:

- **clawallex_setup** — Check connection status and bind agent identity
- **clawallex_pay** — One-time payment — creates a single-use virtual card
- **clawallex_subscribe** — Recurring subscription — creates a reloadable card
- **clawallex_refill** — Top up a subscription card balance
- **whoami** — Query current API Key binding status (read-only)
- **bootstrap** — Bind a client_id to this API Key
- **get_wallet** — Get wallet balance and status
- **get_wallet_recharge_addresses** — Get on-chain USDC deposit addresses
- **list_cards** — List virtual cards created by this agent
- **get_card_balance** — Get card balance and status
- **batch_card_balances** — Check balances for multiple cards in one call
- **update_card** — Update card risk controls (tx_limit, allowed_mcc, blocked_mcc)
- **get_card_details** — Get card details including risk controls, cardholder info, and encrypted PAN/CVV
- **decrypt_card_data** — Decrypt PAN/CVV from get_card_details
- **list_transactions** — List card transactions with optional filters
- **get_x402_payee_address** — Get on-chain receiving address for x402 payments
- **create_card_order** — Create a card with full control (supports Mode B two-stage)
- **refill_card** — Refill a stream card with x402 or custom idempotency keys

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

```json
"mcpServers": {
  "clawallex-mcp": {
    "command": "npx",
    "args": ["-y","@clawallex/mcp-server"],
    "env": {
      "CLAWALLEX_API_KEY": "",
      "CLAWALLEX_API_SECRET": ""
    }
  }
}
```

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

## Documentation

## What clawallex-mcp does

The clawallex-mcp MCP server exposes the Clawallex payment API as tools for AI agents. Clawallex uses a USDC balance to fund virtual cards intended for online checkout. Agents can create a single-use card for an individual payment, create a reloadable card for recurring charges, and add funds to an existing subscription card.

The server also exposes lower-level operations for checking wallet state, listing cards, viewing transactions, reading card balances, and changing card risk controls. Card details include encrypted PAN and CVV data; a separate decryption tool can turn that payload into card credentials for checkout use.

## How it works

At startup, the process authenticates with a Clawallex API key and API secret. It signs API requests with HMAC-SHA256 automatically. A client identity, called `client_id`, is sent with payment requests and scopes card and transaction visibility. Wallet data is shared at the user level, while cards and transactions are isolated by client identity.

The recommended starting point is `clawallex_setup`. It checks the connection and binds the agent identity on first use. The identity is resolved from an explicit CLI value, a local file, or a newly generated UUID. Once an API key has been bound to an identity, that binding cannot be changed for the key.

A typical one-time payment sequence checks the wallet, creates a card with `clawallex_pay`, retrieves its details, and decrypts the sensitive card data. A recurring flow uses `clawallex_subscribe` and later `clawallex_refill` when the card needs more balance.

## Setup and configuration

Install the package globally with npm or run it through `npx`. Node.js 22 or newer is required. Create an API key pair in the Clawallex application, then provide the credentials through environment variables or CLI flags. CLI arguments take precedence over environment values.

The default transport is stdio, which suits local MCP clients. The server also supports SSE and streamable HTTP; SSE listens at `/sse`, while streamable HTTP uses `/mcp`. The default HTTP port is `18080`, and the API base URL defaults to `https://api.clawallex.com`.

For production use, pass a stable `client_id` explicitly rather than relying on the locally stored identity file. Losing that identity prevents access to cards created under it.

## Tools and capabilities

The clawallex-mcp MCP server groups its tools into several practical areas:

- Payments: create one-time cards, subscription cards, and refills.
- Identity: inspect API key binding with `whoami` or bind an identity with `bootstrap`.
- Wallet: retrieve balance, status, and on-chain USDC deposit addresses.
- Cards: list cards, inspect balances and details, update transaction limits or MCC rules, and decrypt returned card data.
- Transactions: list card activity with optional filters and query multiple card balances in one call.
- x402 and advanced orders: retrieve a receiving address, create a fully controlled card order, and refill stream cards with x402 or custom idempotency keys.

Sensitive card data is encrypted in the `get_card_details` response. `decrypt_card_data` uses the configured API secret to decrypt the PAN and CVV. Decrypted values should only be used for checkout handling and should not be shown to users.

## Limitations and notes

The server requires valid Clawallex credentials and access to the Clawallex API. Its wallet, card, and transaction behavior follows Clawallex's identity model: wallet balances are shared for an API key, but card and transaction records are client-scoped. The API key's first identity binding follows a trust-on-first-use rule.

The package does not remove the need to handle card credentials carefully. Decryption produces sensitive payment data, so agent workflows should avoid displaying or logging the result.

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

