# up2itnow0822/clawpay-mcp [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/up2itnow0822/clawpay-mcp  
**GitHub Stars:** 8  
**npm Downloads (last month):** 1041  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/up2itnow0822-clawpay-mcp

## Description
Non-custodial x402 payment layer for AI agents. Agents sign transactions from their own wallet with on-chain spend limits — no custodial infrastructure, no API keys. Built on Base.

## Tools
Capabilities this server exposes over MCP:

- **deploy_wallet** — Deploy a new AgentAccountV2 wallet via the factory contract. The wallet is deterministically addressed (CREATE2) and owned by an NFT. Returns the wallet address and deployment transaction hash. Requires FACTORY_ADDRESS and NFT_CONTRACT_ADDRESS env vars (or pass them as arguments).
- **get_wallet_info** — Get comprehensive wallet information including address, on-chain balance, spend limits, remaining period allowance, and queue depth. Use token parameter to check budget for a specific ERC20 (defaults to ETH).
- **send_payment** — Send ETH or ERC20 tokens from the Agent Wallet. If the amount is within the configured spend limits, it executes immediately and returns the tx hash. If it exceeds limits, the transaction is queued for owner approval (use queue_approval to manage). Always check spend limits first with check_spend_limit to avoid surprises.
- **check_spend_limit** — Check whether a proposed payment amount is within the wallet's autonomous spend limits. Returns a clear yes/no with remaining budget details. Use this before send_payment to avoid surprise queuing.
- **queue_approval** — Manage over-limit transactions queued for owner review. Use action="list" to see pending transactions, "approve" to approve one by ID, or "cancel" to cancel one by ID. Approve/cancel require the agent key to have owner privileges.
- **x402_pay** — Use when an agent needs one capped x402 paid HTTP request and has already verified the URL, price, payTo, asset, and Base network. Automatically handles HTTP 402 Payment Required responses with the x402 v2.11 Payment-Signature flow. If an active x402 V2 session covers this URL, the session token is used instead of making a new payment. Identical retries replay the original paid result; pass idempotencyKey to distinguish two equal fetches. An RPC drop after payment fail-closes instead of signing a second settlement. Do not use when the endpoint is an uninitialized Streamable HTTP MCP session, the offered network is unsupported, the buyer lacks a spend cap, or a reusable entitlement should use x402_session_start instead.
- **get_transaction_history** — Retrieve the wallet's recent on-chain transaction history from event logs, plus process-lifetime x402_pay settlements (tx hash, payee, amount, token, URL, replay count). Shows executions, queued transactions, approvals, cancellations, spend policy updates, and operator changes. Filter by event type or block range for targeted queries. x402 settlement rows appear when event_type is all.
- **x402_session_start** — Use when a paid endpoint supports a reusable x402 session or entitlement. Makes one capped payment, stores a non-custodial signed session token, and returns a session_id for x402_session_fetch. If an active local session already covers the endpoint, the existing session_id is returned and no new payment is signed. Do not use for providers without session semantics, unknown networks, missing spend caps, or calls where the buyer cannot store and audit the returned mcp-session-id/session_id.
- **x402_session_fetch** — Use after x402_session_start returns a valid session_id. Injects the stored session token and makes a covered request without a new payment. Do not use before initialize/session creation, as a payment bypass, after expiry, or for URLs outside the session scope.
- **x402_session_status** — Check the status of x402 V2 payment sessions. Without arguments, lists all active sessions with TTL remaining. With a session_id, shows full details for that session including call count, payment info, and the signed session token.
- **x402_session_end** — Close an x402 V2 session locally before it expires naturally: this server discards its stored copy of the session token and x402_session_fetch will return an error for the closed session. This is NOT server-side revocation — the signed bearer token cannot be revoked once issued, and any copy already sent to (or intercepted en route to) the remote endpoint remains technically valid there until the expiry baked into the token. If you suspect the token leaked, treat it as live until that expiry and notify the endpoint operator. Still useful hygiene: it stops further use from this process and scrubs the stored token material.
- **lookup_token** — Look up a token by symbol and chain ID from the global token registry. Returns the token address, decimals, and metadata if found.
- **add_custom_token** — Register a custom ERC-20 token in the global token registry so it can be used by send_token, get_balances, and swap_tokens. Refuses to overwrite an existing symbol+chain entry or to alias an already-registered contract with different decimals (including built-ins such as USDC) because a wrong decimals value would silently overpay on later transfers and swaps.
- **list_chain_tokens** — List all tokens registered for a given chain ID in the global token registry.
- **send_token** — Send any ERC-20 token from the Agent Wallet to a recipient. Resolves the token address and decimals from the global registry, then calls agentTransferToken through the AgentAccountV2 contract. Subject to configured spend limits. Identical retries replay the original tx; pass idempotencyKey to distinguish two equal invoices. An RPC drop after broadcast fail-closes instead of sending a second transfer.
- **get_balances** — Get all ERC-20 token balances for the configured Agent Wallet address. Uses the global token registry to enumerate tokens for the given chain.
- **swap_tokens** — Swap one ERC-20 token for another using Uniswap V3. Resolves token addresses from the registry, executes the swap via SwapModule. Supported chains: base (8453), arbitrum (42161), optimism (10), polygon (137). Identical retries replay the original tx; pass idempotencyKey to distinguish two equal swaps. An RPC drop after broadcast fail-closes instead of sending a second swap.
- **bridge_usdc** — Bridge USDC across chains using Circle's CCTP V2 protocol. Supported chains: base, ethereum, optimism, arbitrum, polygon, avalanche, linea, unichain, sonic, worldchain. The bridge approves USDC, burns on source, polls Circle IRIS for attestation, then mints on destination. Identical retries replay the original burn/mint; pass idempotencyKey to distinguish two equal bridges. An RPC drop after broadcast fail-closes instead of burning a second time.
- **set_spend_policy** — Configure the Agent Wallet spend policy. Sets a daily limit, per-transaction cap, and optional recipient allowlist. The policy is enforced in-process for the lifetime of the MCP server; policies from all scopes are enforced together (union).
- **check_budget** — Check the remaining on-chain budget for the Agent Wallet. Returns per-transaction limit and period remaining. Optionally include any configured spend policy details.
- **verify_agent_identity** — Verify an agent's on-chain identity using ERC-8004. Looks up the agent by owner address and returns identity details including agent ID, URI, and registration file.
- **get_reputation** — Get the on-chain reputation score for an agent. Resolves agent ID from owner address via ERC-8004, then queries the Reputation Registry for score and feedback.
- **verify_agent_uaid** — Verify an agent's identity using a Universal Agent Identifier (UAID). Works across all chains — EVM (ERC-8004), Hedera, Solana, and off-chain agents. Returns identity details, payment address, and trust score from the HOL Registry.
- **create_escrow** — Create a mutual-stake escrow vault between the Agent Wallet (buyer) and a counterparty (seller). Both parties lock collateral (equal to payment amount) ensuring aligned incentives. Uses USDC as the payment token. Requires FACTORY_ADDRESS env var or factoryAddress param.
- **otel_register_budget_policy** — Register a budget policy for an AWS AgentCore agent or task. When OTel spans report costs exceeding this budget, agentpay-mcp will enforce the configured action (warn/block/kill circuit-breaker). This fills the gap left by AgentCore Policy Controls which provide observability but no native per-agent spend caps.
- **otel_evaluate_spend** — Evaluate a spend event from an OTel span against registered budget policies. Returns a budget decision (allow/warn/block/kill) with utilization details. The decision is also formatted as OTel event attributes for re-emission into the AgentCore telemetry pipeline.
- **otel_budget_status** — Get the current budget status for an AgentCore agent, including accumulated spend, remaining budget, utilization percentage, and optional decision history. Useful for dashboards and audit trails.

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

```json
"mcpServers": {
  "clawpay-mcp": {
    "command": "npx",
    "args": ["-y","agentpay-mcp"],
    "env": {
      "AGENT_PRIVATE_KEY": "",
      "AGENT_WALLET_ADDRESS": ""
    }
  }
}
```

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

## Documentation

## What up2itnow0822/clawpay-mcp MCP server does

The up2itnow0822/clawpay-mcp MCP server provides local MCP tools for x402 payments and wallet management. It is designed for agents that need to operate an on-chain wallet while keeping signing credentials under the caller's control. The server runs as a stdio process and exposes functions from the Agent Wallet SDK.

Available tool areas include wallet deployment and inspection, payment submission, x402 sessions, spend-policy checks, token balances and transfers, swaps, USDC bridging, mutual-stake escrow, ERC-8004 identity and reputation operations, UAID verification, and transaction history. The exact tool schemas and handlers are maintained in the project's source tree.

## How it works

At startup, the local Node.js process reads the configured signing key and wallet address from its environment. Wallet operations use viem to sign transactions. The configured chain can be Base mainnet or Base Sepolia; if no chain ID is supplied, the server defaults to Base mainnet. An RPC endpoint can also be selected through the environment.

The server applies an in-process policy check to current value-moving handlers. The `set_spend_policy` tool stores policy state in the running MCP process, so a restart clears its rolling state. This policy is separate from contract-level wallet limits: on-chain limits exist only when the wallet owner configures them directly on `AgentAccountV2`.

The up2itnow0822/clawpay-mcp MCP server does not turn an over-limit transaction into an independent owner approval by itself. That separation requires the owner key to remain separate from the agent key. Payment, swap, bridge, and escrow operations can move funds and use gas, so testing should begin with bounded amounts and Base Sepolia.

## Setup and configuration

Install and launch the package with:

```bash
npx -y agentpay-mcp
```

Wallet tools require both `AGENT_PRIVATE_KEY` and `AGENT_WALLET_ADDRESS`. The first is a local hot-wallet signing key; the second identifies a deployed `AgentAccountV2` wallet. `CHAIN_ID` is optional and accepts `8453` for Base mainnet or `84532` for Base Sepolia. `RPC_URL` selects the caller's Base RPC endpoint.

Wallet deployment additionally uses `FACTORY_ADDRESS` and `NFT_CONTRACT_ADDRESS`. `SESSION_TTL_SECONDS` controls the local session lifetime when supplied. Secret values should be provided through the MCP client or operating system's secret mechanism rather than committed to configuration files.

The command can be checked without wallet credentials using `npx -y agentpay-mcp --version` or `npx -y agentpay-mcp --help`.

## Limitations and notes

The up2itnow0822/clawpay-mcp MCP server records transaction history from on-chain wallet events. That history does not include rejected pre-chain attempts or read-only MCP calls. Unsupported chain IDs fail closed. Policy enforcement is application-level for the in-process checks, while contract limits must be configured independently by the wallet owner.

No custodial infrastructure or API key is described as required, but the local signing key remains sensitive. Protect the process, environment, and MCP client configuration. The package is released under the MIT license.

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

