defi_revenue_ranking
Pack: defillama · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/defi_revenue_ranking for the schema, then POST the same URL with its arguments for the data.
Rank DeFi protocols by revenue (or fees) over the last 24h, 7d or 30d, with the change versus the prior period. Answers “top DeFi protocols by 30-day revenue” and “which protocols’ revenue grew most”. Filter by category (e.g. “Dexs”, “Lending”, “Liquid Staking”) and/or chain. Each row: protocol slug, category, chains, revenue for the period, prior-period revenue, percent change, 24h/7d/30d totals and all-time total (USD). Source: DefiLlama, fees and revenue dataset. Pass a returned slug to defi_protocol_fees for the daily series.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
data_type | string | no | Rank by revenue (default) or gross fees. |
period | string | no | Window to rank on. Default “30d”. |
sort_by | string | no | ”value” (default) ranks by period revenue; “change” ranks by percent change vs the prior period (protocols with under $10k prior-period revenue excluded). |
category | string | no | Category filter, case-insensitive, e.g. “Lending”, “Dexs”. |
chain | string | no | Chain filter, case-insensitive, e.g. “Ethereum”, “Solana”. |
limit | number | no | Rows to return, 1-100. Default 20. |
Example call
Arguments
{
"period": "30d",
"limit": 10
}
curl
curl -X POST https://gateway.pipeworx.io/defillama/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"defi_revenue_ranking","arguments":{"period":"30d","limit":10}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('defi_revenue_ranking', {
"period": "30d",
"limit": 10
});
More examples
{
"period": "30d",
"category": "Lending",
"sort_by": "change",
"limit": 5
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the defillama pack
{
"mcpServers": {
"defillama": {
"url": "https://gateway.pipeworx.io/defillama/mcp"
}
}
}
See Getting Started for client-specific install steps.