A crypto wallet for an AI agent: MCP tools under spending limits the agent cannot change

Connect Claude, Cursor or any MCP client to a crypto wallet with kryptr-mcp: balances, sends and swaps under a daily limit the agent cannot change.

Published Updated 4 min read

An AI agent that can pay is useful: it settles an invoice, tops up a service, rebalances a treasury. It is also the easiest way to lose a wallet. A prompt injected into a web page, a loop that repeats a tool call, or a model that misreads an amount all end in a transaction that cannot be recalled. The safe design keeps the limit outside the agent: the agent asks, and something it cannot talk to decides how much it may spend. This guide shows that design with kryptr-mcp, the MCP server of kryptr.io.

What the agent gets

kryptr-mcp is a local MCP server (stdio). It signs each request to the kryptr.io API with an API key you make for the agent, and offers these tools:

Tool What it does
kryptr_key the key's scopes, its spending policy, what it spent in the last 24 hours and what is left
kryptr_list_wallets, kryptr_wallet wallets and their receiving addresses on every network
kryptr_balances live on-chain balances per asset
kryptr_deposits incoming deposits with confirmations and sanctions screening
kryptr_transfers, kryptr_transfer outgoing transfers and their status
kryptr_send send an asset to an address (an idempotency key is required)
kryptr_fee_quote whether a send from an address with no TRX, ETH or BNB needs its network fee paid in the sent token, and that fee; kryptr_send then takes fee_in_asset and max_fee (how it works)
kryptr_swap_quote, kryptr_swap, kryptr_swap_status exchange one asset of a wallet for another
kryptr_assets, kryptr_networks, kryptr_safety and other facts tools asset ids, networks, limits and screening rules; these need no key

What the agent never gets

  • No seed phrase. No tool creates, deletes, imports or exports a wallet or its seed.
  • No way to raise its own limit. The key's scopes and spending policy are set in the dashboard, behind the account password and a 2FA code, and are enforced by the API, not by the MCP server.
  • No shared key. The agent uses its own key, so you can revoke it without touching your backend, and every transfer records the key that made it.

Set it up

  1. In the dashboard, open API keys and make a key for the agent with the scopes wallets:read and wallets:transfer (add wallets:swap only if it should swap). Give it a daily limit in US dollars and switch on address book only. A key that can send asks for your password and a 2FA code when you make it.
  2. Add the server to your MCP client. It is on npm as kryptr-mcp and in the official MCP Registry as io.kryptr/kryptr-mcp, so clients that read the registry find it by name. Claude Code:
claude mcp add kryptr \
  -e KRYPTR_API_KEY=pk_live_… -e KRYPTR_API_SECRET=sk_live_… \
  -- npx -y kryptr-mcp

Claude Desktop, Cursor and other clients take the same command in their mcpServers entry:

{
  "mcpServers": {
    "kryptr": {
      "command": "npx",
      "args": ["-y", "kryptr-mcp"],
      "env": { "KRYPTR_API_KEY": "pk_live_…", "KRYPTR_API_SECRET": "sk_live_…" }
    }
  }
}
  1. For an agent that should only look, set KRYPTR_MCP_READ_ONLY=1: the send, fee quote, swap quote and swap tools are left out, whatever the key's scopes.

Requests are signed on your machine with HMAC-SHA256. The secret is sent nowhere, and the API accepts each signature once, within 5 minutes.

What happens at the limit

The daily limit counts the key's transfers, including those waiting for approval, and its swaps of the last 24 hours, in US dollars at CoinGecko prices.

  • Within the limit, to an address-book entry: the transfer is queued and sent.
  • Over the limit, or to an address outside the book: the transfer is stored with the status awaiting_approval and a hold_reason. Nothing is signed. You approve or reject it in the dashboard with a 2FA code: approval moves it to pending, rejection to failed.
  • To an address on the OFAC SDN list: refused with 422 sanctioned_address, whatever the key.
  • A swap over the limit: refused with 422 policy_limit.
  • A new address-book entry becomes usable 24 hours after it is added, so an agent that talks someone into adding an address still waits a day.

The agent can read its budget before it acts: kryptr_key returns spent_usd_24h and remaining_usd (from GET /api/v1/key).

We ran this on kryptr.io on 1 December 2026 with a key limited to $5 a day and to the address book. A send of 0.01 TRX to an address outside the book came back awaiting_approval; the same call repeated with the same idempotency key returned the same transfer, not a second one; and a send to an address on the SDN list was refused with 422 sanctioned_address.

Retries never pay twice

kryptr_send and kryptr_swap require an idempotency_key: a string the agent chooses for this one payment, such as your order id. A repeat with the same key returns the first transfer instead of sending again, so a tool call that timed out can be retried safely. A new key is a new payment, which the daily limit still counts.

Only confirmed means paid and only failed means not paid. An agent should report any other status as in progress and check again with kryptr_transfer.

Checklist

  • Give the agent its own key; never the key of your backend.
  • Grant wallets:transfer only if it must send, and wallets:swap only if it must swap.
  • Set a daily limit you could lose without harm, and switch on address book only.
  • Start with KRYPTR_MCP_READ_ONLY=1 and remove it when the agent's behaviour is known.
  • Tell the agent to derive the idempotency key from your payment id.
  • Approve or reject held transfers in the dashboard; revoke the key when the agent is retired.

More guides