BTB Finance for agents

BTB Finance for AI agents

One MCP server for DeFi. Your agent finds it, reads it, and builds the transaction.

Add one URL to Claude, ChatGPT, Cursor or your own agent. It gets 44 tools: live liquidity pools across chains, official contracts for 157 protocols (1675 contracts on 58 chains), the ABI of any contract, and ready-to-sign transactions with a dry run. Your agent keeps its own wallet.

https://btb.finance/api/mcp
Connect your agentTry the toolsBrowse protocols

How it works

1. Find

Live pools with risk grades, official protocol contracts per chain, and any contract’s functions.

2. Read

Balances, positions, prices and settings from any contract, decoded. Free, nothing is sent.

3. Build

Unsigned swaps, LP deposits and any contract call, with approvals in order and a dry run.

4. Sign

Your agent signs with its own wallet. BTB never holds keys or funds.

The tools

Read straight from the server, so this list is always what agents get.

Yield, lending & staking

lending_ratesLive supply APYs for lending a token on Aave, Compound, Morpho, Spark, Euler, Fluid, Moonwell, Venus and more, per chain, best first, with TVL and the 30-day average. Filter by token (symbol or address, "stable" for all stablecoins), chain and protocol. Use it for "where do I earn most on my USDC" and before suggesting any lending; never guess a rate.
staking_ratesWhat ETH earns staked through each liquid-staking token (Lido stETH/wstETH, ether.fi weETH, Rocket Pool rETH, Coinbase cbETH, Binance wBETH, Kelp, Renzo...), best first, with TVL and the 30-day average. Use it for "where do I get the best staking APR" and to add the staking yield to pools that hold these tokens.
compare_yieldEvery place to earn on a token, side by side, from BTB's own index: lending (Aave V3 read from its contracts, Compound, Fluid, Euler, Spark, Moonwell, Venus), Morpho vaults (only listed ones, with address and curator), savings, ETH staking and stable-pair liquidity pools. Ranked by base yield, with rewards apart, 1-day/7-day/30-day rates, a stability flag, TVL, the contract to deposit into and the tool that builds the deposit. Prefer it over lending_rates.

Pools & research

top_poolsRank live liquidity pools by APR, TVL, 24h volume or 24h fees, filtered by chain, risk grade, TVL and stable pairs. Returns each pool with its risk grade and a btb.finance link.
search_poolsFind pools by token symbols ("ETH USDC"), a token address, or a DEX name ("aerodrome"). Sorted by TVL.
pool_detailsEverything about one pool: TVL, APRs (measured range APR, base, rewards), volume, fees, in-range share, result against holding, both tokens' safety scans, the risk grade with each deduction, and the btb.finance link.
compare_poolsCompare 2 to 6 pools side by side (APR, TVL, fees, risk with reasons, stable or not) and say which leads on each measure.
best_pools_forThe highest-APR pools that can take a position of this size without it being more than 2 % of the pool (TVL at least 50× the amount).
chain_summaryPer chain: pool count, total TVL, median APR and TVL-weighted APR (all pools, and stable pairs only).
estimate_lp_earningsWhat an amount in one pool might earn over a number of days, from its APR and from its last 24 hours of fees, with the caveats.
lp_planSplit an amount across several pools on different pairs (at most one pool per pair, no more than 2 % of any pool), within a risk limit, with expected yearly earnings and the cost of auto-management. A starting point for the user to review, not advice.
token_balanceOne wallet's balance of one token on one chain, in a single read (well under a second): token is "native" for the gas coin, a symbol (USDC, WETH, BTB) or a contract address. With the USD value when the price is known.
wallet_overviewStart here when someone asks about their portfolio (EVM or Solana address). One call: net worth across BTB's protocols (about 36 chains), liquidity pools and the wallet's own tokens, each counted once; warnings that need attention (Aave health factor low, pools out of range); and opportunities (idle stablecoins earning nothing, vaults well below the best rate on their chain), each with the yearly gain (on 7-day average rates, only into markets big enough to take the amount) and the exact build tool calls to act. Includes a one-line headline to show the person. Public on-chain data, read-only. Takes about 5 to 25 seconds.
wallet_portfolioWhat a wallet holds across the protocols BTB supports, on every EVM chain they run on (about 36), or on Solana for a Solana address (SOL, tokens, Jupiter, Meteora, STKESOL, Pump coins and Pump creator fees to claim): Aave supplied and borrowed with the health factor, Morpho and other vault shares with the underlying, liquid staking and restaking (Lido, Rocket Pool, Renzo, Origin, StakeStone), Ethena, Sky, Usual, Maple, Falcon, Inverse, Olympus and more, stablecoins and protocol tokens. Grouped by protocol with USD values, totals by kind, and which chains were scanned. LP positions are in wallet_positions. Public on-chain data, read-only; cached a minute.

Tokens & prices

token_safetyThe newest btb.finance safety scan of a token (score 0-100, honeypot, taxes, owner powers), if one ran in the last 24 hours, else a link to run one.
find_tokenA token's contract address on one chain, by symbol, name or address, with decimals and USD price: first the swap catalog btb.finance uses (verified tokens first), then any token trading on a DEX (most liquid first). Use it before quoting, swapping or reading a balance; never write a token address from memory. "ETH" is the native coin.
quote_swapA live quote at the best KyberSwap route, after the 1% BTB fee: what an amount of one token gets of another, both sides in USD, rate, price impact, gas, and a warning when the pool is thin for the size. Read-only; use build_swap to get the transactions, or give the swapLink to a person.
quick_token_checkA free basic safety check of any token (GoPlus): honeypot, buy and sell tax, owner can mint or change balances, blacklist, pausable transfers, proxy, verified source, holders. Use it when token_safety has no recent scan; it is not as deep as a btb.finance scan.

Wallets & positions

wallet_positionsEvery LP position a wallet holds on Ethereum, Base, BNB Chain, Robinhood Chain and Arc (Uniswap V3/V4, PancakeSwap, Aerodrome, Aero, Giga, Ramses, UP, SushiSwap, Alandale), including the ones in its BTB smart wallets: pair, amounts, USD value, in range or not, price range, uncollected fees, staking, auto-management, and PnL when available. Public on-chain data, read-only. Takes up to about 20 seconds.
auto_manage_statusThe LP positions a wallet has under BTB auto-management (automatic range resets and fee compounding): status, last in-range check, rebalances, costs and BTB balance. Read-only, public data.
auto_manage_setupHow BTB auto-management works, what it costs on each chain, and the link where the user turns it on for a position with their own wallet.
wallet_tokensThe tokens a wallet holds, read from chain now, on Ethereum, Base, BNB Chain, Arbitrum, Optimism, Polygon, Unichain and Robinhood Chain (or one chain), with USD values, newest-listed tokens included. Pass search (a symbol, name or address) to find one token across chains, e.g. before "sell all my X". Public data, read-only. Takes up to about 15 seconds.
tx_statusWhether a transaction confirmed or failed, its fee, and the tokens that moved in and out of the sending wallet. Use it after a person signs (they can paste the hash, or the sign page shows it).

Build transactions

add_liquidity_linkA btb.finance link that opens the Add-liquidity flow for a pool, where the user picks the amount and range and signs in their own wallet. Says whether the app can add to this pool directly.
build_lendLend a token on Aave V3, or Aave V4 with protocol "aave-v4" (the Core markets on ethereum and avalanche): the exact approval only if needed, then the supply, as ONE signLink for the person, with the live supply APY, what the amount earns a year, the wallet's health factor (V3) and a dry run. Use this, not build_tx, for Aave deposits.
build_withdrawTake a lent token back from Aave V3, as a signLink for the person: how much is supplied, how much can be withdrawn right now, the health factor (if the wallet borrows) and a dry run. amount "max" takes everything including interest.
build_zap_liquidityOpen a concentrated-liquidity position using only ONE of the pool's tokens: swaps the right share into the other token at the best price, then deposits both for the chosen range, as ONE signLink (swap, approvals, deposit). A small safety margin of the other token is left in the wallet. Same pools as build_add_liquidity (Uniswap V3, PancakeSwap V3, Aerodrome Slipstream and the V3 forks btb.finance supports).
sign_statusAfter giving a person a btb.finance/sign link: which steps they have signed and whether each confirmed on chain, with the hashes and the tokens that moved. Each reported hash is checked on chain (sent from the link's wallet, to the step's contract). Call it when they say they are done, instead of asking for hashes.
build_pump_claimFor a Pump coin creator's Solana wallet: one unsigned transaction that claims every creator fee waiting for it, from the bonding curve and from PumpSwap (unwrapped to SOL), with the amount, a dry run on Solana, and the transaction to sign. Free: BTB takes no fee on claims. The transaction expires about a minute after it is built. wallet_portfolio shows the fees before claiming.
build_pump_launchLaunch a new coin on Pump (Solana) from the creator's wallet: one transaction that creates the coin, sets the creator-fee split (BTB keeps a share of creator fees on coins launched through BTB; the creator gets the rest), and optionally makes the creator's first buy in the same transaction so nobody can buy before them. Returns the new mint address, the split, a dry run on Solana and the transaction, already signed by the new coin's mint key; the creator's wallet signs as fee payer and must send it within about a minute without changing the blockhash. Send the coin's picture (imageUrl or imageBase64), description and optional links, and BTB pins them to IPFS; or pass metadataUri if you host it yourself. No picture to send (for example one drawn in the chat, which a tool call cannot carry)? Leave it out and BTB makes a simple logo from the ticker. Cost: about 0.02 to 0.03 SOL plus the first buy. Most new coins lose almost all their value.
build_token_launchLaunch a new coin from the creator's wallet on an EVM launchpad, with BTB's share of fees built in where the launchpad allows it. launchpad: clanker (Base, BNB Chain, Robinhood Chain or Monad; Uniswap v4 pool with a 1-10% buy/sell tax; BTB is the integrator and keeps a share of the creator's part of the tax; claim with build_launch_claim), zora (Base; 1% pool fee, creator 0.5% of each trade, BTB 0.2% as platform referrer, paid automatically), pons (Robinhood Chain bonding curve, 0.0005 ETH launch fee, optional extra creator tax up to 10%; Pons pays creator fees to one address so BTB takes no share; optional first buy in the same transaction), flap (BNB Chain bonding curve tax token, 1-10% tax paid to the creator; BTB is the commission receiver; optional first buy). Send the picture (imageUrl or imageBase64), description and links; BTB pins them. No picture to send (for example one drawn in the chat, which a tool call cannot carry)? Leave both out and BTB makes a simple logo from the ticker. Returns the coin address, the fee split, a dry run, the transaction and a sign link. Pump on Solana is build_pump_launch. Most new coins lose almost all their value.
build_btbBTB's own products on Ethereum, each as a sign link with a dry run. Bears: bear_status (Bears held and staked, BTBB waiting, mint price), bear_mint (count; ETH price read live; 1,000 XP per Bear on btb.finance), bear_stake (all Bears in the wallet or count; approval included once), bear_unstake (count), bear_claim (BTBB rewards: every BTBB transfer pays 1% to staked Bears). Tokens: btbb_wrap and btbb_unwrap (BTB to BTBB 1:1 and back), wrap and unwrap (BTB into the token used in BTB's pools, 1 to 1,000,000, and back; trades of it pay 1% into the Friday pot), flip_up (USDC into FLIP) and flip_down (FLIP into USDC).
build_launch_claimFind a creator's unclaimed fees on Clanker (Base, BNB Chain, Robinhood Chain, Monad) and Pons (Robinhood Chain) and build the claim transactions, one per chain, each with a dry run. Zora and Flap pay creators automatically. Claiming through BTB is free. Pump on Solana is build_pump_claim.
build_bridgeSell a token on one chain and receive any token on another chain (e.g. USDC on Base to ETH on Ethereum), through LI.FI's best bridge and DEX route: an exact approval if needed, then the bridge transaction, as ONE signLink, with what arrives (and the minimum), fees, gas, the estimated time and a dry run. Tokens arrive in the same wallet. Use find_token for each token on its own chain first.
bridge_statusWhether a cross-chain transfer (from build_bridge or any LI.FI route) arrived: pending, done with the receiving transaction and amount, or failed. Give the source transaction hash (sign_status shows it).
build_vault_depositDeposit into a Morpho vault (V1 or V2, any ERC-4626 vault Morpho knows): the exact approval only if needed, then the deposit, as ONE signLink, with the shares you get and a dry run. Fast: no contract lookup. Get the vault address from compare_yield.
build_vault_withdrawTake tokens back from a Morpho vault (V1 or V2): an amount, or "max" to redeem every share including interest, as a signLink, with what the position is worth, what can be withdrawn right now and a dry run.
build_swapA swap ready to sign: the best KyberSwap price on that chain, an exact-amount approval if needed, then the swap, with the quote, price impact, BTB fee, a safety grade for the token bought and a dry run. For a person, give them the signLink (opens btb.finance with the steps to sign in their wallet); an agent with its own wallet can sign the transactions itself. Use this, not just quote_swap, whenever someone wants to swap.
build_add_liquidityFor agents with their own wallet: the unsigned transactions to open a concentrated-liquidity position in a pool (exact-amount approvals if needed, then the mint), sized from an amount of one of its tokens, with the matching amount of the other token, the range, wallet balances and a dry run. Works for Uniswap V3, PancakeSwap V3, Aerodrome Slipstream and the V3 forks btb.finance supports; other pools return a link. Nothing is signed or sent.
build_txTurn contract calls into transactions to sign, with a dry run and warnings. When an action needs an approval first (lend on Aave, stake, deposit), pass steps: [approve on the token, then the action] in ONE call so the person gets ONE signLink for both; never build them as separate calls. Single call: address and function. Details: encode any write function of any contract into an unsigned transaction, with a dry run from the wallet, a gas estimate and warnings (unverified ABI, admin-only, arbitrary calls, proxies, unlimited approvals). Prefer build_swap and build_add_liquidity where they apply: they add the protocol math and approvals. Nothing is signed or sent.

Protocols

list_protocolsDeFi protocols BTB has researched for agents (stablecoin issuers, DEXes, lending, staking, prediction markets, perps…), filterable by category, chain or text: name, category, chains, how agents access it (on-chain or API) and how many contracts and APIs are recorded.
get_protocolOne protocol from the BTB registry: its official contract addresses per chain (each with the official page it came from), the functions an agent would call, off-chain APIs, supported actions and risks. Then use get_abi / read_contract / build_tx on its contracts.

Any contract

get_abiWhat any contract can do: its functions with signatures, inputs, outputs, read or write, and warning flags (admin-likely, arbitrary-call). From verified source on Sourcify, or decoded from the deployed bytecode when unverified; proxies are followed to their implementation. Works on any chain BTB has an RPC for.
read_contractCall a read (view/pure) function on any contract and get the decoded result: balances, prices, positions, settings. Free, nothing is sent.

Protocols with official contracts

Every address comes from the protocol’s own docs or GitHub, linked next to it. More are added every week.

3Jane Lending

Uncollateralized Lending · 4 contracts

Aave Horizon RWA

Lending · 1 contracts

Aave V2

Lending · 4 contracts

Aave V3

Lending · 61 contracts

Aave V4

Lending · 7 contracts

Aera V3

Onchain Capital Allocator · 7 contracts

Aero

Dexs · 13 contracts

Arbitrum Bridge

Canonical Bridge · 6 contracts

Arrakis Modular

Liquidity Manager · 12 contracts

Aster USDF

Stablecoin · 4 contracts

Avant

Stable Value · 4 contracts

Babylon Protocol

Restaking · 0 contracts

Base Bridge

Canonical Bridge · 3 contracts

Bedrock uniBTC

Bitcoin Liquid Staking · 9 contracts

Beefy Finance

Yield Aggregator · 23 contracts

Benqi Lending

Lending · 5 contracts

Benqi Staked AVAX (sAVAX)

Liquid Staking · 1 contracts

Binance Bitcoin (BTCB)

Bridge · 1 contracts

Binance Staked ETH (WBETH)

Liquid Staking · 2 contracts

Binance Staked SOL

Liquid Staking · 2 contracts

Bitflow

Dexs · 9 contracts

BTB Smart Account

Liquidity Manager · 16 contracts

BTB

Yield · 9 contracts

Bybit Staked SOL

Liquid Staking · 3 contracts

Cap (cUSD, stcUSD)

Stablecoin · 2 contracts

Chainlink

Oracle · 39 contracts

CIAN Yield Layer

Yield Aggregator · 1 contracts

Circle

Stablecoin Issuer · 113 contracts

Clanker

Launchpad · 25 contracts

Coinbase Wrapped Staked ETH (cbETH)

Liquid Staking · 0 contracts

Compound V2

Lending · 26 contracts

Compound V3

Lending · 18 contracts

Concrete

Onchain Capital Allocator · 0 contracts

Convex Finance

Yield · 4 contracts

Curvance

Lending · 3 contracts

Curve DEX

Dexs · 37 contracts

Curve LlamaLend

Lending · 6 contracts

DeFi Saver

Smart Wallet · 11 contracts

Derive

Derivatives · 5 contracts

DFDV Staked SOL

Liquid Staking · 3 contracts

Drift Staked SOL

Liquid Staking · 3 contracts

EigenLayer (EigenCloud)

Restaking · 21 contracts

ENS (Ethereum Name Service)

Domains · 14 contracts

Ethena

Basis Trading · 41 contracts

ether.fi Liquid

Onchain Capital Allocator · 8 contracts

ether.fi Stake

Liquid Staking · 4 contracts

Euler V2

Lending · 15 contracts

Falcon Finance

Basis Trading · 13 contracts

Fluid DEX

Dexs · 8 contracts

Fluid Lending

Lending · 21 contracts

Flying Tulip

Basis Trading · 18 contracts

Forward Industries Staked SOL

Liquid Staking · 3 contracts

Fragment

NFT Marketplace · 0 contracts

Frax Finance

Stablecoin and Liquid Staking · 12 contracts

GAIB

RWA · 9 contracts

Gamma Strategies

Liquidity Manager · 10 contracts

GMX

Derivatives · 12 contracts

Grove Finance

Onchain Capital Allocator · 8 contracts

Harvest Finance

Yield Aggregator · 4 contracts

Huma Finance

RWA · 4 contracts

HyperLend Pooled

Lending · 3 contracts

Hyperliquid

Derivatives · 4 contracts

HyperSwap

Dexs · 12 contracts

ICHI

Liquidity Manager · 14 contracts

Immunefi

Services · 3 contracts

Inverse Finance

CDP · 32 contracts

Jito Liquid Staking

Liquid Staking · 3 contracts

Jupiter Aggregator

DEX Aggregator · 2 contracts

Jupiter Lend

Lending · 3 contracts

Jupiter Perpetual Exchange

Derivatives · 2 contracts

Jupiter Staked SOL

Liquid Staking · 1 contracts

JustLend sTRX

Liquid Staking · 1 contracts

JustLend V1

Lending · 3 contracts

Kamino Lend

Lending · 1 contracts

Kelp DAO

Liquid Restaking · 5 contracts

Kinetiq kHYPE

Liquid Staking · 4 contracts

Kittenswap Finance

Dexs · 15 contracts

KyberSwap Aggregator

DEX Aggregator · 14 contracts

Lagoon

Onchain Capital Allocator · 12 contracts

LayerZero V2

Bridge · 7 contracts

Lido

Liquid Staking · 34 contracts

Lighter

Derivatives · 3 contracts

Liquid Collective

Liquid Staking · 11 contracts

Liquity V1 (LUSD, Stability Pool)

CDP · 6 contracts

Liquity V2

CDP · 26 contracts

Lista Lending

Lending · 2 contracts

Lista Liquid Staking (slisBNB)

Liquid Staking · 1 contracts

Lombard LBTC

Restaked BTC · 4 contracts

M0

Stablecoin Issuer · 12 contracts

Maple Finance

Lending · 28 contracts

Marinade Liquid Staking

Liquid Staking · 3 contracts

Marinade Native

Staking · 1 contracts

Mellow Core Vaults

Onchain Capital Allocator · 3 contracts

Meteora DAMM V1

Dexs · 4 contracts

Meteora DLMM

Dexs · 1 contracts

mETH Protocol

Liquid Staking · 7 contracts

Morpho

Lending · 51 contracts

Obol

Staking Pool · 3 contracts

Olympus DAO

Reserve Currency · 23 contracts

OnRe

RWA · 2 contracts

Optimism Bridge

Canonical Bridge · 4 contracts

Orca Whirlpools

Dexs · 1 contracts

Origin Protocol

Liquid Staking · 24 contracts

PancakeSwap AMM V3

Dexs · 5 contracts

Pendle

Yield · 44 contracts

Phantom Staked SOL

Liquid Staking · 3 contracts

Polygon Bridge

Canonical Bridge · 1 contracts

Polymarket

Prediction Market · 12 contracts

Portal

Bridge · 8 contracts

Pump

Launchpad · 3 contracts

Raydium AMM

DEX · 1 contracts

Re

RWA · 9 contracts

Renzo

Liquid Restaking · 27 contracts

Reservoir Protocol

Stablecoin Issuer · 14 contracts

Robinhood Chain Bridge

Canonical Bridge · 5 contracts

Rocket Pool

Liquid Staking · 19 contracts

Sanctum Infinity

Dexs · 1 contracts

Sanctum Validator LSTs

Liquid Staking · 2 contracts

Saturn

Stablecoin Wrapper · 14 contracts

Shift Protocol

Onchain Capital Allocator · 8 contracts

Sierra Protocol

Yield · 4 contracts

Sky (formerly MakerDAO)

CDP · 20 contracts

Solstice

Stablecoin · 4 contracts

SolvBTC

Bridge · 2 contracts

Spark Savings

Yield · 2 contracts

SparkLend

Lending · 3 contracts

SSV Network

Staking · 4 contracts

StackingDAO

Liquid Staking · 13 contracts

Stader

Liquid Staking · 5 contracts

Stake DAO

Yield Aggregator · 4 contracts

StakeStone

Liquid Staking · 15 contracts

StakeWise V3

Liquid Staking · 9 contracts

Stargate V2

Bridge · 23 contracts

stHYPE

Liquid Staking · 2 contracts

STKESOL by SOL Strategies

Liquid Staking · 3 contracts

SUNSwap V2

Dexs · 5 contracts

Symbiotic

Restaking · 7 contracts

tBTC

Bitcoin Bridge · 3 contracts

Tether

Stablecoin Issuer · 17 contracts

Theo Network (thUSD and thBILL)

RWA · 2 contracts

Turbos Finance

Dexs · 7 contracts

Tydro on Ink

Lending · 1 contracts

UNCX Network V2

Token Locker · 6 contracts

Uniswap

Dexs · 96 contracts

up.

Dexs · 10 contracts

Upshift

Onchain Capital Allocator · 4 contracts

USD.AI

RWA · 2 contracts

USDD

CDP · 29 contracts

USDT0

Bridge · 8 contracts

Usual USD0

RWA · 17 contracts

Veda

Onchain Capital Allocator · 0 contracts

Venus Core Pool

Lending · 7 contracts

vfat.io Sickle

Yield Aggregator · 12 contracts

WBTC (Wrapped Bitcoin)

Bridge · 5 contracts

Yearn Finance V3

Yield Aggregator · 9 contracts

Yield Basis

Leveraged Farming · 14 contracts

Yield Yak

Yield Aggregator · 3 contracts

Safe by design