Purpose
Botwallet MCP Server provides AI agents with a programmable USDC wallet, enabling agents to independently receive payments, make payments, and manage funds while the human owner retains control. It is suitable for scenarios where agents need to transact autonomously on-chain, access paid APIs, or pay other agents, such as having an agent create invoices to get paid, purchase paid APIs such as speech-to-text on demand, or transfer funds to a specified agent or Solana address.
Main Capabilities
- Wallet Management: Register, back up, export, and import wallets, and view balances and history.
- Receiving Payments: Agents can create invoices (paylinks); after the payer pays, USDC goes directly into the wallet.
- Payments: Supports payments to usernames, Solana addresses, or other agents; supports finding and paying for paid APIs through the x402 directory, then retrieving the results.
- Spending Guardrails: The human owner sets spending limits; large transactions exceeding the automatic approval threshold require owner approval; the owner can freeze the wallet in the dashboard, after which the wallet can still receive payments but cannot make payments, withdraw, or call paid APIs.
- Threshold Signing: Uses FROST 2-of-2 threshold signing. When creating a wallet, a key generation ceremony is performed, generating two key shares: Key 1 is stored locally by the agent in
~/.botwallet/seeds/, and Key 2 is held by the Botwallet server. The full private key never appears, and neither party can transfer funds on its own. - Transaction Validation: Botwallet prepares each transaction; before Key 1 co-signs, the MCP server decodes the transaction and signs only when the transaction transfers only USDC out of the wallet (the agreed amount into the recipient's associated standard USDC account, plus at most the quoted fee; fees for paid APIs are quoted in whole cents, at most one cent more) and contains nothing else. The recipient is checked against the address provided by the agent (withdrawals, paid APIs, and payments to Solana addresses); for payments to usernames, the address comes from a Botwallet lookup, so only the amount and fee are checked.
- Idempotency and Exception Handling:
botwallet_payandbotwallet_withdrawreturnidempotency_key; calling again with the same key returns the result of the first request instead of initiating a new payment. If a payment times out or the connection is interrupted, the result will state whether the funds may have moved:OUTCOME_UNKNOWNindicates that you must first usecheck_toolthe specified tool to confirm (usuallybotwallet_list_paymentsorbotwallet_get_withdrawal, orbotwallet_balancewhen Botwallet lists the transfer as failed but it may still succeed) before deciding whether to retry. - Pending Transactions: When sent but not confirmed, a normal result is returned instead of an error, with status
pending,sent: true, along with the Solana signature, explorer link, andcheck_tool; the agent cannot repeat the payment, and after about a minute it can usecheck_toolto see whether it completed or failed.
How to Use
Add a JSON block to the MCP client configuration, then tell the agent "Create a Botwallet for yourself.". The agent will run botwallet_register, generate the key share locally, and return a deposit address, with no need to preconfigure an API key.
Claude Desktop: Edit the configuration file
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Claude Code: Adding the configuration applies to the current project; to use it for all projects, add --scope user. On native Windows (not WSL), npx requires the 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 the configuration.
Windsurf: Add to ~/.codeium/windsurf/mcp_config.json.
Cline: Open the Cline sidebar, click MCP Servers, then Configure and add the configuration.
Other MCP clients: The configuration is the same, the command is npx -y @botwallet/mcp.
Global install: If installed globally, the command changes to botwallet-mcp.
Environment variables: All optional. The server reads ~/.botwallet/config.json(shared with the CLI) and infers the rest. Without these variables it uses the default wallet; registering or importing a wallet makes it the default.
Provides 36 tools, divided into 8 groups, including wallet management, history and guardrails, wallet transfers, etc.
Security and limitations
The server runs locally on the agent machine, key shares are stored in ~/.botwallet/seeds/, and are never sent to Botwallet. The server communicates with the Botwallet API for co-signing and submits the combined signature to Solana. Spending limits are enforced server-side and the agent cannot bypass them. All tools carry MCP tool annotations: balance, history and queries are marked read-only, and clients that support annotations can run them without asking; tools that involve moving funds (botwallet_pay、botwallet_withdraw, confirmation 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, and clients can keep asking. Allowing read-only tools is safer than "always allow" for the entire server.
Key 1 is stored only on the agent machine and is never sent to Botwallet. Registration saves the API key to ~/.botwallet/config.json without displaying it. There are two operations that expose key material, and they are used only when the owner requests it:botwallet_wallet_backup shows Key 1 (12 words) to the agent so it can be handed over to the owner (the owner needs them to withdraw and recover the wallet); these words remain in the AI conversation, so that conversation should be treated as sensitive; as with the CLI, it requires two calls, the first returns a one-time code valid for 30 seconds, and the second carries that code to display the words.botwallet_wallet_export writes a .bwlt file containing Key 1 and the API key; anyone holding that file can import the wallet within 24 hours.
The MCP server shares the same set of local files with the Botwallet CLI: configuration ~/.botwallet/config.json, seed ~/.botwallet/seeds/*.seed, export format .bwlt(encrypted, usable in both directions, contains Key 1 and the API key, must be kept secret). A wallet created with the CLI can be used in the MCP server, and vice versa.
Specific address information for resources such as the website, dashboard, documentation, CLI, npm, etc. is not yet provided. For security vulnerability reports, see SECURITY.md; the specific content is not yet provided.