DefiLlama
DefiLlama provides public DeFi data for protocols, chains, token prices, stablecoins, yields, volumes, fees, and open interest.
Integration
- Vendor
- DefiLlama
- Category
- developer-tools
- Auth
- NONE
- Tools
- 21
- Composio slug
defillama
Tools
- Get Batch Historical Token Prices
Get prices for multiple token identifiers at multiple requested Unix timestamps in one call.
- Get Block By Timestamp
Get the closest block height on a chain for a Unix timestamp.
- Get Current Token Prices
Get current USD prices and available confidence scores for comma-separated chain:address or coingecko:id tokens.
- Get First Token Prices
Get the earliest available price record for one or more token identifiers.
- Get Historical Token Prices
Get token prices nearest one Unix timestamp for comma-separated token identifiers.
- Get Historical TVL
Return a bounded window of historical DeFi TVL across all chains or for one chain, excluding liquid staking and double-counted TVL.
- Get Metric Overview
Get global or per-chain DEX volume, fees/revenue, open interest, or options volume totals, windowed protocol rankings, and optional historical charts.
- Get Protocol
Get a protocol's profile, current TVL by chain, and windowed historical TVL and token breakdowns. Use chain_filter to select a chain-specific history source; omit it for aggregate history.
- Get Protocol Current TVL
Get the current total value locked in USD for one protocol.
- Get Protocol Metric Summary
Get one protocol's metadata, historical charts, and totals for the selected DEX volume, fees/revenue, or options volume metric.
- Get Stablecoin
Get one stablecoin's metadata, current balances by chain, and a bounded window of aggregate or chain-specific balance history. Use chain_filter to select a chain series; omit it for aggregate history.
- Get Stablecoin Price History
Get historical prices for all tracked stablecoins. DefiLlama returns the full series upstream; this tool returns a bounded local window that can be continued with next_offset.
- Get Stablecoins Chart
Get windowed historical stablecoin market capitalization across all chains or for one chain, optionally filtered to one stablecoin ID.
- Get Token Price Chart
Get bounded windows of regular-interval price series for one or more token identifiers over the requested time range.
- Get Token Price Percentage Change
Get percentage price changes for token identifiers over a requested period before or after a timestamp.
- Get Yield Pool Chart
Get historical APY and TVL points for one yield pool ID. This free endpoint is deprecated and will shut down soon; DefiLlama's paid replacement is /yields/v1/chart/{pool}. The provider returns the full series upstream, so this tool returns
- List Chains TVL
List supported chains with current TVL and native-token identifiers in a bounded local window that can be continued with next_offset.
- List Protocols
List DeFi protocols with identifiers, categories, chains, current TVL, and recent TVL changes. DefiLlama returns the full collection upstream; this tool returns a bounded local window that can be continued with next_offset.
- List Stablecoin Chains
List chains with current aggregate stablecoin market capitalization in a bounded local window that can be continued with next_offset.
- List Stablecoins
List stablecoins with IDs, peg metadata, circulating amounts, and optional current prices. DefiLlama returns the full collection upstream; this tool returns a bounded local window that can be continued with next_offset.
- List Yield Pools
List yield pools with pool IDs, project, chain, tokens, TVL, APY components, and prediction fields. This free endpoint is deprecated and will shut down soon; the same data remains available from `/yields/v1/pools` on the DefiLlama API plan.
Setup
- Create or open a Switchy Project.
- Open Integrations and connect DefiLlama.
- Authorise through none. Switchy stores the connection against your org.
- Everyone in the Project can now @-mention the DefiLlama tools in chat.
What teammates see: by default, memories from DefiLlama are scoped to the Project (PROJECT visibility) - you can mark any memory PRIVATE or share it ORG-wide.
Works well with
Top models
Compatibility data appears once enough Projects have used this MCP together with a given model.