BotWallet MCP Server
Enables AI agents to manage USDC wallets on the Solana blockchain, allowing them to autonomously send payments, create invoices, and perform withdrawals within user-defined spending limits and approval workflows.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@BotWallet MCP Server Send $5 to @acme-bot for the data report"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Botwallet MCP Server
Let your AI agent send invoices to earn, pay for APIs and manage money, while you stay in control.
Give your AI agent financial autonomy without giving up control. Your agent can create invoices to get paid, spend on other agents and paid APIs, and manage its own USDC wallet. You set the spending limits, approve large transactions, and see everything it does. Works with Claude Desktop, Claude Code, Cursor, Windsurf, Cline, and any MCP-compatible client.
Website · Dashboard · Docs · CLI · npm
Add one JSON block to your MCP client config. That's it.
{
"mcpServers": {
"botwallet": {
"command": "npx",
"args": ["-y", "@botwallet/mcp"]
}
}
}Then tell your agent: "Create a Botwallet for yourself."
It runs botwallet_register, generates a cryptographic key share locally, and comes back with a deposit address. No setup, no API keys to configure beforehand.
From there:
"Send $5 to @acme-bot for the data report"
If the amount is within guard rails, the agent signs and submits. If not, it asks the human owner for approval.
"Create an invoice for $25 for the consulting session"
The agent creates a paylink. When someone pays it, the USDC goes straight to the wallet.
"Find a speech-to-text API and use it"
The agent searches the x402 catalog, finds a paid API, pays for access, and returns the result.
How signing works
Every wallet uses FROST 2-of-2 threshold signatures. During wallet creation, a key generation ceremony produces two shares:
Key 1 — the agent's share, stored locally at
~/.botwallet/seeds/Key 2 — the server's share, held by Botwallet
The full private key never exists. Every transaction requires both parties to co-sign. Neither the agent nor Botwallet can move funds alone. Human owners set spending limits and approve anything outside the rules.
Botwallet prepares each transaction; before Key 1 co-signs it, this server decodes it and refuses to sign unless it moves only USDC out of the wallet: the agreed amount into the recipient's associated (standard) USDC account, plus at most the quoted fee (up to a cent more for paid APIs, whose fee is quoted in whole cents), and nothing else. The recipient is checked against the address the agent gave for withdrawals, paid APIs and payments to a Solana address. For payments to a username the address comes from Botwallet's lookup, so only the amount and fee are checked against the agent's request. The Agent CLI and the signing page apply the same rules.
The agent's own amount, recipient and fee are kept in memory, so they are used only while the MCP server process that started the transfer is still running. After a restart, which is common when an owner approves hours later, Key 1 checks the transaction against the amount, recipient and fee Botwallet recorded, and never signs a fee above a fixed ceiling.
If a payment call times out or loses its connection, the result says whether money may have moved. OUTCOME_UNKNOWN means check the tool named in its check_tool (usually botwallet_list_payments or botwallet_get_withdrawal, or botwallet_balance when Botwallet lists the transfer as failed but it may still have gone through) before paying again; to retry the same payment, pass back its idempotency_key.
Related MCP server: Alby Bitcoin Payments MCP Server
Pending, frozen and repeated payments
Sent, not confirmed yet. Botwallet waits for Solana to confirm a payment or withdrawal. If the network has not confirmed it in time, the tool returns a normal result, not an error, with status: "pending", sent: true, the Solana signature, an explorer link and check_tool. It may still go through, so the agent must not pay again: in about a minute, the tool in check_tool shows completed or failed.
Frozen wallet. The owner can freeze the wallet in the Botwallet dashboard. A frozen wallet can still receive money but can't send any: new payments, withdrawals and paid API calls are blocked, and a confirm stops with WALLET_SUSPENDED before anything is signed or sent. A transfer approved before the freeze is kept: once the owner unfreezes the wallet, the agent finishes it with the same confirm tool and transaction_id (for a paid API, botwallet_x402_pay_and_fetch with the same fetch_id).
Retrying a request. botwallet_pay and botwallet_withdraw return an idempotency_key. Calling the tool again with that key returns what became of the first request instead of making a second one. Without one, a new key is made, so the call is a new payment. A key already used for another kind of request, or for one that is still being created, returns IDEMPOTENCY_KEY_CONFLICT.
Installation
Claude Desktop
Add to your Claude Desktop config file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"botwallet": {
"command": "npx",
"args": ["-y", "@botwallet/mcp"]
}
}
}Claude Code
claude mcp add botwallet -- npx -y @botwallet/mcpThis adds it to the current project. To use it in every project, add --scope user:
claude mcp add --scope user botwallet -- npx -y @botwallet/mcpOn native Windows (not WSL), npx needs a cmd /c wrapper: claude mcp add botwallet -- cmd /c npx -y @botwallet/mcp.
Cursor
Go to Settings > MCP, click Add new MCP server, and add:
{
"mcpServers": {
"botwallet": {
"command": "npx",
"args": ["-y", "@botwallet/mcp"]
}
}
}Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"botwallet": {
"command": "npx",
"args": ["-y", "@botwallet/mcp"]
}
}
}Cline
Open the Cline sidebar, click MCP Servers, then Configure, and add:
{
"mcpServers": {
"botwallet": {
"command": "npx",
"args": ["-y", "@botwallet/mcp"]
}
}
}Other MCP clients
The config is the same everywhere — npx -y @botwallet/mcp as the command.
Global install (alternative)
npm install -g @botwallet/mcpIf you install globally, use botwallet-mcp as the command instead of npx -y @botwallet/mcp.
Environment variables
Variable | Default | Purpose |
| — | API key ( |
| — | Which wallet to use (if you have several). The server won't start if no wallet has this name. MCP only: the CLI uses |
|
| API endpoint, the same variable the CLI reads. |
All optional. The server reads ~/.botwallet/config.json (shared with the CLI) and figures out the rest. Without these variables it uses the default wallet; registering or importing a wallet makes it the default.
Tools
36 tools across 8 groups.
Wallet management
Tool | What it does |
| Check API connectivity |
| Create a new wallet (FROST key generation) |
| Wallet metadata and status |
| On-chain balance and remaining budget |
| Set owner email |
| Change display name |
| List local wallets |
| Switch active wallet |
Payments
Tool | What it does |
| Check if a recipient exists |
| Pre-flight check before paying |
| Pay someone (auto-signs if within limits) |
| Complete a payment after owner approval |
| List outgoing payments |
| Cancel a pending payment |
Earning
Tool | What it does |
| Create a payment request or invoice |
| Send a paylink via email or bot inbox |
| Check paylink status |
| List your paylinks |
| Cancel a pending paylink |
Funding
Tool | What it does |
| Get the USDC deposit address |
| Ask the human owner for funds |
| List past fund requests |
Withdrawals
Tool | What it does |
| Withdraw USDC to an external Solana address |
| Complete a withdrawal after approval |
| Check withdrawal status |
x402 paid APIs
Tool | What it does |
| Search for paid APIs |
| Probe a URL for payment requirements |
| Pay and retrieve content from an x402 API |
History and guard rails
Tool | What it does |
| Full transaction ledger |
| View spending limits set by the owner |
| List actions waiting for approval |
| Check a specific approval |
| Wallet notifications |
Wallet transfer
Tool | What it does |
| Export wallet to an encrypted .bwlt file (importable for 24 hours, 5 times at most) |
| Import wallet from a .bwlt file under a new local name |
| Reveal Key 1 (12 words) for the owner's backup, in two calls with a one-time code |
Resources
URI | What it returns |
| Wallet summary — balance, budget, seed file status, and the claim link while no owner has claimed the wallet |
Architecture
┌─────────────────┐ stdio (JSON-RPC) ┌──────────────────┐
│ AI Client │◄────────────────────────►│ Botwallet MCP │
│ (Claude/Cursor) │ │ Server │
└─────────────────┘ └────────┬─────────┘
│
┌───────┴───────┐
│ │
~/.botwallet/ api.botwallet.co
(seeds, config) (API)
│
┌─────┴─────┐
│ Solana │
│ (mainnet) │
└───────────┘The server runs locally on the agent's machine. Key shares are stored in ~/.botwallet/seeds/ and are never sent to Botwallet. The server talks to the Botwallet API for co-signing and submits the combined signature to Solana.
Security
The agent can't bypass spending limits. Those are enforced server-side. Transactions above the auto-approve threshold go to the human owner for approval. There is no full private key anywhere in the system.
Every tool carries MCP tool annotations. Balance, history and lookups are marked read-only, so clients that support annotations can run them without asking. Tools that move money (botwallet_pay, botwallet_withdraw, the confirm tools, botwallet_x402_pay_and_fetch), touch Key 1 (botwallet_wallet_backup, botwallet_wallet_export, botwallet_wallet_import) or change the owner are marked destructive, so clients can keep asking before those. Allowing the read-only tools is safer than "always allow" for the whole server.
Key 1 (the agent's key share) is stored only on the agent's machine and is never sent to Botwallet. Registering saves the API key to ~/.botwallet/config.json without showing it. Two things do reveal key material, so use them only when the owner asks:
botwallet_wallet_backupshows Key 1 (12 words) to the agent so it can pass them to the owner, who needs them to withdraw and to recover the wallet. The words then sit in the AI conversation, so treat that conversation as sensitive. As in the CLI, it takes two calls: the first returns a one-time code, valid for 30 seconds, and the second, with that code, reveals the words. This guards against revealing Key 1 by accident; it does not stop an agent that is set on revealing it.botwallet_wallet_exportwrites a.bwltfile with Key 1 and the API key. Anyone holding the file can import the wallet within 24 hours.
See SECURITY.md for vulnerability reporting.
CLI interop
This MCP server and the Botwallet CLI share the same local files:
Config:
~/.botwallet/config.jsonSeeds:
~/.botwallet/seeds/*.seedExport format:
.bwlt(encrypted, works both directions; holds Key 1 and the API key, so keep it private)
A wallet created with the CLI works in the MCP server, and vice versa.
Development
git clone https://github.com/botwallet-co/mcp.git
cd mcp
npm install
npm run build
npm test # unit + integration tests, offline
npm run test:e2e # E2E tests against the live API (no payments)
npm run inspect # Open in MCP InspectorLicense
Available Tools
36 toolsbotwallet_approval_statusB
Check the status of a specific approval by ID. Shows if it is pending, approved, rejected, or expired.
Inputs: approval_id (required).
botwallet_balanceA
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.
Inputs: no named parameters.
botwallet_cancel_paylinkA
Cancel a pending payment request. Only pending paylinks can be cancelled — paid or expired paylinks cannot.
Inputs: request_id (required).
botwallet_cancel_paymentA
Cancel a pending or pre-approved payment that has not yet been signed.
Inputs: transaction_id (required).
botwallet_can_i_affordA
Pre-flight check before paying. Shows the fee, total cost, and your balance after payment. Also warns if the payment requires owner approval or exceeds limits. Always call this before botwallet_pay if unsure about your balance.
Inputs: to (required), amount (required).
botwallet_confirm_paymentA
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.
Inputs: transaction_id (required).
botwallet_confirm_withdrawalA
Complete a withdrawal that was previously approved by the owner. Performs FROST threshold signing to authorize the on-chain transaction.
Inputs: transaction_id (required).
botwallet_create_paylinkA
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 provided, the total is calculated from items.
Inputs: description (required), amount, reference, expires_in, +2 more.
botwallet_eventsB
Get wallet notifications/events. Event types include: approval_resolved, deposit_received, payment_completed, fund_requested, guard_rails_updated. Set mark_read to true to mark returned events as read.
Inputs: types, limit, unread_only, since, +1 more.
botwallet_get_deposit_addressA
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.
Inputs: no named parameters.
botwallet_get_paylinkB
Get the status of a payment request by ID or reference. Shows if it has been paid.
Inputs: request_id, reference.
botwallet_get_withdrawalA
Check the status of a withdrawal by ID. Shows amount, fees, and current status. When completed, includes the Solana transaction hash.
Inputs: withdrawal_id (required).
botwallet_infoA
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.
Inputs: no named parameters.
botwallet_list_fund_requestsB
List your fund requests with status (pending, funded, dismissed). Supports pagination.
Inputs: limit, offset, status.
botwallet_list_paylinksA
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.
Inputs: limit, offset, status.
botwallet_list_paymentsA
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.
Inputs: limit, offset, transaction_id, status.
botwallet_lookupA
Check if a recipient exists before paying. Returns their display name and type (merchant or bot). If not found, suggests similar usernames.
Inputs: username (required).
botwallet_my_limitsA
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.
Inputs: no named parameters.
botwallet_payA
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 your new balance. If it requires owner approval, returns needs_approval: true with a transaction_id — check botwallet_events for the approval result, then call botwallet_confirm_payment. Always call botwallet_can_i_afford first if unsure about your balance.
Inputs: to, amount, payment_request_id, note, +2 more.
botwallet_pending_approvalsA
List actions waiting for owner approval (payments and withdrawals). Shows approval URLs so the owner can act on them.
Inputs: no named parameters.
botwallet_pingA
Check if the BotWallet API is reachable. No authentication required. Returns API status and version.
Inputs: no named parameters.
botwallet_registerA
Register a new bot wallet using FROST Distributed Key Generation. 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 the API key and claim code for the human owner. The local key share is saved to ~/.botwallet/seeds/ automatically.
Inputs: name (required), agent_model, owner_email, description, +1 more.
botwallet_renameA
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.
Inputs: name (required).
botwallet_request_fundsA
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.
Inputs: amount (required), reason (required).
botwallet_send_paylinkA
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.
Inputs: request_id (required), to_email, to_wallet, message.
botwallet_transactionsA
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.
Inputs: limit, offset, type.
botwallet_update_ownerB
Set or change the owner email for an unclaimed wallet. The owner will receive a notification and can claim the wallet through the portal.
Inputs: owner_email (required).
botwallet_wallet_backupA
⚠️ SENSITIVE: Reveals the 12-word mnemonic backup phrase for the current wallet. This is the local key share (S1) of the FROST 2-of-2 threshold key. Anyone with both this mnemonic AND the server key share can sign transactions. Only use when explicitly requested by the user for backup purposes.
Inputs: no named parameters.
botwallet_wallet_exportA
Export the current wallet to a .bwlt file for transfer to another machine. The file is encrypted with AES-256-GCM — the decryption key is held by the server and retrieved during import. The .bwlt file alone cannot unlock the wallet.
Inputs: output_path (required).
botwallet_wallet_importA
Import a wallet from a .bwlt file. Retrieves the decryption key from the server, decrypts the wallet data, and saves the key share + config locally.
Inputs: file_path (required).
botwallet_wallet_listA
List all locally configured wallets. Shows which wallet is the default. This reads from ~/.botwallet/config.json — the wallet registry shared with the CLI.
Inputs: no named parameters.
botwallet_wallet_useA
Switch the default wallet. Subsequent operations will use this wallet's API key and seed. Use botwallet_wallet_list to see available wallets.
Inputs: name (required).
botwallet_withdrawA
Withdraw USDC to an external Solana address. If the withdrawal is pre-approved, it completes immediately via FROST threshold signing. If it requires owner approval, returns needs_approval: true — check botwallet_events for the result, then call botwallet_confirm_withdrawal.
Inputs: amount (required), to_address (required), reason (required), idempotency_key.
botwallet_x402_discoverA
Search for paid APIs that accept x402 payments. Searches a curated catalog of APIs or the Coinbase Bazaar directory. Returns API descriptions, pricing, and endpoints.
Inputs: query, source, limit, offset.
botwallet_x402_fetchA
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. No money is spent — this is "window shopping." You can probe multiple APIs to compare prices before committing.
Inputs: url (required), method, headers, body.
botwallet_x402_pay_and_fetchA
Pay for and fetch content from an x402 API. Uses the fetch_id from botwallet_x402_fetch. Performs FROST threshold signing, builds the payment header, fetches the API, and settles. Returns the API response content and payment details.
Inputs: fetch_id (required), headers, body.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 36 tools
Most tools have distinct purposes with clear boundaries, such as botwallet_balance for balance checks and botwallet_pay for payments. However, some overlap exists between botwallet_list_payments and botwallet_transactions, which could cause confusion about which to use for tracking outgoing payments versus all money movements. The descriptions help clarify, but the distinction is subtle.
All tools follow a consistent snake_case naming pattern with a 'botwallet_' prefix and descriptive verb_noun combinations, such as botwallet_create_paylink and botwallet_cancel_payment. This predictability makes it easy for agents to understand and navigate the toolset without confusion from mixed conventions.
With 36 tools, the count feels heavy for a wallet management server, as it includes many specialized operations like x402-related tools and wallet backup/import functions. While comprehensive, it may overwhelm agents with too many options, making it borderline excessive for typical use cases.
The toolset provides complete coverage for the wallet domain, including core operations like payments, withdrawals, balance checks, and approvals, as well as advanced features like x402 API payments and wallet management. There are no obvious gaps, and tools like botwallet_can_i_afford and botwallet_events support robust workflows without dead ends.
Maintenance
Related MCP Connectors
Shared USDC wallets for agents and teams, with optional write access and human-signed payments.
USDC wallets, payment links and x402 payments on Solana for AI agents.
Give AI agents a wallet with a spending limit. Non-custodial USDC on Base, server-enforced limits.
Wallets and rails that let AI agents spend money safely.
Related MCP Servers
AlicenseNot gradedqualityFmaintenanceProvides onchain tools for Claude AI to interact with the Base blockchain and Coinbase API, enabling wallet management, fund transfers, and smart contract deployment.352MIT
Alby Bitcoin Payments MCPofficial
AlicenseBqualityBmaintenanceConnects a Bitcoin Lightning wallet to your LLM using Nostr Wallet Connect, enabling payments and interactions with Lightning Network features.1151 npm66TypeScriptApache 2.0- AlicenseCqualityDmaintenanceEnables AI agents to interact with cryptocurrency ecosystems through wallet management, trading operations (swaps, DCA, limit orders), staking, and multi-chain support starting with Solana.37GPL 3.0
- AlicenseBqualityBmaintenanceProvides permissionless wallet infrastructure for AI agents to manage wallets, sign transactions, and handle tokens across Solana and all EVM-compatible chains. It includes 29 specialized tools for on-chain operations, featuring built-in security guards and automated x402 payment processing without KYC requirements.40399 npm3MIT