DeFi Quant Multi-Protocol Yield & Risk API
Provides block-accurate access to Ethereum Mainnet DeFi protocol state via Multicall3, enabling yield, borrow, liquidity, cap, and arbitrage simulations across supported on-chain markets.
Provides tools for reading Sky Protocol sUSDS contract state (ssr, chi, rho) and simulating leveraged carry using continuous RAY rpow compounding against Morpho Blue USDC borrow costs.
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 Quant Multi-Protocol Yield & Risk API compare sUSDe and sUSDS yields vs cheapest USDC borrow at 5x leverage"
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 Quant MCP Server (defi-quant-mcp-server)
This repository contains the official open-source Model Context Protocol (MCP) server implementation for the DeFi Quant suite. Built with @modelcontextprotocol/sdk and Zod schema validation, it exposes 7 native DeFi yield, leveraged carry, and pre-trade risk simulation tools directly to AI agents (Claude Desktop, Cursor, Windsurf, and autonomous trading agents).
Unlike read-only DeFi wrappers that only return static historical snapshots, this MCP server performs pre-execution smart contract state simulations across Morpho Blue, Ethena (sUSDe), Fluid Protocol, Sky Protocol (sUSDS), Euler V2 (EVK/EVC), and Pendle V2.
Example AI Prompts This Server Solves
Once connected to Claude Desktop or Cursor, your AI agent can autonomously answer complex quantitative DeFi questions:
Cross-Protocol Yield & Looping: "Where is the highest leveraged stablecoin carry right now between Ethena sUSDe and Sky sUSDS, and is it cheaper to borrow USDC on Morpho Blue, Fluid, or Euler V2 at 5x leverage?"
Morpho Blue Kink Slippage: "What happens to the borrow APY on the Morpho wstETH/USDC market if I borrow an extra $2,000,000? Does it push utilization past the 90% AdaptiveCurveIRM kink?"
Ethena Epoch Dilution: "How much unvested USDe is left in Ethena's current 8-hour epoch, and how much will the sUSDe APY drop if a whale deposits $25M right now?"
Fluid Bit-Packed State: "Unpack the Fluid LiquidityLayer 256-bit storage slot for USDC and calculate post-trade utilization after a $2M borrow."
Pendle V2 Fixed Yield & TWAP Divergence: "Compare Pendle's Spot Implied Fixed APY against the 15-minute PT Oracle TWAP, and simulate the implied yield slippage on a $1M PT swap."
Euler V2 Vault & Sub-Account Audits: "Decode the uint16 supply/borrow caps on the Euler V2 Prime USDC vault and check active EVC sub-account bitmaps."
Related MCP server: ProfitSpot MCP
Native MCP Tools Included (7 Tools)
scan_stablecoin_yield_arbitrage_radar— Compares live stablecoin yields (sUSDe,sUSDS) against the cheapest USDC borrow rates (Morpho Blue,Fluid,Euler V2) and calculates net leveraged loop ROE and breakeven borrow spreads.simulate_morpho_blue_kink_slippage— Reads live Morpho Blue market state (borrowShares,totalSupplyAssets) and simulates post-trade borrow APY slippage across the 90%AdaptiveCurveIRMkink.simulate_ethena_susde_vesting_dilution— Queries EthenagetUnvestedAmount()linear 8-hour epoch decay and models post-deposit APY dilution.unpack_fluid_liquidity_layer_state— Unpacks Fluid Protocol's56|8BigMathbit-packed storage slots into human-readable supply/borrow liquidity, utilization, and post-trade rate impact.simulate_sky_susds_leveraged_carry— Computes continuous RAY ($10^{27}$) per-secondssr/chicompounding for SkysUSDSagainst Morpho USDC borrow costs.audit_euler_v2_vault_and_evc_subaccounts— Decodes Euler V2 compact floating-point mantissa/exponent caps, simulates IRM kink slippage, and scans EVC 256-bit XOR sub-accounts (0..3).analyze_pendle_v2_logit_curve_and_twap— Reads Pendle V2MarketStatelogit curve parameters (scalarRoot,lnFeeRateRoot), compares Spot Implied APY vs. PT Oracle TWAP, and simulates PT swap slippage.
Quick Start (Claude Desktop / Cursor Configuration)
Grab a free API key from the DeFi Quant Multi-Protocol Yield & Risk API on RapidAPI (includes a Free $0/mo Basic Tier with 50 requests/month).
Add the following block to your
claude_desktop_config.jsonor.cursor/mcp.json:
{
"mcpServers": {
"defi-quant": {
"command": "npx",
"args": ["-y", "defi-quant-mcp-server"],
"env": {
"RAPIDAPI_KEY": "YOUR_RAPIDAPI_KEY",
"RAPIDAPI_HOST": "defi-quant-multi-protocol-yield-risk-api.p.rapidapi.com"
}
}
}
}Available Tools
7 toolsanalyze_pendle_v2_logit_curve_and_twapPendle V2 Logit Curve & PT TWAP Slippage AnalyzerARead-onlyIdempotent
Use this tool when a user asks about Pendle V2 fixed yields (PT/YT), wants to compare Spot Implied APY against the 15-minute geometric PT Oracle TWAP, or needs to simulate how a large PT trade impacts the logit AMM curve (scalarRoot, lnFeeRateRoot).
Inputs: marketAddress, simPtTradeSize.
audit_euler_v2_vault_and_evc_subaccountsEuler V2 Vault & EVC Sub-Account AuditorBRead-onlyIdempotent
Use this tool when a user wants to audit an Euler V2 (EVK) vault, decode uint16 compact floating-point supply/borrow caps, simulate Euler IRM borrow kink slippage, or inspect Ethereum Vault Connector (EVC) 256-bit XOR sub-account bitmaps.
Inputs: vaultAddress, accountAddress, simBorrowDelta.
scan_stablecoin_yield_arbitrage_radarStablecoin Yield & Carry Arbitrage RadarARead-onlyIdempotent
Use this tool when a user asks where to find the best DeFi stablecoin yield, how to loop stablecoins for leveraged carry, or wants to compare Ethena sUSDe and Sky sUSDS yields against the cheapest USDC borrow rates across Morpho Blue, Fluid, and Euler V2.
Inputs: leverage.
simulate_ethena_susde_vesting_dilutionEthena sUSDe Vesting & Whale Dilution SimulatorARead-onlyIdempotent
Use this tool when a user asks about Ethena sUSDe real-time APY, 8-hour epoch reward vesting (getUnvestedAmount), or how a large whale deposit into the sUSDe staking contract will dilute the current yield.
Inputs: simDepositUSDe.
simulate_morpho_blue_kink_slippageMorpho Blue 90% Kink & Borrow Slippage SimulatorARead-onlyIdempotent
Use this tool when a user wants to check Morpho Blue borrow rates, market utilization, or simulate how a large borrow or loop position will impact the 90% AdaptiveCurveIRM kink and push up post-trade borrow APY.
Inputs: marketId, simBorrowDelta.
simulate_sky_susds_leveraged_carrySky sUSDS Continuous RAY Leveraged Carry SimulatorARead-onlyIdempotent
Use this tool when a user asks about Sky Protocol (MakerDAO) sUSDS savings rate, continuous per-second RAY compounding (ssr and chi), or wants to calculate leveraged sUSDS/USDC loop ROE and breakeven borrow rates on Morpho.
Inputs: leverage, borrowRateOverride.
unpack_fluid_liquidity_layer_stateFluid LiquidityLayer Bit-Unpacker & SimulatorARead-onlyIdempotent
Use this tool when a user asks about Fluid Protocol USDC borrow/supply rates, needs to decode Fluid's 256-bit BigMath storage slots (exchangePricesAndConfig), or wants to simulate post-trade utilization on Fluid.
Inputs: tokenAddress, simBorrowDelta.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Most tools are cleanly separated by protocol (Morpho, Ethena, Fluid, Sky, Euler, Pendle) and action, so an agent can generally select the right one. There is some overlap between simulate_sky_susds_leveraged_carry, simulate_morpho_blue_kink_slippage, and scan_stablecoin_yield_arbitrage_radar because all involve borrow rates and looping, but the descriptions help distinguish primary intent.
All names use snake_case and follow a predictable action_protocol_mechanism pattern, making them readable and scannable. The leading verbs vary (simulate, unpack, audit, analyze, scan), which is appropriate but slightly less uniform than a strict verb_noun convention.
Seven tools is well-scoped for a multi-protocol yield and risk API: one focused tool per major protocol plus a cross-protocol radar. Each tool earns its place without feeling thin or bloated.
The surface covers the named protocols and includes simulation, decoding, auditing, analysis, and cross-protocol scanning capabilities. Minor gaps may exist around generalized risk metrics (e.g., liquidation health factors) or a simple read-only APY fetcher, but core analytical workflows are covered.
Related MCP Connectors
Pay-per-call DeFi and macro intel for AI agents. x402 USDC tools via streamable HTTP /api/mcp.
Cross-asset market data, LLM gateway and ML forecasts for AI agents. USDC via x402 + MPP.
Evidence-based market data for AI agents deploying capital in DeFi. Empirical, not advertised.
Pay-per-call on-chain data for AI agents: token, wallet, risk, whale, NFT, tx. No API keys.
Related MCP Servers
- 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.-
- AlicenseAqualityDmaintenanceCross-chain DeFi intelligence MCP server for AI agents. 7 tools for yield discovery, pool analysis, profit simulation, risk scoring, whale tracking, impermanent loss calculation, and DeFi overview across 86 chains and 6,500+ liquidity pools.71AGPL 3.0
- AlicenseAqualityDmaintenanceReal-time DeFi analytics MCP server for AI agents. Provides token risk analysis, yield scanning, and wallet exposure checking across Base, Ethereum, and Arbitrum.31MIT

Syeniteofficial
FlicenseNot gradedqualityCmaintenanceA DeFi MCP server enabling AI agents to query lending rates, execute swaps/bridges, monitor positions, and access prediction markets across 30+ chains with a trust layer for calldata verification.-