DeFi Rates MCP Server
The DeFi Rates MCP Server provides AI agents with real-time access to DeFi lending data, rates, and on-chain events across 14+ protocols and multiple blockchains (Ethereum, Arbitrum, Base, BSC, Solana, HyperEVM, Optimism, Polygon, Avalanche, Gnosis).
Key capabilities:
Query real-time lending rates - Get current borrowing and supply rates across major protocols (Aave, Morpho, Compound, Venus, Lista, Spark, Euler, Drift, Jupiter, HypurrFi, and more)
Find best rates - Search for lowest borrow rates or highest supply yields for specific assets across all platforms and chains
Search earn/vault products - Access single-asset yield products like Spark stUSDS, Morpho Vaults, and other deposit-only markets that earn yield without borrowing
Compare platforms - Side-by-side comparison of borrow/supply rates across different protocols for the same asset-collateral pair
Calculate leverage strategies - Compute looping strategy metrics including leverage multiplier, liquidation price, and interest costs for collateralized positions
Monitor on-chain events - Track real-time lending activities including borrows, deposits, withdrawals, repays, liquidations, and flashloans
Track whale activity - Identify significant lending events (over $100K USD) across protocols
Get DeFi Borrow Index (DBI) - Access weighted average of stablecoin borrow rates as a market benchmark
Flexible filtering - Filter and sort results by chain, protocol, asset, collateral, event type, or minimum amounts
Usage analytics - View server usage statistics including call volumes, success rates, and unique clients
Provides access to real-time DeFi lending rates and earn markets across Ethereum-based protocols including Aave, Morpho, Compound, Spark, Fluid, and Euler, with tools for querying rates, comparing platforms, and calculating leverage strategies.
Provides access to DeFi lending rates on Optimism through Aave and Compound V3 protocols, enabling rate queries and platform comparisons.
Provides access to DeFi lending rates on Polygon through Aave and Compound V3 protocols, enabling rate queries and platform comparisons.
Provides access to real-time DeFi lending rates and earn markets on Solana through Drift, Jupiter, and Felix protocols, with tools for querying rates and comparing platforms.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DeFi Rates MCP Server show me the best USDC supply rates across all platforms"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
DeFi Lending Pro - Remote MCP Server
Remote MCP server providing real-time DeFi lending data for AI agents.
Give Claude and other AI assistants the power to query DeFi rates, monitor whale activity, and track on-chain lending events in real-time!
Remote Endpoint
https://defiborrow.loan/mcpNo installation required - just configure your MCP client to use the HTTP endpoint.
Related MCP server: Aave Liquidation MCP Server
Features
14+ Protocols: Aave, Morpho, Compound, Venus, Lista, Spark, Felix, Euler, Drift, Jupiter, HypurrFi & more
Real-time Data: Updated hourly from production DeFi protocols
8 Powerful Tools: Query rates, track whales, monitor liquidations, find best yields
Multi-Chain: Ethereum, Arbitrum, Base, BSC, Solana, HyperEVM
On-chain Events: Real-time lending event monitoring (borrows, deposits, liquidations)
Usage Stats: Built-in analytics at
/mcp/stats
Available Tools
On-chain Event Tools
1. get_recent_events
Get recent on-chain lending events (borrows, deposits, liquidations, repays).
Parameter | Type | Description |
| number | Number of events (default: 20, max: 100) |
| string | Filter by blockchain |
| string | Filter by protocol |
2. get_events_by_type
Get lending events filtered by event type.
Parameter | Type | Description |
| string | Required. One of: |
| number | Number of events (default: 20) |
| string | Filter by blockchain |
3. get_whale_activity
Get large lending events (whale activity >$100K USD).
Parameter | Type | Description |
| number | Minimum USD amount (default: 100000) |
| number | Number of events (default: 20) |
| string | Filter by blockchain |
| string | Filter by event type |
4. get_liquidations
Get recent liquidation events across all protocols.
Parameter | Type | Description |
| number | Number of events (default: 20) |
| string | Filter by blockchain |
| string | Filter by protocol |
Lending Rate Tools
5. get_lending_rates
Get current lending/borrowing rates across DeFi protocols.
Parameter | Type | Description |
| string | Filter by blockchain |
| string | Filter by platform (AAVE, Morpho, Compound, etc.) |
| string | Filter by borrow asset (USDC, USDT, ETH, etc.) |
| string | Filter by collateral asset |
| number | Number of results (default: 50) |
6. get_earn_markets
Get earn/yield markets (single-asset deposits like Spark stUSDS, Morpho Vaults).
Parameter | Type | Description |
| string | Filter by blockchain |
| string | Filter by platform |
| string | Filter by deposit asset |
| number | Minimum APY percentage |
| number | Number of results (default: 50) |
7. find_best_borrow
Find the lowest borrowing rate for a specific asset across all platforms.
Parameter | Type | Description |
| string | Required. Asset to borrow (USDC, USDT, ETH, etc.) |
| string | Limit search to specific chain |
| number | Return top N results (default: 5) |
8. find_best_yield
Find the highest deposit/supply yield for a specific asset.
Parameter | Type | Description |
| string | Required. Asset to deposit |
| string | Limit search to specific chain |
| boolean | Include vaults/staking (default: true) |
| number | Return top N results (default: 5) |
Quick Start
Claude Code
Run this command to add the remote MCP server:
claude mcp add --transport http defi-lending-pro https://defiborrow.loan/mcpVerify configuration:
claude mcp listClaude Desktop
Edit your config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"defi-lending-pro": {
"type": "url",
"url": "https://defiborrow.loan/mcp"
}
}
}Save and restart Claude Desktop. Look for the plug icon to verify connection.
Other MCP Clients
Use the HTTP transport with endpoint:
POST https://defiborrow.loan/mcp
Content-Type: application/json
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list",
"params": {}
}Usage Examples
After setup, try asking:
Query Lending Rates
"What's the lowest USDC borrow rate right now?"
"Show me ETH lending rates on Ethereum"
"Compare USDC/WETH rates between Aave and Morpho"
Find Best Yields
"Where can I get the best yield on USDC?"
"What's the APY for Spark stUSDS?"
"Find the top 5 highest yield stablecoin products"
Monitor Whale Activity
"Any recent whale lending activity?"
"Show me large borrows over $500K"
"What are the latest liquidations on Ethereum?"
Track On-chain Events
"Show me recent flashloans"
"Get the latest deposit events on Aave"
"What lending activity happened in the last hour?"
API Reference
MCP Protocol
The server implements Model Context Protocol (JSON-RPC 2.0 over HTTP).
Supported Methods:
initialize- Initialize connectiontools/list- List available toolstools/call- Execute a toolresources/list- List resources (empty)prompts/list- List prompts (empty)
Usage Statistics
View usage stats at:
GET https://defiborrow.loan/mcp/stats?days=7Returns:
Total calls and success rate
Calls by method and tool
Unique clients
Daily breakdown
Average response time
Data Sources
Protocol | Chains | Type |
Aave | Ethereum, Arbitrum, Base, Optimism, Polygon, Avalanche, Gnosis | Lending |
Morpho | Ethereum, Base | Lending + Vaults |
Compound V3 | Ethereum, Arbitrum, Base, Optimism, Polygon | Lending |
Venus | BSC | Lending |
Lista | BSC | Lending + Earn |
Spark | Ethereum, Gnosis | Lending + Earn (stUSDS 12%+ APY) |
Fluid | Ethereum, Arbitrum, Base | Lending |
HyperLend | HyperEVM | Lending |
HypurrFi | HyperEVM | Lending |
Euler | Ethereum, Arbitrum, Base | Lending + Vaults |
Drift | Solana | Lending |
Jupiter | Solana | Lending |
Felix | Solana | Earn |
Update Frequency: Hourly
ERC-8004 Agent
This service is registered as an ERC-8004 AI Agent:
Agent ID: #283
Network: Base Sepolia
Registry: View on BaseScan
Learn more about ERC-8004 - the AI Agent Trust Layer standard.
Links
Website: https://defiborrow.loan
MCP Endpoint: https://defiborrow.loan/mcp
Usage Stats: https://defiborrow.loan/mcp/stats
ERC-8004 Page: https://defiborrow.loan/?type=erc8004
npm Package: @asahi001/defi-rates-mcp
License
MIT
Available Tools
6 toolscalculate_looping_strategyC
Calculate the leverage looping strategy metrics including leverage multiplier, liquidation price, and interest costs.
Inputs: platform (required), asset (required), collateral (required), collateralAmount (required), +2 more.
compare_platformsC
Compare borrow/supply rates across different platforms for the same asset pair.
Inputs: asset (required), collateral (required), chain.
get_dbi_indexA
Get the DBI (DeFi Borrow Index) - a weighted average of stablecoin borrow rates across major protocols.
Inputs: no named parameters.
get_earn_marketsA
Get single-asset earn/vault products (no collateral required). Includes Morpho Vaults, Spark sUSDS/stUSDS, Compound cTokens, AAVE aTokens, etc. These are simple deposit products that earn yield without borrowing.
Inputs: platform, chain, asset, limit, +1 more.
get_latest_ratesC
Get the latest DeFi lending rates (collateralized borrowing markets). You can filter by platform, chain, asset, or collateral.
Inputs: platform, chain, asset, collateral, +2 more.
search_best_ratesB
Find the best borrow or supply rates for a specific asset.
Inputs: asset (required), type (required), chain, limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose with no overlap: calculate_looping_strategy focuses on leverage metrics, compare_platforms compares rates across platforms, get_dbi_index retrieves a specific index, get_earn_markets lists deposit products, get_latest_rates provides lending rates, and search_best_rates finds optimal rates. The descriptions clearly differentiate their functions, eliminating any ambiguity.
The tool names follow a consistent verb_noun pattern (e.g., calculate_looping_strategy, compare_platforms, get_dbi_index) with all using snake_case. However, there is a minor deviation with 'search_best_rates' using 'search' instead of 'get' or 'compare', which slightly breaks the pattern but remains readable and coherent.
With 6 tools, the count is well-scoped for a DeFi rates server, covering key areas like strategy calculation, rate comparison, index retrieval, market listings, and rate searches. Each tool earns its place without redundancy, making it efficient for agents to navigate and use.
The tool set provides comprehensive coverage for DeFi rates, including borrowing, lending, deposits, and strategy analysis. Minor gaps exist, such as no explicit tools for historical rate trends or protocol-specific detailed analytics, but agents can work around these using the available tools for core workflows.
Maintenance
Related MCP Connectors
Crypto yield data for AI agents: lending, savings, staking, borrowing & stablecoin rates. 21 tools.
Analyse crypto wallets (EVM, Solana, Bitcoin) and compare DeFi lending, borrowing and pool rates.
Aave - 6 tools for lending rates, supply, and borrow data
Loan & mortgage calculator, compound interest, ROI, crypto prices, FX conversion for AI agents.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables interaction with Pendle Finance DeFi protocol to fetch live yields, simulate staking and swaps, retrieve portfolio data, and get AI-based token recommendations. Provides comprehensive DeFi portfolio management and yield optimization through natural language.2-
- AlicenseAqualityDmaintenanceEnables AI assistants to analyze Aave V3 positions on Ethereum, monitor health factors, identify liquidation opportunities, and query protocol data including collateral positions, debt composition, and real-time asset prices.81MIT
- FlicenseNot gradedqualityDmaintenanceReal-time DeFi data for AI agents. Provides yields, TVL, prices, DEX volumes, fees, and contract data via 8 MCP endpoints, powered by DeFiLlama.-
- AlicenseBqualityDmaintenanceProvides 13 Solana DeFi intelligence tools for AI agents, paid per-call via micropayments (USDC). Enables pulling live DeFi data and automatic payment settlement.1383 npm2MIT