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
- π 13+ Protocols: Aave, Morpho, Compound, Venus, Lista, Moonwell, Euler, Drift, Solend, Jupiter & more
- β‘ Real-time Data: Updated hourly from production DeFi protocols
- π§ 5 Powerful Tools: Query rates, compare platforms, calculate strategies
- π€ AI-Ready: Built for Claude Desktop, Cline, and other MCP clients
- π Multi-Chain: Ethereum, Arbitrum, Base, BSC, Solana, HyperEVM
This MCP server provides 5 powerful tools for querying and analyzing DeFi lending data:
Get the latest lending rates with optional filters.
Parameters:
platform(optional): Filter by platform (Aave, Morpho, Compound, Venus, etc.)chain(optional): Filter by blockchain (ethereum, arbitrum, base, bsc, solana, etc.)asset(optional): Filter by borrow asset (USDC, USDT, WETH, etc.)collateral(optional): Filter by collateral assetlimit(optional): Maximum results to return (default: 20)
Get the DBI (DeFi Borrow Index) - a weighted average of stablecoin borrow rates across major protocols.
No parameters required.
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)
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)
Compare rates across different platforms for the same asset pair.
Parameters:
asset(required): The borrow assetcollateral(required): The collateral assetchain(optional): Filter by blockchain
- 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"
npm install -g @asahi001/defi-rates-mcpgit clone https://github.com/qingfeng/defi-rates-mcp.git
cd defi-rates-mcp
npm installAdd to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"defi-rates": {
"command": "npx",
"args": ["-y", "@asahi001/defi-rates-mcp"]
}
}
}{
"mcpServers": {
"defi-rates": {
"command": "node",
"args": ["/path/to/defi-rates-mcp/index.js"]
}
}
}Use the stdio transport protocol:
node /Users/qingfeng/Desktop/solana_lp/defi-rates-mcp/index.jsOnce configured, you can ask Claude:
"What are the current USDC borrow rates on Aave?"
"Show me all Ethereum lending rates for WETH collateral"
"Find the best USDT supply rates across all platforms"
"What's the cheapest place to borrow USDC?"
"Calculate a looping strategy on Aave using 10 ETH as collateral (ETH price $3000) at 75% LTV to borrow USDC"
"Compare USDC/WETH borrow rates across all platforms"
"What's the current DBI stablecoin borrow cost index?"
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:
- Aave (Ethereum, Arbitrum, Base)
- Morpho (Ethereum)
- Compound (Ethereum)
- Venus (BSC)
- Lista (BSC)
- Moonwell (Base)
- HyperLend (HyperEVM)
- Fluid (Ethereum)
- HypurrFi (Hyperliquid)
- Euler (Ethereum, Arbitrum)
- Drift (Solana)
- Solend (Solana)
- Jupiter (Solana)
# Install dependencies
npm install
# Run the server
npm startThe server logs to stderr, so you can see debug messages while it runs.
- Check the config file path is correct
- Restart Claude Desktop completely
- Check the logs in Claude Desktop's developer console
- Ensure the Worker URL is accessible: https://defi-rates.qingfenghello.workers.dev
- Check your internet connection
- Verify Node.js version (requires Node 18+)
MIT