PetaSats MCP
A local, non-custodial MCP server that lets an AI app buy BSV with USDC on Base through on-chain atomic swaps, manage the kit's wallets, and shut it down safely.
Get quotes (
get_quote): live USDC→BSV pricing with fees, rate vs market mid, and limits; read-only, valid ~60 seconds.Swap (
swap_asset_to_bsv): locks USDC on Base for BSV, optionally delivering straight to an external BSV address (deliver_to); standard settlement is default,fastonly under $25 and by mutual agreement.Track swaps (
wait_for_swap,swap_status): poll for stage changes or get an instant read of one/all swaps, with outcome (delivered, settled, refunded, failed) and txids.Inspect the kit (
wallet_info): Base/BSV addresses, balances, limits, spending-stop state, gas purchase status — never key material.Withdraw (
withdraw_bsv,withdraw_base): send all confirmed BSV, or USDC/ETH to a user-supplied Base address.Plan funding (
fund_wallet): returns a quote plus the exact swap call to pay a specific BSV address from the kit's USDC, moving nothing.Buy gas (
buy_gas): sells 0.50 USDC for ETH via a CoW Protocol order so a USDC-only kit can pay Base gas.Emergency stop (
stop_spending): halts new swaps and withdrawals; only the user can resume from a terminal.Close out (
close_kit): step-by-step emptying of USDC, BSV, then ETH to the user's wallets, then stops the kit; keys are never deleted.Discover pairs (
list_liquidity): offline list of supported pairs (currently USDC on Base → BSV).Guardrails: optional
limits.jsonrestricts destinations, daily swap caps, fast settlement, and reads before every money operation.
Note: the README mentions a pay_402 tool, but it is not present in this server schema.
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., "@PetaSats MCP Buy $20 of BSV and send it to 1BoatSLRHtKNngkdXEeobR76b53LETtpyT"
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.
PetaSats MCP
Buy BSV with USDC on Base from your AI app through a local, non-custodial MCP server.
What it does
PetaSats supports USDC on Base to BSV only. Keys are made and kept on your machine.
You lock USDC in the swap contract on Base.
The counterparty locks BSV.
The kit verifies the lock against a merkle proof and block headers, then claims BSV and reveals the secret.
The counterparty uses that secret to claim USDC.
Swaps are about $5 to $100. Each buyer may make three swaps and $200 per day; a shared daily total also applies. Standard speed is the default and waits for one BSV confirmation. An explicit speed: "fast" request can reduce that wait for at most $25 only when both sides agree.
Related MCP server: Base MCP Server
Install and connect
Use Node.js 22 or newer. Every command here runs this release, petasats-mcp@0.2.24. Use one version in your client's entry and in terminal commands; to move to a later release, change it while no swap is running and restart the client.
One click. Your app opens and asks you to confirm:
One command. Claude Code:
claude mcp add petasats -- npx -y petasats-mcp@0.2.24Codex (CLI, IDE extension, or app):
codex mcp add petasats -- npx -y petasats-mcp@0.2.24Gemini CLI:
gemini mcp add -s user petasats npx -- -y petasats-mcp@0.2.24Qwen Code:
qwen mcp add petasats npx -y petasats-mcp@0.2.24Grok Build:
grok mcp add petasats -- npx -y petasats-mcp@0.2.24Cline:
cline mcp add petasats --yes -- npx -y petasats-mcp@0.2.24Kiro CLI:
kiro-cli mcp add --name petasats --command npx --args "-y,petasats-mcp@0.2.24" --scope globalA settings file. These apps take this entry in their MCP settings. If the file already has an mcpServers list, add the petasats entry inside it.
{"mcpServers":{"petasats":{"command":"npx","args":["-y","petasats-mcp@0.2.24"]}}}App | Where the entry goes |
Cursor |
|
Devin Desktop (formerly Windsurf) |
|
Kiro |
|
Warp |
|
JetBrains AI Assistant | Settings → Tools → AI Assistant → Model Context Protocol (MCP) |
Junie |
|
LM Studio | Program tab → Install → Edit mcp.json |
Cline | MCP Servers → Configure → Configure MCP Servers |
VS Code (.vscode/mcp.json):
{"servers":{"petasats":{"type":"stdio","command":"npx","args":["-y","petasats-mcp@0.2.24"]}}}Zed (~/.config/zed/settings.json):
{"context_servers":{"petasats":{"command":"npx","args":["-y","petasats-mcp@0.2.24"],"env":{}}}}OpenCode (~/.config/opencode/opencode.json):
{"mcp":{"petasats":{"type":"local","command":["npx","-y","petasats-mcp@0.2.24"]}}}Kilo Code (~/.config/kilo/kilo.jsonc):
{"mcp":{"petasats":{"type":"local","command":["npx","-y","petasats-mcp@0.2.24"],"enabled":true}}}Cherry Studio: Settings → MCP Servers → Add Server. Choose type STDIO, command npx, arguments -y petasats-mcp@0.2.24.
Any model. Cline, Kilo Code, OpenCode, Goose, Cherry Studio, Zed, Warp, Qwen Code and Grok Build let you choose the model, including models from OpenRouter, DeepSeek and Qwen. The kit has been tested with Claude Code and Codex. Through OpenRouter, DeepSeek V4.1 Flash, DeepSeek V4 Pro, Qwen 4 Max, Qwen 3.8 27B, Kimi K3.1 Pro, GLM 5.3 and MiniMax M3.1 Flash each passed a check on an empty kit: set it up, get a $10 quote, accept a no, and close the kit. With any model, read the USDC amount in a quote before you say yes.
Browser apps cannot run it. claude.ai, chatgpt.com, grok.com, Perplexity and the Gemini app run in a browser and cannot start a program on your computer. The kit has to run on your computer, because that is where its keys stay.
Any client that starts local stdio servers can use command npx and args -y petasats-mcp@0.2.24. First start creates keys in ~/.petasats; PETASATS_HOME changes that location. Back up keys.json: it is the only copy. Run only one copy of a kit home, because two copies of the same keys can each sign Base payments the other cannot see.
Fund the kit
wallet_info shows the Base address. Send it USDC on Base. ETH for gas is optional: send a little (0.0002 ETH covers many swaps), or let the kit buy its own. With your yes, buy_gas sells 0.50 USDC of the kit's balance for ETH through one CoW Protocol order, paid to the kit's own address. A CoW Protocol solver settles the order and pays its network fee, so this works with no ETH in the kit. If no solver fills the order within about 20 minutes, it expires and nothing is sold. buy_gas refuses when the kit already has 0.00002 ETH or more.
Use it
Ask in plain words, for example:
“Set up PetaSats and tell me what to send to fund it.”
“What would $20 of BSV cost right now?”
“Buy $20 of BSV and send it to 1….”
“How is my swap doing?”
“Close the kit and send everything to my wallets.”
Tool | Moves funds |
get_quote | No |
swap_asset_to_bsv | Yes |
wait_for_swap | No |
swap_status | No |
wallet_info | No |
stop_spending | No |
withdraw_bsv | Yes |
withdraw_base | Yes |
fund_wallet | No — it only plans a USDC-to-BSV swap and returns a quote |
list_liquidity | No |
close_kit | Yes — it empties the kit into your wallets, then stops it |
buy_gas | Yes — it sells 0.50 USDC of the kit's balance for ETH for gas |
pay_402 | Yes — pays one BSV HTTP-402 invoice from this kit's BSV |
Pay a BSV HTTP-402 API
Use pay_402 with confirm: false to inspect an invoice, then use confirm: true only after the user approves that one payment. The kit signs from its own BSV; the API service, not PetaSats, broadcasts the transaction. The per-call cap applies to the invoice amount. The daily cap includes each invoice amount and its network fee. Payments use only the kit's confirmed BSV, or change from one of its own earlier payments once that service accepted it.
Limits you control
You can create ~/.petasats/limits.json to restrict where an AI may send funds and how much it may swap per UTC day:
{
"format": "petasats.limits/1",
"bsvDestinations": ["1BoatSLRHtKNngkdXEeobR76b53LETtpyT"],
"baseDestinations": ["0x1111111111111111111111111111111111111111"],
"maxSwapUsdPerDay": 50,
"allowFastSettlement": false,
"x402MaxSatsPerCall": 10000,
"x402MaxSatsPerDay": 100000
}Keep this file private to your user account: chmod 600 ~/.petasats/limits.json. The kit refuses a limits file that other users can read or write. It rereads the file before every money operation. A refusal says that it was refused by your limits file and that nothing was sent. Use npx petasats-mcp@0.2.24 limits to inspect it.
stop_spending stops new swaps and withdrawals immediately. Only you can resume with npx petasats-mcp@0.2.24 resume; recovery for swaps already started keeps working.
allowFastSettlement: false forbids fast settlement for new swaps. If the field is missing, an explicitly requested fast swap is permitted to negotiate it; standard remains the default.
x402MaxSatsPerCall and x402MaxSatsPerDay are positive satoshi caps for pay_402; the daily cap includes network fees from every payment record created that UTC day.
These controls protect against an AI that can only use the kit's tools. An AI app that can run shell commands or edit files as you can also edit limits.json or STOP.
Close the kit
Ask: “Send everything to my wallets and close the kit. My Base address is 0x… and my BSV address is 1….”
close_kit empties the kit into your own wallets, then stops it. Each call does one step, and the AI calls again until the kit reports closed:
While a Base withdrawal is pending, or a gas purchase (
buy_gas) is finishing, it waits. While a swap is running, it refuses and says when to try again. While spending is stopped for another reason, it refuses.It sends the USDC first, then the BSV, then the ETH, one send per step. The USDC goes first because sending it costs ETH for gas. BSV that has not confirmed yet is waited for, then sent.
It checks that the kit is empty, then stops it. The only thing left behind is ETH too small to pay its own gas, or occasionally a BSV amount too small to send.
One close-down goes to one pair of addresses, and your limits file applies to them. In a terminal, quit your AI app first (only one copy of a kit runs at a time), then run npx petasats-mcp@0.2.24 close <base_address> <bsv_address>. It repeats the steps until the kit is closed. After a brief failure, such as a network error, or while a swap is still running, it tries again; if a step is refused for any other reason, it stops and gives the reason.
Closing never deletes keys.json. Keep it, because anything sent to the kit's addresses later can only be recovered with it. To use the kit again, run npx petasats-mcp@0.2.24 resume.
Each answer includes sent, every send made in this close-down so far. That list comes from the kit's own records; a block explorer shows your addresses' full history.
Progress and reporting
The server gives the AI an operating guide. With a person watching, it reports one line per stage and a final summary with transaction IDs. For a program it returns only the result. Reporting never holds up a swap, and nothing asks for confirmation after a swap starts.
Trust model
The kit runs on your machine. Its keys are made and kept there, and PetaSats never holds your coins. Funds can go only to the swap contract on Base, the kit's own addresses, or an address you provide.
The counterparty quotes a price, can decline or delay a swap, and locks BSV for you. It cannot take your USDC without the swap secret, and the kit reveals that secret only by claiming your BSV. If the counterparty never locks BSV, your USDC refunds to you once the Base lock expires, about 10 hours (180,000 Base blocks) after you lock it. The counterparty's BSV lock can return to it after at most 12 BSV blocks (about 2 hours), so the kit claims well before then.
A swap has a competing transaction by design: the counterparty's BSV refund becomes valid at a fixed block height. So standard settlement waits until the counterparty's BSV lock is in a block and checked against a merkle proof and block headers before the kit reveals the secret, and after it claims, the kit watches its claim until that is in a block too. The standard Base gate is 60 confirmations (about 12 seconds). Fast mode reveals against an unconfirmed BSV lock, and if the counterparty double-spends that lock you can lose the swap amount. It runs only when you request speed: "fast", both sides agree, and the amount is within the quote's fast cap: at most $25, and the kit refuses any cap above $35.
You trust the npm package you run (see Verify what you run), the Base RPC and BSV data services the kit reads, and the BSV network's first-seen rule while a transaction is unconfirmed. Recovery resumes after a restart. Run one swap at a time, and keep the server running during a swap.
Costs
get_quote shows the rate and comparison with market mid. You pay Base gas in ETH, the BSV claim fee, and a small extra BSV fee with deliver_to. If the kit buys its own gas, buy_gas spends 0.50 USDC of the kit's balance on that ETH, CoW Protocol's fee included. See get_quote for protocol fees.
Verify what you run
The npm package is built by GitHub Actions from a tagged commit and published with npm provenance. Run npm audit signatures; the npm page links the build to its commit and workflow run. dist/petasats-mcp.mjs is not minified. Source under src/ is exported from the development repository for each release with internal development comments removed and internal names replaced by neutral ones; apart from that it is identical.
Files, status, and recovery
The kit uses ~/.petasats. Run npx petasats-mcp@0.2.24 status for status and npx petasats-mcp@0.2.24 recover after interruption.
A Base withdrawal left pending (for example after a fee rise) is re-sent unchanged; new swaps and Base withdrawals wait until it confirms. Run npx petasats-mcp@0.2.24 withdrawals to list pending withdrawals. If a finalized nonce was consumed but its receipt cannot be found, check the transaction in a Base explorer, then explicitly record the outcome with npx petasats-mcp@0.2.24 withdrawal <hash> sent or npx petasats-mcp@0.2.24 withdrawal <hash> not-sent.
Repeating the same Base withdrawal (same asset, amount, and address) within an hour is refused as a likely retry. Do not run two AI apps using the kit on the same folder at the same time.
A swap started with version 0.2.0 or 0.2.1 whose USDC lock never landed can stay at "Waiting for BSV lock" and block new swaps and withdrawals. If no other copy of the kit used the same folder while that swap ran, set PETASATS_RESOLVE_OLD_STUCK_SWAPS=1 in the kit's environment (for example "env":{"PETASATS_RESOLVE_OLD_STUCK_SWAPS":"1"} in your client's server entry) and restart the kit. It then sends a zero-value transaction to its own Base address so the old lock can never land, and marks the swap failed once that transaction is final, usually within 30 minutes. Swaps started with 0.2.2 or later resolve without this setting.
Troubleshooting
busy, limit, rate_limited, unavailable, and declined mean nothing was locked. If keys-file permissions are wrong, restore owner-only access. For RPC trouble, check your network connection and retry.
Release notes
0.2.24:
New
pay_402tool. It pays a BSV pay-per-call web service that uses the HTTP 402 standard BRC-166, such as bsv.cx, from the kit's own BSV. A first call withconfirm: falseshows the price and pays nothing. The kit pays only when you call again withconfirm: trueand amax_satsyou accept. The service itself broadcasts the payment; the kit never does. Two limits in limits.json cap the spending:x402MaxSatsPerCall(default 10,000 sats per payment) andx402MaxSatsPerDay(default 100,000 sats per UTC day, network fees included).withdraw_bsvandclose_kitleave alone any BSV that a pendingpay_402payment still holds, and say until when.pay_402refuses while a swap is running or delivering BSV.Fast settlement: an Anvil status reply without a transaction status no longer counts as one of the two independent ARC answers the kit needs before an early claim. The kit asks WhatsOnChain instead.
A swap that stopped before locking any USDC now says so in its record (
nothingLocked: true).
0.2.23:
New
close_kittool andnpx petasats-mcp@0.2.23 closecommand. They empty the kit into your own wallets, sending USDC first, then BSV, then ETH, and stop the kit once it is empty. They wait for running swaps and pending Base withdrawals, and they never delete the keys.On first start the kit now sets up its wallet in a
PETASATS_HOMEfolder that exists but is empty. Before, it did this only when the folder did not exist yet.The README shows how to install the kit in more AI apps, with one-click buttons for Cursor, VS Code, Kiro, LM Studio and Goose, and gives example requests to start with.
The README shows the kit's score on the Glama MCP directory.
New
buy_gastool, so a kit funded with USDC alone can pay its own Base gas. With your yes, it sells exactly 0.50 USDC of the kit's balance for ETH through one CoW Protocol order, paid to the kit's own address. A CoW Protocol solver settles the order and pays its network fee, so the order itself needs no ETH. While an order could still fill, about 22 minutes after it was signed (longer if this computer's clock is off), USDC withdrawals andclose_kitwait and new swaps are refused.buy_gasitself waits while a Base withdrawal or swap lock is still being confirmed.
0.2.22:
The kit is now released under the MIT License.
A copy of the kit running on a shared server, such as an MCP directory's "Try in Browser", gives quotes only. It refuses every tool that touches keys or money and says to run the kit on your own machine. Set
PETASATS_QUOTE_ONLY=1to get the same behaviour anywhere.The server answers
resources/templates/listwith an empty list, so MCP inspectors no longer log an error.
0.2.21:
The kit no longer shows "claiming" after your BSV has arrived when BSV block headers lag behind.
Before delivering to your address, the kit checks every payout it relays: the transaction and its proof agree, it spends only the claim, and the amount, address and fee are right.
Base data-source checks are bounded at 120 seconds and use fixed reference blocks, so a slow or unusual Base RPC can't stall the kit.
All text now calls the other side "the counterparty."
A Trust model section explains the current 10-hour USDC lock and 12-block BSV window.
0.2.19:
Fixes 0.2.18, which could not complete a swap. It cancelled each network request just after it succeeded, before reading the reply, so every BSV height, block-header and proof read failed with the error "The operation was aborted." Every swap was therefore refused before anything was locked, with a reason that includes "only 0/2 independent source(s)". Do not use 0.2.18.
The kit now reads BSV block heights and headers from three independent sources: Anvil, WhatsOnChain and Project Babbage’s public chaintracks service. Two must agree on a height, and on the header behind a proof. A new swap starts only when two sources are within 3 blocks of the highest height. If a source that is more than 2 blocks past a block reports a different header for it, the proof check fails, however many other sources agree. If one of the three is down, new swaps and proof checks still go ahead. A source that has no header for that block counts as down.
0.2.18:
Before it reveals its secret, the kit now checks two things: the counterparty’s BSV lock is the only one that qualifies, and your USDC is still locked on Base far enough ahead of its refund time to leave the counterparty time to claim it. Until both hold, it keeps waiting, up to a limit. If they cannot hold, it stops without revealing, and your USDC comes back through the refund.
A swap whose Base side has already finished, by a finalized claim or refund (including the counterparty’s cooperative refund), now ends and closes its record instead of waiting.
When the counterparty is briefly busy, its decline now says when to try again. If the wait is short, the kit waits and asks again by itself, after checking that its quote is still valid. Nothing is locked before that.
0.2.17:
If the counterparty backs out after your USDC is locked and before it locks any BSV, it now returns your USDC early with a cooperative refund. The kit recognises that refund once Base finalizes it and reports the swap as refunded, instead of waiting for the timeout.
If the counterparty’s BSV lock arrives late, the kit keeps listening for it while it can still be claimed safely, instead of giving up early.
Shorter windows: the counterparty’s BSV can return about two hours (12 blocks) after lock, and your USDC refunds after about 10 hours (it was about 16) if the swap does not finish.
Security, license, and disclaimer
See SECURITY.md. PetaSats is released under the MIT License; third-party notices are in THIRD_PARTY_NOTICES.md. This is experimental software: use small amounts and there is no warranty.
Available Tools
13 toolsbuy_gasBuy ETH for gas with 0.50 USDCADestructive
Buy a little ETH for Base gas with exactly 0.50 USDC from this kit's own balance, so a kit funded with USDC alone can swap and withdraw. This moves the user's funds: call it only after the user says yes, and tell them the 0.50 USDC comes out of their balance. Each yes covers one purchase. It signs one CoW Protocol order that sells 0.50 USDC for ETH paid to this kit's own Base address; a CoW Protocol solver settles it and pays the network fee, so it works with no ETH in the kit. Refused when the kit already has gas (0.00002 ETH or more), holds less than 0.50 USDC, or spending is stopped. While a Base withdrawal or swap lock is still being confirmed, it is refused for 30 s; call it again then. Each call returns within about a minute; while state is 'pending', call it again after call_again_after_seconds, and call again whenever a result asks you to. Once state is 'filled' or 'expired', or 'rejected' with sold 'nothing', that purchase is over: report it, and ask the user again before another. Calling again never places a new order while an earlier one could still fill. Returns state ('pending', 'filled', 'expired', 'rejected' or 'refused'), with uid, order_url, sold, min_eth and, once filled, eth_received when it is known; or reason.
Inputs: no named parameters.
close_kitEmpty and close the kitADestructive
Empty this kit into the user's own wallets, then stop it: it spends nothing more until the user runs npx petasats-mcp resume in a terminal. This moves funds and cannot be undone: base_address and bsv_address must be addresses the user gave you and confirmed, never this kit's own addresses. Each call takes at most one step and returns at once; call it again after call_again_after_seconds until state is 'closed'. It refuses while a swap is running, naming the swap, or while spending is already stopped for another reason. It sends USDC first, then BSV, then ETH. Only ETH dust that cannot pay its own gas (and, rarely, a BSV amount too small to send) is left behind. It never deletes, prints or sends the kit's keys file; keys_note explains that once closed. Returns state ('refused', 'in_progress' or 'closed'), sent (every send made in this close-down so far), and either reason with an optional retry_after_seconds, did and next with call_again_after_seconds, or closed_at, final and keys_note.
Inputs: bsv_address (required), base_address (required).
fund_walletPlan wallet fundingARead-only
Plan sending BSV to a specific BSV address, paid with this kit's USDC on Base. Read-only: it returns a live quote and the exact swap_asset_to_bsv call (with deliver_to set), but moves nothing. Use it when the BSV should land in another wallet; use get_quote when it can stay in this kit. Fails if the kit could not start that swap now (spending stopped, address refused by limits.json, or over the daily limit). Returns plan, quote (the get_quote fields; valid about 60 seconds), swap_call and non_custodial.
Inputs: amount_in (required), bsv_address (required), from_asset.
get_quoteGet USDC to BSV quoteARead-only
Get a live quote for buying BSV with USDC on Base. Read-only: nothing is locked or spent. Call it before swap_asset_to_bsv and show the quote to the person directing you; it lasts about 60 seconds, and passing its quote_id to swap_asset_to_bsv uses these terms. Returns quote_id, expires_at, usdc_in, bsv_out, est_bsv_received_sats (after the BSV claim fee), rate_usd_per_bsv, market_mid_usd_per_bsv, price_vs_mid_percent, costs and limits. If the counterparty declines (busy or over a limit), the error carries code, retry_after_s and retry_hint. To send the BSV to another wallet, use fund_wallet: the same quote plus the exact swap call.
Inputs: to_asset (required), amount_in (required), from_asset (required).
list_liquidityList liquidityARead-only
List the trading pairs this kit supports and how each one settles. Read-only and offline: a fixed list with no prices or balances; use get_quote for a live price and wallet_info for balances. Today there is one pair, USDC on Base to BSV, settled by an on-chain atomic swap with the counterparty; PetaSats never holds funds. Returns pairs (each with pair, route and note), count, non_custodial and settlement.
Inputs: asset.
pay_402Pay BSV HTTP 402 APIADestructive
Pay a BSV pay-per-call API (HTTP 402, BRC-166) from this kit's own BSV. Call with confirm false to see the price first.
Inputs: url (required), confirm (required), max_sats (required), body, +2 more.
stop_spendingStop spendingAIdempotent
Emergency stop: block new swaps and withdrawals from this kit until the user runs npx petasats-mcp resume in a terminal; no tool can resume it. Use it when the user asks, or when something looks wrong. A swap already started still completes or refunds. Idempotent: calling it again keeps the first stop. Returns stopped: true, at (milliseconds since 1970) and reason, plus already_stopped: true when a stop was already in place.
Inputs: reason.
swap_asset_to_bsvStart USDC to BSV swapADestructive
Buy BSV with this kit's USDC on Base through a non-custodial atomic swap with the counterparty. This moves funds: it locks USDC on Base, so get a quote with get_quote first and confirm it with the person directing you. Pass quote_id (or the quote object) to use that quote's terms, or min_bsv_out as a floor; if the quote has expired, the kit gets a new one and goes ahead only if it pays at least min_bsv_out, or 99% of the old quote. Returns at once with swap_id, stage, expected_minutes and the settlement mode; then call wait_for_swap until done is true. Refused while another swap is in progress or spending is stopped. If a swap cannot finish, the USDC comes back to the kit. speed is the buyer’s explicit choice; standard is the default. Fast mode makes the kit reveal its secret against an unconfirmed BSV lock. If the counterparty double-spends that lock, you can lose the swap amount. It is available only when both sides agree and the amount is at most $25; otherwise the swap waits for one BSV confirmation.
Inputs: amount_in (required), from_asset (required), quote, speed, +3 more.
swap_statusSwap statusARead-only
Show the status of one swap, or of every swap this kit has made. Read-only and instant: it reads the kit's local swap records and changes nothing. Returns swaps, a list (empty when swap_id is unknown). Each entry has swap_id, stage and stage_label, step and steps_total, done, outcome (delivered, settled, refunded or failed), usdc_in, bsv_quoted, bsv_received once settled, deliver_to, eta_minutes, deadlines, txids with explorer links, needs_attention and what_to_do. To wait for the next change, use wait_for_swap rather than calling this in a loop.
Inputs: swap_id.
wait_for_swapWait for swap updateARead-only
Wait until a swap's stage changes or it finishes, then return its status. Read-only: it watches this kit's local swap record while the swap runs in the background. After swap_asset_to_bsv, call it repeatedly until swap.done is true; a swap usually finishes within about an hour. Returns changed (false when the wait ended with no change, which is normal: call again), waited_seconds, and swap, the same view swap_status gives: stage, stage_label, step and steps_total, done, outcome (delivered, settled, refunded or failed), eta_minutes and txids with explorer links. Sends progress notifications when the client supplies a progress token. Use swap_status for an instant read.
Inputs: swap_id (required), max_wait_seconds.
wallet_infoWallet informationARead-only
Show this kit's own wallets: the Base address that pays for swaps, the BSV address that receives them, their balances, and whether spending is stopped. Read-only; never returns key material. Call it first: if the kit has no USDC, tell the user to send it to baseAddress. ETH for Base gas is optional: the user can send a little, or, after their yes, buy_gas buys it with 0.50 USDC. Returns baseAddress, bsvAddress, usdc and eth balances in atomic units, claimedBsvSats, unconfirmedBsvSats (BSV received but not confirmed yet), capUsdPerSwap, spending_stopped (with stopped_at and stop_reason), the limits from limits.json, door_identity, a backup_note when the wallet is new, and gas_topup (status, uid and open (true while the order could still fill; USDC withdrawals, swaps and close_kit wait until it is false)) when the kit has a gas purchase.
Inputs: no named parameters.
withdraw_baseWithdraw Base fundsADestructive
Send USDC or ETH from this kit's Base wallet to another Base address. This moves funds and cannot be undone: use only an address the user gave you, and confirm it with them first. The kit pays the gas in ETH, so withdraw USDC before ETH. Refused while a swap is in progress, while spending is stopped, or when limits.json does not allow the address. Returns asset, amount (atomic and display), to, txid, status and a BaseScan url. Use withdraw_bsv for BSV.
Inputs: to (required), asset (required), amount (required).
withdraw_bsvWithdraw all confirmed BSVADestructive
Send all of this kit's confirmed BSV to one BSV address. This moves funds and cannot be undone: use only an address the user gave you, and confirm it with them first. It always sends the whole confirmed balance, and the network fee comes out of it; there is no partial amount. Refused while a swap or a BSV delivery is in progress, while spending is stopped, or when limits.json does not allow the address. Returns txid and sats sent, or sats 0 with a reason when there is no confirmed BSV. Use withdraw_base for USDC or ETH; to send a new swap's BSV straight to an address, pass deliver_to to swap_asset_to_bsv.
Inputs: address (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Most tools have clearly distinct purposes: quote vs. swap, withdraw_bsv vs. withdraw_base, wait_for_swap vs. swap_status are all explicitly contrasted in their descriptions. The main soft overlap is get_quote/fund_wallet, which both return a quote and exact swap call, though the descriptions distinguish 'BSV stays in kit' vs. 'BSV goes elsewhere'.
Thirteen names are overwhelmingly snake_case verb_noun (get_quote, withdraw_bsv, buy_gas, stop_spending, close_kit). Minor deviations: two noun-phrase names (wallet_info, swap_status) and one three-part verb (swap_asset_to_bsv), which are still readable and unambiguous.
13 tools fall squarely in the well-scoped range for a swap-and-custody kit. Each covers a distinct lifecycle step (quote, swap, status/wait, withdraw, gas, stop, close, pay) with no filler tools.
The full swap lifecycle is covered: quote, execute, poll/wait, status, withdraw on both chains, gas top-up, emergency stop, and teardown via close_kit. The only intentional dead ends are resume-after-stop and key handling, which explicitly require the user's terminal — a documented safety choice rather than a real gap.
Maintenance
Related MCP Connectors
No-account cross-chain crypto swaps (BTC, ETH, SOL, USDT, ZEC…) for AI agents. Flat 0.5% fee.
Non-custodial RFQ and atomic swap settlement for AI agents. Escrow onchain, signed receipts.
Non-custodial cross-chain OTC for AI agents: sealed RFQ, negotiation, HTLC atomic swaps.
Zero-key, non-custodial cross-chain crypto swap aggregator for AI agents: 100+ chains, 15+ providers
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI applications to interact with the Base blockchain network, allowing wallet management, smart contract deployment, token transfers, NFT operations, DeFi interactions with Morpho vaults, and onramping funds via Coinbase.26 npm-
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI applications to interact with the Base Network blockchain and Coinbase API for onchain operations including wallet management, fund transfers, smart contract deployment, NFT handling, DeFi lending through Morpho vaults, and crypto onramping.26 npm-
- AlicenseAqualityDmaintenanceMCP server providing cross-chain swaps between Solana and Base for AI agents paid for via x402 micropayments.378 npm2MIT

Grip MCPofficial
AlicenseAqualityDmaintenanceProvides a non-custodial USDC wallet on Base for AI agents, with human-in-the-loop approval for every payment.45 npmMIT