# DeFi Quant Yield & Risk Engine

> DeFi Quant Yield & Risk Engine is an open-source MCP server for finance and payments. Seven DeFi tools that simulate borrow slippage, carry and vault risk before you trade. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API
- **Website:** https://mcp.so/servers/defi-quant-multi-protocol-yield-risk-api
- **Repository:** https://github.com/pyrochem/defi-quant-mcp-server
- **MCP Registry name:** io.github.Pyrochem/defi-quant-mcp-server
- **Categories:** finance and payments
- **Listing updated:** 2026-11-14

## About

Where most DeFi data wrappers return yesterday's APY, the tools here model the effect of a trade on protocol state first. They cover six protocols: Morpho Blue, Ethena sUSDe, Fluid, Sky sUSDS, Euler V2 and Pendle V2, and read on-chain figures through a RapidAPI-hosted telemetry service that needs a `RAPIDAPI_KEY`.

Each tool has a narrow job. One compares stablecoin yields against the cheapest USDC borrow across Morpho, Fluid and Euler, computing net leveraged return from 1x to 10x and the breakeven borrow rate. Others model how a large Morpho borrow pushes utilisation past the 90% AdaptiveCurveIRM kink, how a large sUSDe deposit dilutes yield during the eight-hour reward vesting, and how Pendle PT trades move the logit curve against the 15-minute TWAP. Further tools decode Fluid's 256-bit packed storage, compute Sky's sUSDS carry and audit Euler vaults, including compact supply caps and EVC sub-account bitmaps.

It is MIT-licensed, built on the MCP SDK with Zod validation, and aimed at yield farmers, vault curators and trading agents. It produces calculations, not trade execution or advice.

## Features

- **Carry radar:** Compares sUSDe and sUSDS yield with USDC borrow rates and computes net leveraged return.
- **Morpho kink simulation:** Models how a large borrow shifts utilisation and post-trade borrow APY.
- **Ethena vesting dilution:** Estimates how a whale deposit dilutes sUSDe yield across the reward epoch.
- **Fluid state decoding:** Unpacks BigMath storage slots to report rates and simulate utilisation.
- **Euler V2 audit:** Decodes vault caps and EVC sub-account bitmaps and simulates IRM slippage.
- **Pendle curve analysis:** Compares spot implied APY with the PT oracle TWAP and simulates trade impact.

## Good for

- Check whether a 5x stablecoin loop still pays after borrow-rate slippage
- Size a Morpho borrow without moving the rate past the kink
- Compare spot Pendle fixed yield with its oracle price
- Audit an Euler V2 vault's caps and sub-accounts

## Install

### Claude Code (Terminal)

```sh
claude mcp add defi-quant-mcp-server --env RAPIDAPI_KEY='<RAPIDAPI_KEY>' -- npx -y defi-quant-mcp-server
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "defi-quant-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "defi-quant-mcp-server"
      ],
      "env": {
        "RAPIDAPI_KEY": "<RAPIDAPI_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "defi-quant-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "defi-quant-mcp-server"
      ],
      "env": {
        "RAPIDAPI_KEY": "<RAPIDAPI_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "defi-quant-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "defi-quant-mcp-server"
      ],
      "env": {
        "RAPIDAPI_KEY": "<RAPIDAPI_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "defi-quant-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "defi-quant-mcp-server"
      ],
      "env": {
        "RAPIDAPI_KEY": "<RAPIDAPI_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "defi-quant-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "defi-quant-mcp-server"
      ],
      "env": {
        "RAPIDAPI_KEY": "<RAPIDAPI_KEY>"
      }
    }
  }
}
```

## Tools

- `scan_stablecoin_yield_arbitrage_radar`: Compares sUSDe and sUSDS yields with the cheapest USDC borrow across Morpho Blue, Fluid and Euler V2.
- `simulate_morpho_blue_kink_slippage`: Models how a large borrow shifts utilisation and borrow APY on Morpho Blue.
- `simulate_ethena_susde_vesting_dilution`: Estimates sUSDe yield dilution from a large deposit during reward vesting.
- `unpack_fluid_liquidity_layer_state`: Decodes Fluid's packed storage and simulates post-trade utilisation.
- `simulate_sky_susds_leveraged_carry`: Calculates leveraged sUSDS and USDC loop return and breakeven borrow rates.
- `audit_euler_v2_vault_and_evc_subaccounts`: Audits an Euler V2 vault, caps, IRM slippage and EVC sub-account bitmaps.
- `analyze_pendle_v2_logit_curve_and_twap`: Compares Pendle implied APY with the PT oracle TWAP and simulates trade impact.

## FAQ

### What credentials are required?

A RapidAPI key in RAPIDAPI_KEY for live on-chain telemetry.

### Which protocols are covered?

Morpho Blue, Ethena, Fluid, Sky, Euler V2 and Pendle V2.

### What licence is it?

MIT, per the mcp.so listing.

### Does it place trades?

No. The listed tools simulate, scan and audit; none executes a transaction.

### Is DeFi Quant Yield & Risk Engine free?

Yes. DeFi Quant Yield & Risk Engine is open source, so you can use and self-host it for free.

### How do I add DeFi Quant Yield & Risk Engine to Claude Code?

Run this command in your terminal: claude mcp add defi-quant-mcp-server --env RAPIDAPI_KEY='<RAPIDAPI_KEY>' -- npx -y defi-quant-mcp-server

### What are the best alternatives to DeFi Quant Yield & Risk Engine?

The closest alternatives to DeFi Quant Yield & Risk Engine are Solana MCP by Vybe, Tapetide - Indian Stock Market MCP, Budget Tracker, Quantivex Research and Provyan.

## Alternatives

- [Solana MCP by Vybe](https://ai-powered.com/mcp/solana-mcp-by-vybe): Solana MCP by Vybe is an MCP server for finance and payments.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [Budget Tracker](https://ai-powered.com/mcp/budget-tracker-2): Budget Tracker is a freemium MCP server for finance and payments.
- [Quantivex Research](https://ai-powered.com/mcp/quantivex-research): Quantivex Research is a free MCP server for finance and payments.
- [Provyan](https://ai-powered.com/mcp/provyan): Provyan is a free MCP server for finance and payments.
- [TribuJus](https://ai-powered.com/mcp/tribujus): TribuJus is an open-source MCP server for legal and government.
- [L2WS](https://ai-powered.com/mcp/l2ws): L2WS is a paid MCP server for finance and payments.
- [Invoices](https://ai-powered.com/mcp/invoices): Invoices is a paid MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/defi-quant-yield-and-risk-engine
