# Botwallet MCP Server [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/botwallet-co/mcp  
**GitHub Stars:** 4  
**npm Downloads (last month):** 388  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/botwallet-co-mcp

## Description
Wallet for AI agents. Earn via invoices, spend on other agents and paid APIs, manage USDC on Solana with human-set spending limits and FROST 2-of-2 threshold signing.

## Tools
Capabilities this server exposes over MCP:

- **botwallet_ping** — Check if the BotWallet API is reachable. No authentication required. Returns API status and version.
- **botwallet_register** — Register a new bot wallet using FROST Distributed Key Generation. Only call this when your human asks for a new wallet. If a wallet is already set up (botwallet_info works, or botwallet_wallet_list shows one), do not register another: a new wallet is separate and starts empty, and it does not fix a missing API key or key share. Creates a wallet with a 2-of-2 threshold key — the bot holds one key share locally and the server holds the other. Neither share alone can sign transactions. Returns a claim link + claim code to send to your human owner so they can claim the wallet. The claim code expires 48 hours after registration. The wallet's API key and the local key share are saved to ~/.botwallet/ automatically and are not shown, and the new wallet becomes the default.
- **botwallet_info** — Get wallet metadata: status, deposit address, owner/claim status, creation date, and wallet type. For live on-chain balance, spending limits, and remaining budget, use botwallet_balance instead.
- **botwallet_balance** — Check your live on-chain USDC balance, spending budget, amount spent this period, and remaining allowance. Also indicates if balance is low and provides the funding URL. For wallet metadata (status, owner, creation date, claim info), use botwallet_info instead.
- **botwallet_update_owner** — Set or change the owner email for an unclaimed wallet. The owner will receive a notification and can claim the wallet through the portal.
- **botwallet_rename** — Update the wallet display name shown to other users and in the owner portal. Use when you want to rebrand or clarify the bot's purpose.
- **botwallet_wallet_list** — List all locally configured wallets. Shows which wallet is the default. This reads from ~/.botwallet/config.json — the wallet registry shared with the CLI.
- **botwallet_wallet_use** — Switch the default wallet. Subsequent operations will use this wallet's API key and seed. Use botwallet_wallet_list to see available wallets.
- **botwallet_lookup** — Check if a recipient exists before paying. Returns their display name and type (merchant or bot), or found: false if no merchant or bot has that username.
- **botwallet_can_i_afford** — Pre-flight check before paying. Returns two separate answers: (1) `can_afford` — do you have enough balance? (2) `will_auto_approve` — will the payment go through without owner approval? Also shows the fee, total cost, and your balance after payment. `can_afford` is null when the check stopped before the balance was looked at: the recipient was not found (`recipient_found: false`) or can't receive payments (`recipient_can_receive: false`), or your owner's guard rails block this payment (`blocked: true`, with the reason and `owner_message`). Don't ask your owner for funds unless `can_afford` is false. Fees: $0.01 minimum or 1% of the transaction amount, whichever is greater, plus a one-time $0.25 account setup fee if the recipient's address has never held USDC. Always call this before botwallet_pay if unsure about your balance.
- **botwallet_pay** — Make a payment to a merchant or bot. Specify `to` + `amount` for direct payments, or `payment_request_id` to pay a specific paylink. If the payment is within your guard rails, it completes immediately via FROST threshold signing and returns `paid: true` with your new balance. If it requires owner approval, returns `needs_approval: true` with a `transaction_id` and `approval_url`. Approval flow: (1) Send the `approval_url` to your human owner (approving alone does not send the payment) and store the `transaction_id`, (2) Poll `botwallet_approval_status` or `botwallet_events` until status is "approved", (3) Call `botwallet_confirm_payment` with the `transaction_id`. If a guard rail blocks the payment, returns an error with the reason. Before Key 1 signs, the transaction is checked: it must pay the agreed amount plus at most the quoted fee. Every response includes an `idempotency_key`. If a call fails or times out, follow its `how_to_fix` instead of calling botwallet_pay again: to retry the same payment, pass the same `idempotency_key`, and Botwallet returns that payment instead of paying twice. An error with code OUTCOME_UNKNOWN means the payment may have gone through: check the tool its `check_tool` names (usually botwallet_list_payments with its `transaction_id`) first. A result with `status: "pending"` and `sent: true` means the payment was sent and Solana has not confirmed it yet: do not pay again; check `check_tool` in about a minute. Fees: $0.01 minimum or 1% of the transaction amount, whichever is greater, plus a one-time $0.25 account setup fee if the recipient's address has never held USDC. Always call botwallet_can_i_afford first if unsure about your balance.
- **botwallet_confirm_payment** — Complete a payment that was previously approved by the owner. Call this after the owner approves via botwallet_events or the approval URL. Performs FROST threshold signing to authorize the on-chain transaction, after checking that it pays the agreed amount plus at most the quoted fee. The amount and recipient are checked against what the agent asked for only if this MCP server started the payment and has not restarted since; otherwise against the ones Botwallet recorded, with the fee still capped. An error with code OUTCOME_UNKNOWN means the payment may have gone through: check the tool its `check_tool` names (usually botwallet_list_payments with the transaction_id) before doing anything else. A result with `status: "pending"` and `sent: true` means the payment was sent and Solana has not confirmed it yet: do not pay again; check `check_tool` in about a minute.
- **botwallet_list_payments** — List outgoing payment intents and their lifecycle status (pending, pre_approved, approved, completed, cancelled, expired). Use this to track specific payments you initiated. For a full ledger of all money movements (in and out), use botwallet_transactions instead.
- **botwallet_cancel_payment** — Cancel a payment that has not been sent yet: one that is pre-approved, waiting for owner approval, or approved. A payment that is already being sent (status "pending") can't be cancelled.
- **botwallet_create_paylink** — Create a payment request (paylink) that someone can pay. Returns a payment URL and short code that you can share or send via botwallet_send_paylink. Supports itemized invoices via the items array — when items are provided, the total is auto-calculated. You must provide either `amount` or `items` (or both).
- **botwallet_send_paylink** — Send a paylink to a specific recipient. Use after botwallet_create_paylink to deliver the payment request via email (for humans) or directly to a bot wallet inbox (for agents). The recipient receives a notification with a "Pay Now" link.
- **botwallet_get_paylink** — Get the status of a payment request by ID or reference. Shows if it has been paid.
- **botwallet_list_paylinks** — List your payment requests (paylinks) — these are requests YOU created to receive money. Filter by status to find pending, completed, or expired paylinks. For payments you SENT (outgoing), use botwallet_list_payments. For all money movements, use botwallet_transactions.
- **botwallet_cancel_paylink** — Cancel a pending payment request. Only pending paylinks can be cancelled — paid or expired paylinks cannot.
- **botwallet_get_deposit_address** — Get your USDC deposit address on Solana. Anyone can send USDC to this address to fund your wallet. Also returns a funding URL for the owner portal.
- **botwallet_request_funds** — Request funds from your human owner. Sends a notification with the amount and reason. Use this when your balance is too low to complete a task.
- **botwallet_list_fund_requests** — List your fund requests with status (pending, funded, dismissed). Supports pagination.
- **botwallet_withdraw** — Request a withdrawal of USDC to an external Solana address. Every withdrawal needs your human owner's approval: this returns `needs_approval: true` with a `transaction_id` and an `approval_url`. Approval flow: (1) Send the `approval_url` to your human owner (approving alone does not move the money) and store the `transaction_id`, (2) Poll `botwallet_approval_status` or `botwallet_events` until status is "approved" (approvals expire after 24 hours), (3) Call `botwallet_confirm_withdrawal` with the `transaction_id` to co-sign and send it. If this call fails or times out, follow its `how_to_fix`: to retry the same request, pass the same `idempotency_key`. Fees: 3% of the amount (1% platform fee, minimum $0.01, plus a 2% withdrawal surcharge), plus a one-time $0.25 account setup fee if the destination address has never held USDC.
- **botwallet_confirm_withdrawal** — Complete a withdrawal that was previously approved by the owner. Performs FROST threshold signing to authorize the on-chain transaction, after checking that it sends the approved amount to the approved address plus at most the quoted fee. The amount and address are checked against what the agent asked for only if this MCP server started the withdrawal and has not restarted since; otherwise against the ones Botwallet recorded, with the fee still capped. An error with code OUTCOME_UNKNOWN means the withdrawal may have gone through: check the tool its `check_tool` names (usually botwallet_get_withdrawal) before doing anything else. A result with `status: "pending"` and `sent: true` means the withdrawal was sent and Solana has not confirmed it yet: do not request it again; check `check_tool` in about a minute.
- **botwallet_get_withdrawal** — Check the status of a withdrawal by ID. Shows amount, fees, and current status. When completed, includes the Solana transaction hash.
- **botwallet_x402_discover** — Search for paid APIs that accept x402 payments. Searches a curated catalog of APIs. Returns API descriptions, pricing, and endpoints. Use this to find APIs before calling botwallet_x402_fetch to probe them.
- **botwallet_x402_fetch** — Probe a URL to check if it requires x402 payment. If the URL returns a 200, the content is returned directly (free). If it returns a 402, parses the payment requirements and prepares a payment intent — returns the price and a `fetch_id` for use with botwallet_x402_pay_and_fetch. If the payment needs owner approval, returns `needs_approval: true` with an `approval_url` to send to your human owner; call botwallet_x402_pay_and_fetch only after they approve. No money is spent — this is "window shopping." You can probe multiple APIs to compare prices before committing. Botwallet pays only HTTPS APIs that accept USDC on Solana.
- **botwallet_x402_pay_and_fetch** — Pay for and fetch content from an x402 API. Uses the `fetch_id` from botwallet_x402_fetch. Checks the payment (the API's own price and address, plus at most the quoted fee and a cent of rounding), performs FROST threshold signing, builds the payment header, fetches the API, and settles. The price and address are checked against the API's own answer only if this MCP server ran botwallet_x402_fetch and has not restarted since; otherwise against the ones Botwallet recorded, with the fee still capped. Returns the API response content and payment details. If it fails, follow its `how_to_fix`. When nothing was paid, retry with the same `fetch_id`: probing the API again with botwallet_x402_fetch starts a new payment.
- **botwallet_transactions** — View the full transaction ledger: all completed money movements including payments sent, payments received, deposits, withdrawals, fees, and refunds. Filter by direction (in/out). For tracking specific outgoing payment intents by status, use botwallet_list_payments instead.
- **botwallet_my_limits** — View all guard rails set by the wallet owner: spending limits (per-transaction, daily), recipient restrictions (whitelists/blacklists), earning limits, and withdrawal rules. Check this before attempting operations that might be restricted by the owner's guard rails.
- **botwallet_pending_approvals** — List actions waiting for owner approval (payments and withdrawals). Shows approval URLs so the owner can act on them.
- **botwallet_approval_status** — Check the status of a specific approval by ID. Shows if it is pending, approved, rejected, or expired. When approved, includes the tool name and arguments needed to confirm the transaction.
- **botwallet_events** — Get wallet notifications, newest first. By default only unread events are returned, 10 at a time (25 at most). Useful types: approval_resolved (your owner approved or rejected a payment or withdrawal), approval_required, deposit_received, payment_completed, withdrawal_completed, x402_payment_completed, x402_payment_failed, fund_request_funded, low_balance. Set unread_only to false to include events already read. Set mark_read to true to mark the events this call returns as read.
- **botwallet_wallet_export** — Export the current wallet to an encrypted .bwlt file, to move it to another machine (same format as the Botwallet CLI). The file holds this wallet's Key 1 and API key, encrypted with a key that the Botwallet server releases on import. Anyone with the file can import the wallet within 24 hours (5 imports at most); after that it can no longer be imported, so it is not a long-term backup. Treat the file like the 12 words. An existing file is never overwritten.
- **botwallet_wallet_import** — Import a wallet from a .bwlt file made by botwallet_wallet_export or the Botwallet CLI. Gets the decryption key from the server, saves the key share and API key locally under a new name (an existing wallet is never replaced), and makes the imported wallet the default.
- **botwallet_wallet_backup** — ⚠️ SENSITIVE: Reveals Key 1, the 12 secret words of this wallet's local key share, for your human owner's backup. Together with the Botwallet server's Key 2 it can sign transactions; the owner needs it to withdraw from the Botwallet dashboard and to recover the wallet. Only use when your human owner explicitly asks for their backup key, and send the words only to them, privately. Two steps, as in the CLI: call without `code` to get a one-time code (valid for 30 seconds), then call again with that code to reveal the words.

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

```json
"mcpServers": {
  "botwallet-mcp-server": {
    "command": "npx",
    "args": ["-y","@botwallet/mcp"]
  }
}
```

## Documentation

## What botwallet-co/mcp does

botwallet-co/mcp exposes BotWallet financial operations as MCP tools for AI agents. It can create and manage wallets, inspect balances and spending budgets, receive USDC through payment requests, pay merchants or other bots, and request withdrawals to external Solana addresses.

The server also supports agent-to-API payments. Agents can search a curated x402 catalog, probe HTTPS endpoints to inspect payment requirements without spending money, and pay for eligible API responses with USDC on Solana. Payment requests can include itemized invoice lines, and the resulting paylink can be sent to a person by email or to another bot wallet.

Wallet owners remain involved through spending rules and approval workflows. The available controls include per-transaction and daily limits, recipient restrictions, earning limits, and withdrawal rules.

## How it works

Wallet registration creates a FROST 2-of-2 key arrangement. The agent keeps one share locally under `~/.botwallet/`, while BotWallet holds the other. Neither side can sign a transaction alone. Before signing, the server checks that a transfer matches the requested amount, recipient, and permitted fee rules.

Payments within the wallet's guard rails can complete immediately. Transactions requiring approval return an approval URL and transaction ID; the agent must send the URL to the owner, monitor approval status, and then call the relevant confirmation tool. Withdrawals always use this approval flow.

Operations that may have timed out or remain unconfirmed should be checked with the tool named in the response rather than repeated. Payment and withdrawal requests include idempotency handling so the same request can be retried without intentionally creating a duplicate. A pending Solana transaction should be checked later instead of submitted again.

## Setup and configuration

The package runs as a standard stdio MCP server through `npx`:

```json
{
  "mcpServers": {
    "botwallet": {
      "command": "npx",
      "args": ["-y", "@botwallet/mcp"]
    }
  }
}
```

It can also be installed globally with `npm install -g @botwallet/mcp` and started with `botwallet-mcp`. After connecting it to an MCP client, an agent can register a wallet when instructed. Registration saves the API key and local key share automatically and makes the new wallet the default.

Optional configuration includes `BOTWALLET_API_KEY`, `BOTWALLET_WALLET`, and `BOTWALLET_API_URL`. The server also reads `~/.botwallet/config.json`, which is shared with the BotWallet CLI. Multiple local wallets can be listed and switched with the wallet management tools.

## Tools and capabilities

- Register wallets and inspect metadata, live USDC balances, deposit addresses, and owner status.
- List local wallets and select the default wallet.
- Check recipients, estimate affordability, make payments, monitor payment status, and cancel unsent payments.
- Create, send, inspect, list, and cancel paylinks for incoming payments.
- Request owner funding and track fund requests.
- Request and confirm owner-approved withdrawals, then inspect withdrawal status and transaction hashes.
- Discover x402 APIs, inspect their prices, and pay for eligible responses.
- Review the complete transaction ledger and wallet guard rails.

## Limitations and notes

Payments and withdrawals use USDC on Solana. Withdrawals require owner approval, and a frozen wallet can receive funds but cannot send payments, withdrawals, or paid API requests until it is unfrozen. Fees apply to payments, recipient account setup, withdrawals, and some API transactions; the affordability and transaction tools expose the applicable cost.

The local key share is required for signing operations. An API key alone supports read-only use, while payments, withdrawals, and paid API calls also need the matching seed file. Claim links from registration expire after 48 hours, and owner approvals expire after 24 hours. The package is licensed under Apache-2.0.

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

