Compare DeFi yields and protocol health from Cursor
Cursor speaks MCP natively as of v0.42. Once Hive is installed via mcp.json, Cursor can call get_yields_pools and get_protocol_tvl across DefiLlama and Beefy in a single conversation — returning APY, TVL, chain, asset composition, and a derived APY×TVL score for sortability. This lets a developer prototyping a yield agent ask 'find me 5 USDC pools with TVL over $100M and APY over 6%' and get a ranked answer inline. CoinGecko MCP and Moralis Cortex don't aggregate protocol-wide DeFi yields; agents using those would have to call DefiLlama's REST surface separately and reconcile schemas.
Client: Cursor · Use case: DeFi yield research
Hive tools used
get_yields_pools— Returns DefiLlama yield-pool data with APY, TVL, chain, asset composition, and pool stability indicators.get_protocol_tvl— Protocol-wide TVL with chain breakdowns, time-series, and category classification (lending, AMM, restaking, etc.).analyze_coin— Per-token briefing including DeFi presence, top pools, and integration-protocol context.
Steps
- Add Hive to your Cursor mcp.json
Open Cursor Settings → Extensions → MCP. Click Add and paste the Hive snippet. Cursor reloads the MCP runtime within seconds.
{ "mcpServers": { "hive": { "command": "npx", "args": ["-y", "hive-intelligence@latest"], "env": { "HIVE_API_KEY": "YOUR_HIVE_API_KEY" } } } } - Confirm the tool surface in chat
Open Cursor chat (Cmd-L), type "list available Hive tools". Cursor reflects the full tool catalog. If the list is short, the MCP install is incomplete — re-check the mcp.json env block.
- Ask Cursor to rank yield pools
Cursor formulates the right tool calls automatically. For example, "find USDC yield pools with TVL over $100M and APY over 6%" makes it call get_yields_pools, filter, sort, and return a structured table.
- Drill into a specific protocol
Once a pool catches your eye, ask "what's the protocol TVL trend for {protocol} over the last 90 days?" — Cursor calls get_protocol_tvl and reports the trajectory, flagging concentration risk if dominant chain TVL is over 70%.
- Generate yield-agent code from the conversation
Because you're in Cursor, you can ask it to "write a TypeScript function that calls Hive get_yields_pools, filters by APY > 6 and TVL > 100M, and returns the top 10 sorted by APY×TVL." Cursor writes the function with the correct Hive REST signature and example output.
Example prompt
Find me 5 USDC yield pools across all chains with TVL over $100M and APY over 6%, ranked by APY×TVL. Include chain and protocol name.
Sample synthesized output
I queried Hive\'s get_yields_pools for USDC pools (fetched_at: 2026-05-03T14:31:02Z):
| Rank | Protocol | Chain | APY | TVL | APY×TVL |
|------|----------|-------|-----|-----|---------|
| 1 | Aave v3 USDC | Ethereum | 6.4% | $1.2B | 76.8M |
| 2 | Compound v3 USDC | Base | 7.1% | $480M | 34.1M |
| 3 | Morpho USDC | Ethereum | 6.8% | $310M | 21.1M |
| 4 | Aave v3 USDC | Polygon | 6.2% | $230M | 14.3M |
| 5 | Spark USDC | Ethereum | 7.4% | $180M | 13.3M |
Want me to drill into one — TVL trend, top depositors, or rate history?Related glossary terms
Related recipes
See also
- All recipes — every Hive × AI client combination
- Hive for AI agents — install paths and capability overview
- Comparisons hub — Hive vs alternatives