What DeFi Garden MCP server does
DeFi Garden MCP server is included in a static web application focused on cautious DeFi research and goal-oriented savings planning. The application has two main areas: a planner that estimates the capital needed to fund recurring expenses from yield, and an analytics interface for finding and inspecting pools.
The planner frames yield in terms of a target purchase or recurring bill rather than only displaying an annual percentage. Its projections use deterministic calculations. Variable farm and reward emissions receive a one-third reduction in planning calculations, which is intended to avoid treating short-lived incentives as permanent income.
The analytics area covers pools across more than 50 chains and includes lending, staking, liquidity-pool or DEX, and yield-farming categories. Pool pages show information such as 30-day average APY, the split between base yield and reward emissions, and indicators related to impermanent-loss exposure.
How it works
The frontend runs without a build pipeline or backend. React 18 is loaded from a script tag, while the application code uses browser-native JavaScript and React.createElement. Data is fetched in the browser from https://yields.llama.fi/pools. The Hyperliquid funding-harvest module also reads from the Hyperliquid Info API at https://api.hyperliquid.xyz/info.
Several safeguards shape the displayed results. Pools with anomalous APYs above the 1,000% sanity threshold are excluded from planning and marked or classified as high risk in analytics. Pools below the default $100,000 TVL threshold are filtered out. The funding-harvest functionality checks mark and oracle price divergence against a 15-basis-point tripwire.
The repository also contains mcp_server.js, but the supplied documentation does not specify its transport, endpoint, installation command, or individual MCP tool definitions. As a result, the MCP interface should not be assumed to expose every browser feature described here.
Setup and configuration
Run the web application as static files. From the repository directory, start any static HTTP server, such as:
python3 -m http.server 8000
Then open the application at the corresponding local address. No build step is required. The repository documents npm run test:fast for the fast test suite, npm test for the complete plain and browser tests, and npm run minify for production asset minification.
The application stores the selected theme, language, and saved plan in browser storage. English and Korean translations are included. URL parameters select language and application views, including token, chain, pool, and module-oriented routes.
The project is licensed under MIT. The provided material does not list environment variables required to run the MCP component.
Tools and capabilities
Documented application capabilities include:
- Explore live DeFi pools across multiple chains and protocol categories.
- Inspect pool yield history, base-versus-reward composition, and impermanent-loss signals.
- Calculate capital targets for recurring expenses using ongoing yield assumptions.
- Apply TVL, APY, emission-decay, and oracle-divergence safeguards.
- Review Hyperliquid perpetual funding spreads through the funding-harvest module.
DeFi Garden MCP server may provide an agent-facing layer for the project, but no supported MCP tool list is included in the supplied README. Verify the repository implementation before depending on a particular tool name or input schema.