DeFi Rates MCP Server
Provides AI assistants with access to real-time DeFi lending rates and yield data across 14+ protocols and multiple blockchains. Enables querying borrow/supply rates, comparing platforms, calculating leverage strategies, and finding best earn opportunities.
README
DeFi Rates MCP Server
Model Context Protocol (MCP) server that provides AI assistants with access to real-time DeFi lending rates data.
šÆ Give Claude and other AI assistants the power to query DeFi rates in real-time!
š Website: defiborrow.loan
⨠Highlights
- š 14+ Protocols: Aave, Morpho, Compound, Venus, Lista, Spark, Felix, Euler, Drift, Jupiter, HypurrFi & more
- ā” Real-time Data: Updated hourly from production DeFi protocols
- š§ 6 Powerful Tools: Query lending rates, earn markets, compare platforms, calculate strategies
- š¤ AI-Ready: Built for Claude Desktop, Cline, and other MCP clients
- š Multi-Chain: Ethereum, Arbitrum, Base, BSC, Solana, HyperEVM
- š° Earn Markets: Access Morpho Vaults, Spark stUSDS (12%+ APY), and other single-asset yield products
Features
This MCP server provides 6 powerful tools for querying and analyzing DeFi lending data:
1. get_latest_rates
Get the latest lending rates for collateralized borrowing markets.
Parameters:
platform(optional): Filter by platform (Aave, Morpho, Compound, Venus, Lista, HyperLend, Fluid, HypurrFi, Euler, Drift, Jupiter)chain(optional): Filter by blockchain (ethereum, arbitrum, base, bsc, solana, hyperevm)asset(optional): Filter by borrow asset (USDC, USDT, WETH, etc.)collateral(optional): Filter by collateral assetlimit(optional): Maximum results to return (default: 10)sort(optional): Sort results by rate āborrow_lowest,borrow_highest,supply_highest, orsupply_lowest
2. get_earn_markets
Get single-asset earn/vault products (no collateral required). Perfect for finding the best passive yield opportunities.
Parameters:
platform(optional): Filter by platform (Morpho, Spark, Compound, AAVE, Lista, Felix, Euler)chain(optional): Filter by blockchain (ethereum, arbitrum, base, bsc, solana)asset(optional): Filter by deposit asset (USDC, USDT, stUSDS, sUSDS, WETH, SOL)limit(optional): Maximum results to return (default: 10)sort(optional): Sort by APY āsupply_highestorsupply_lowest
Examples:
- Find best stablecoin yields:
asset: "USDC", sort: "supply_highest" - Check Spark stUSDS APY:
platform: "Spark", asset: "stUSDS" - Best Morpho Vaults:
platform: "Morpho", sort: "supply_highest"
3. get_dbi_index
Get the DBI (DeFi Borrow Index) - a weighted average of stablecoin borrow rates across major protocols.
No parameters required.
4. search_best_rates
Find the best borrow or supply rates for a specific asset.
Parameters:
asset(required): The asset to search fortype(required): 'borrow' or 'supply'chain(optional): Filter by blockchainlimit(optional): Number of results (default: 10)
5. calculate_looping_strategy
Calculate leverage looping strategy metrics.
Parameters:
platform(required): The lending platformasset(required): The asset to borrowcollateral(required): The collateral assetcollateralAmount(required): Amount of collateral tokenscollateralPrice(required): Current price in USDltv(required): Target LTV ratio percentage (e.g., 75)
6. compare_platforms
Compare rates across different platforms for the same asset pair.
Parameters:
asset(required): The borrow assetcollateral(required): The collateral assetchain(optional): Filter by blockchain
š Quick Start
- Install the package:
npm install -g @asahi001/defi-rates-mcp
- Add to your Claude Desktop config (
~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"defi-rates": {
"command": "npx",
"args": ["-y", "@asahi001/defi-rates-mcp"]
}
}
}
- Restart Claude Desktop and start asking:
- "What are the current USDC borrow rates on Aave?"
- "Find the best USDT supply rates across all platforms"
- "Calculate a looping strategy with 10 ETH on Morpho"
Installation
Option 1: Install from npm (Recommended)
npm install -g @asahi001/defi-rates-mcp
Option 2: Install from source
git clone https://github.com/qingfeng/defi-rates-mcp.git
cd defi-rates-mcp
npm install
Configuration
For Claude Desktop
Add to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
If installed from npm:
{
"mcpServers": {
"defi-rates": {
"command": "npx",
"args": ["-y", "@asahi001/defi-rates-mcp"]
}
}
}
If installed from source:
{
"mcpServers": {
"defi-rates": {
"command": "node",
"args": ["/path/to/defi-rates-mcp/index.js"]
}
}
}
For Other MCP Clients
Use the stdio transport protocol:
node /Users/qingfeng/Desktop/solana_lp/defi-rates-mcp/index.js
Usage Examples
Once configured, you can ask Claude:
Query Lending Rates
"What are the current USDC borrow rates on Aave?"
"Show me all Ethereum lending rates for WETH collateral"
"Find the cheapest place to borrow USDC right now"
Query Earn Markets
"What's the APY for Spark stUSDS?"
"Find the best USDC earn vaults across all platforms"
"Show me Morpho vault yields on Ethereum"
"What are the top 5 highest yield single-asset deposit products?"
Search Best Rates
"Find the best USDT supply rates across all platforms"
"What's the cheapest place to borrow USDC?"
Calculate Looping Strategy
"Calculate a looping strategy on Aave using 10 ETH as collateral (ETH price $3000) at 75% LTV to borrow USDC"
Compare Platforms
"Compare USDC/WETH borrow rates across all platforms"
Get DBI Index
"What's the current DBI stablecoin borrow cost index?"
Data Source
This MCP server fetches data from:
- Website: https://defiborrow.loan
- API Endpoint: https://defiborrow.loan/api
- Update Frequency: Real-time (data updated every hour)
- Supported Platforms:
- Lending Markets (collateralized borrowing):
- Aave (Ethereum, Arbitrum, Base, Optimism, Polygon, Avalanche, Gnosis)
- Morpho (Ethereum, Base)
- Compound V3 (Ethereum, Arbitrum, Base, Optimism, Polygon)
- Venus (BSC)
- Lista (BSC)
- HyperLend (HyperEVM)
- Fluid (Ethereum, Arbitrum, Base)
- HypurrFi (HyperEVM)
- Euler (Ethereum, Arbitrum, Base)
- Drift (Solana)
- Jupiter (Solana)
- Earn Markets (single-asset vaults):
- Morpho Vaults (Ethereum, Base, Arbitrum)
- Spark sUSDS/stUSDS (Ethereum - 12%+ APY)
- Compound cTokens (Multi-chain)
- AAVE aTokens (Multi-chain)
- Lista Earn Vaults (BSC)
- Felix (Solana)
- Euler Vaults (Multi-chain)
- Lending Markets (collateralized borrowing):
Development
Test the MCP Server
# Install dependencies
npm install
# Run the server
npm start
Debug Mode
The server logs to stderr, so you can see debug messages while it runs.
Troubleshooting
Claude Desktop Not Detecting Server
- Check the config file path is correct
- Restart Claude Desktop completely
- Check the logs in Claude Desktop's developer console
Connection Errors
- Ensure the Worker URL is accessible: https://defi-rates.qingfenghello.workers.dev
- Check your internet connection
- Verify Node.js version (requires Node 18+)
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.