Loading TorrentSwap…
Loading TorrentSwap…
For AI agents and developers
Give any AI assistant or app the ability to swap 39 assets across 17 networks: a remote MCP server and a REST API, no API key, no account, and a flat 0.5% fee included in every quote.
MCP server URL
https://torrentswap.com/mcp
Add TorrentSwap as a remote MCP server. No authentication is required.
Settings → Connectors → Add custom connector Name: TorrentSwap URL: https://torrentswap.com/mcp
claude mcp add --transport http torrentswap https://torrentswap.com/mcp
Settings → Apps & Connectors → Developer mode → Create MCP server URL: https://torrentswap.com/mcp Authentication: none
{
"mcpServers": {
"torrentswap": { "url": "https://torrentswap.com/mcp" }
}
}Then ask, for example: “Swap 0.05 BTC to ETH and send it to my address 0x…”. The assistant quotes, shows you the protocol and amount, confirms your addresses and gives you the deposit address to pay from your own wallet.
| Tool | What it does |
|---|---|
| list_assets | Every swappable asset with the id to use in quotes (bitcoin-btc, ethereum-eth, tron-usdt, zcash-zec…). |
| get_quote | Live routes ranked by amount received: executing protocol, expected and minimum receive, time, and a quoteToken. |
| validate_address | Checks an address, including its checksum, for the network of an asset before a swap is created. |
| create_swap | Turns a quoteToken plus destination and refund addresses into a one-time deposit address and a swapId. |
| get_swap_status | Follows a swap from awaiting deposit through exchanging and sending to completed or refunded. |
Same flow over plain HTTPS, with CORS enabled. Import the OpenAPI spec into GPT Actions, LangChain or any OpenAPI-aware framework.
# 1. Quote (read-only). All fees, including the 0.5% TorrentSwap fee, are included.
curl "https://torrentswap.com/api/v1/quote?from=bitcoin-btc&to=ethereum-eth&amount=0.05"
# 2. Create the swap from the chosen route's quoteToken (valid ~2 minutes)
curl -X POST https://torrentswap.com/api/v1/swap \
-H "Content-Type: application/json" \
-d '{"quoteToken":"v2…","destinationAddress":"0xYourEthAddress","refundAddress":"bc1qYourBtcAddress"}'
# → { "depositAddress": "…", "expiresAt": "…", "swapId": "…", "payment": { … } }
# 3. The user sends exactly sellAmount to depositAddress, then poll:
curl "https://torrentswap.com/api/v1/status?swapId=…"Yes. Connect any MCP-capable assistant to https://torrentswap.com/mcp, or call the REST API. The agent quotes, confirms the addresses with the user and creates a deposit address; the user then sends the funds from their own wallet. The agent never needs a private key.
No. The MCP server and the REST API are open. Requests are rate-limited per IP: 60 quotes per minute, 30 swap creations per 5 minutes and 120 status checks per minute. Contact us for higher limits.
A flat 0.5% fee for API and agent swaps, already included in every quoted amount together with network and protocol fees. There is no subscription and no per-request charge.
Bitcoin, Ethereum, Solana, Tron, BNB Chain, Arbitrum, Base, Optimism, Polygon, Avalanche, Litecoin, Dogecoin, Bitcoin Cash, Dash, Zcash, NEAR and Cardano, with stablecoins where available. /api/v1/assets returns the live list.
Open cross-chain protocols such as NEAR Intents, Chainflip and Flashnet. Every quote names the protocol, and routes are ranked by what the user receives.
Agent and API swaps always use the flat 0.5% fee. The fee is fixed when the quote is issued and sealed into the quote token, so it cannot change between quote and swap.
Add https://torrentswap.com/mcp as an MCP connector and ask for a quote. Or start a swap on the website.