🌱 DeFi Garden

MCP serverAI & models

Underwritten DeFi yield discovery & goal planning for AI agents on Base & EVM.

Available today. Use it from your connected AI after setup.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Then ask your AI: use 🌱 DeFi Garden to get base yields

Install 🌱 DeFi Garden

The server’s own address, for the clients that take one directly. Or connect ahel once and every client you use reads it from one address, with the account kept on ahel rather than in each client’s config.

  • Claude Code

    claude mcp add --transport http --scope user defi-garden 'https://www.defi.garden/api/mcp'

    Run it once in your project, then open /mcp to approve any sign-in the server asks for.

  • Claude Desktop

    https://www.defi.garden/api/mcp

    Add a custom connector in Settings, paste this address, and approve the sign-in.

  • Cursor

    cursor://anysphere.cursor-deeplink/mcp/install?name=defi-garden&config=eyJ1cmwiOiJodHRwczovL3d3dy5kZWZpLmdhcmRlbi9hcGkvbWNwIn0=

    Open the link and Cursor adds the server at that address.

  • ChatGPT

    https://www.defi.garden/api/mcp

    In Settings, enable Developer mode, create an MCP app, and paste this address. Your plan and workspace must allow custom apps.

  • Codex

    codex mcp add defi-garden --url 'https://www.defi.garden/api/mcp'

    Run it once, then sign in with codex mcp login defi-garden if the server asks for an account.

From the project's README

As published by alex0xhodler/defi_garden in README.md.

Calm, honest DeFi yield discovery and goal-based savings planning.

DeFi Garden is a static, zero-backend, zero-build-step web application built on the DefiLlama yields API, designed for cautious savers and DeFi operators who value trust, realistic projections, and mathematical transparency over speculative hype.


🌟 The Two Core Faces of DeFi Garden

DeFi Garden serves two distinct workflows through an inline, zero-flash IA router (window.__APP_MODE in home.html):

1. πŸͺ΄ Garden Planner (Default Experience β€” / and plan.html)

  • Goal-First Conversational Savings: Plan savings around real-life goals (subscriptions, gadgets, life milestones) rather than chasing abstract APY numbers.
  • Yield-Funded Paradigm: "Buy it outright and the money's gone. Garden it and you keep the money AND get the thing."
  • Blended Yield Rates: Calculates honest "forever numbers" β€” the capital required so ongoing live yield pays recurring bills automatically.
  • Degen Honesty: Applies a mandatory β…“ decay haircut to variable farm/reward emissions, ensuring users plan around realistic long-term carry.

2. πŸ“Š Analytics & Yield Discovery (/?token=, /?chain=, /?pool=, /?app=1)

  • Multi-Chain Pool Explorer: Real-time yield monitoring across 50+ blockchains (Ethereum, Arbitrum, Base, Hyperliquid, Solana, etc.) and all major protocol types (Lending, Staking, LP/DEX, Yield Farming).
  • Deep Pool Breakdown (PoolDetail.js): In-depth pool analytics, 30-day mean APY tracking, base vs. reward emission separation, and impermanent loss risk indicators.
  • Funding Harvest Module (/hype-harvest.html / /?module=hype-harvest): Delta-neutral cash-and-carry funding harvest calculator for Hyperliquid perps with live basis spread tracking and dual-oracle divergence tripwires.

πŸ›‘οΈ Trust Rails (The Core Moat)

Every metric rendered across DeFi Garden derives from live on-chain and API data through strict, non-negotiable trust rails:

  1. APY_SANITY_LIMIT = 1000%: Anomalous, short-lived spikes can never enter a plan. In analytics, anomalous pools are demoted, flagged with ⚠, and forced to high-risk classification.
  2. DEFAULT_MIN_TVL = $100K: Low-liquidity pools below the safety floor are filtered out to protect savers from illiquid exits and sudden deprecations.
  3. Dual-Oracle Divergence Guard: Modules verify mark vs. oracle price divergence ($<15\text{ bps}$ tripwire) to alert on basis dislocation and squeeze risk.
  4. Deterministic Math Layer: LLMs may narrate or explain mechanisms, but numbers, projections, and compounded yields are calculated deterministically.

🎨 Design System β€” "Quiet"

DeFi Garden uses the "Quiet" design system β€” a restrained, clean-minimal, table-first interface designed for clarity and focus:

  • Surface Tokens (--ui-*):
    • Backgrounds: --ui-bg (#F7F8FA light / #161A20 dark), --ui-surface (#FFFFFF / #1E242C), --ui-surface-muted, --ui-surface-sunken.
    • Separation: Single-pixel hairline borders (--ui-border: #E4E7EE, --ui-border-strong: #CBD2DF).
    • Text: High-contrast hierarchy (--ui-text: #10151F, --ui-text-secondary: #5A6478, --ui-text-muted: #8A93A6).
    • Accents: Fixed trust-blue palette (--ui-accent: #3B82F6, --ui-accent-hover: #2563EB, --ui-accent-soft: #EFF5FF).
    • Radii: Clean geometric squircles (--ui-radius-sm: 8px, --ui-radius-md: 12px, --ui-radius-lg: 16px, --ui-radius-pill: 999px).
  • No Heavy Shadows or Skeuomorphic Skeins: Depth is created through crisp hairline borders and subtle surface tone steps, not artificial dual-direction shadows or background gradients.
  • Physical Press Physics: Interactive controls sink 1px on :active (transform: translateY(1px)), respecting prefers-reduced-motion.
  • First-Class Bilingual Support (translations.js): Complete English (en) and Korean (ko) localization synchronized across all user-facing strings.

πŸ› οΈ Architecture & Technology Stack

  • Zero Build Step: Runs natively on vanilla web standards. React 18 UMD loaded via script tag; components written in pure React.createElement (no JSX compilation step required).
  • Data Ingestion: Client-side integration with https://yields.llama.fi/pools and Hyperliquid Info API (https://api.hyperliquid.xyz/info).
  • State Management:
    • Theme: localStorage.getItem('theme') with data-theme="light|dark" attribute on <html>.
    • Language: URL param ?lang= + localStorage.getItem('defi-garden-lang').
    • Saved Plan: localStorage.getItem('garden-plan').
  • SEO & Machine Readability:
    • Automated dynamic sitemaps (generate-sitemap.js).
    • AI Context endpoints: llms.txt and llms-full.txt (generate-llms.js).
    • Model Context Protocol (MCP) server integration (mcp_server.js).

πŸ“ Repository Structure

defi_garden/
β”œβ”€β”€ home.html                   # Master router & analytics app shell
β”œβ”€β”€ plan.html                   # Standalone Garden Planner entry
β”œβ”€β”€ hype-harvest.html           # HYPE Funding Harvest module
β”œβ”€β”€ planner.js                  # Conversational Garden Planner engine
β”œβ”€β”€ app.js                      # Core analytics grid & pool filtering
β”œβ”€β”€ PoolDetail.js               # In-depth pool analytics & calculator
β”œβ”€β”€ hype-harvest.js             # HYPE funding harvest React UMD module
β”œβ”€β”€ translations.js             # Bilingual dictionary (EN + KO)
β”œβ”€β”€ translations.min.js         # Production-minified translation dictionary
β”œβ”€β”€ style.css                   # "Quiet" design system tokens & base styles
β”œβ”€β”€ planner-styles.css          # Planner-specific layout styles
β”œβ”€β”€ pool-detail-styles.css      # Pool detail drawer styles
β”œβ”€β”€ hype-harvest.css            # Funding harvest layout styles
β”œβ”€β”€ trust-rails.js              # Shared trust-rail constants
β”œβ”€β”€ canonical.js                # URL canonicalization logic
β”œβ”€β”€ keeper/                     # Autonomous execution & risk keeper scripts
β”‚   β”œβ”€β”€ keeper_engine.py        # Core risk keeper engine
β”‚   └── hype_funding_harvest.py # Hyperliquid HYPE funding rate worker
β”œβ”€β”€ tests/                      # Python unit & integration test suite
β”‚   β”œβ”€β”€ test_keeper_engine.py
β”‚   └── test_keeper_hype_harvest.py
└── test_*.js                   # JavaScript offline test suite (71+ test files)

πŸ§ͺ Development & Testing

DeFi Garden requires no build pipeline. Serve locally with any static HTTP server:

# Start local server
python3 -m http.server 8000
# Open in browser: http://localhost:8000

Running Tests

# Run all unit tests in fast plain mode
npm run test:fast

# Run the complete test suite (plain + browser)
npm test

# Minify production assets
npm run minify

πŸ“œ License

MIT License. See LICENSE for details.

Tools it offers (4)

What this server listed when ahel dialed its public endpoint in Oct 2026, with no key and no account of yours. The names are the server’s own.

  • get_base_yields
  • find_lending_rate
  • get_looping_params
  • get_trust_rails

Signals

GitHub stars
1
Last commit
Oct 2026
Advanced
Delivery
defi-garden MCP server β†’ your ahel connector (mcp.ahel.ai) β†’ your AI.
Item type
mcp-server
Key
io-github-alex0xhodler-defi-garden
Source
github.com/alex0xhodler/defi_garden
Hosted endpoint
https://www.defi.garden/api/mcp