DeFi Intelligence Engine
Complete DeFi intelligence — Yield, Staking, Restaking, RWA, Perps, Gas Optimization & Contract Security. One answer, not raw data.
README
DeFi Intelligence Engine — MCP Server
A Model Context Protocol (MCP) server providing complete DeFi intelligence — Yield, Liquid Staking, Restaking, RWA, Perpetuals, Gas Optimization, and Smart Contract Security. Risk-adjusted single recommendations with reasoning, 97% fewer tokens than raw data.
Built with the MCP SDK (FastMCP) · Transport: streamable-http · Compatible with Claude Desktop, Claude Code, OpenClaw, Cursor, Windsurf, and any MCP-compatible client.
MCP Tools (paid · 0.05 USDC via x402 on Base)
| Tool | Description |
|---|---|
get_best_yield |
Best yield for USDC, USDT, ETH across 548 protocols |
get_optimal_allocation |
Multi-protocol capital split for max risk-adjusted yield |
explain_risk |
9-signal risk breakdown for any DeFiLlama protocol |
compare_yields |
Side-by-side protocol comparison |
get_best_liquid_staking |
Best LST for ETH, SOL, BNB (Lido, Rocket Pool, Jito...) |
get_best_restaking |
Best restaking/LRT (EigenLayer, Ether.fi, Renzo, Puffer) |
get_best_rwa |
Best Real World Asset protocol (Ondo, BUIDL, Maple, Centrifuge) |
get_perps_overview |
Top perps by 24h volume (Hyperliquid, dYdX, GMX, Drift) |
compare_perps |
Side-by-side perpetuals comparison |
get_optimal_gas_window |
Predict best time window to transact for minimum gas cost |
score_contract |
Smart contract security risk score via GoPlus Security API |
MCP Tools (free)
| Tool | Description |
|---|---|
get_gas_price |
Current gas prices (safe/standard/fast) for any EVM chain |
get_defi_overview |
Full DeFi market snapshot across all categories |
yield_alert_set |
Register APY threshold alert |
yield_alert_check |
Poll alert triggered/watching status |
yield_alert_delete |
Remove an alert by ID |
yield_alerts_list |
List all active alerts |
server_info |
Server metadata, all tools, resources, pricing |
MCP Resources (free)
| URI | Description |
|---|---|
defi://market-overview |
Real-time top yields snapshot (~168 tokens) |
defi://risk-glossary |
Risk term definitions for output interpretation |
MCP Prompts (free)
| Prompt | Usage |
|---|---|
/yield-check |
Find best yield for asset + amount |
/portfolio-optimize |
Optimize multi-asset DeFi allocation |
/daily-briefing |
Morning yield market summary |
/yield-watch |
Monitor APY threshold + act on trigger |
Installation — Claude Desktop
{
"mcpServers": {
"defi-intelligence-engine": {
"url": "https://defi-yield-engine-production.up.railway.app/mcp"
}
}
}
Installation — Any MCP Client
MCP Server URL : https://defi-yield-engine-production.up.railway.app/mcp
Transport : streamable-http
Protocol : Model Context Protocol (MCP)
Payment — x402 Protocol
Paid tools require 0.05 USDC per call on Base. No signup, no API key.
Recipient : 0x74E3ab71eC674D343aD481Ea20F489C720C11Ad4
Network : Base (chain 8453)
Asset : USDC
Protocol : x402
Discovery Endpoints
| Endpoint | Description |
|---|---|
/.well-known/x402.json |
x402 payment manifest (Coinbase Bazaar) |
/.well-known/agent.json |
A2A Agent Card (Google A2A Protocol) |
/health |
Health check + x402 status |
Data Sources
- DeFiLlama — 13,800+ pools, 7,000+ protocols, 500+ chains (yield, staking, RWA, perps)
- Etherscan Gas Oracle — real-time gas prices + pattern-based prediction
- GoPlus Security API — smart contract honeypot + risk detection
No API keys required · No user data stored · Cache: 1-5 min
Tech Stack
- MCP SDK: FastMCP (Python)
- Transport: Streamable HTTP (MCP standard)
- Payment: x402 (USDC on Base)
- Hosting: Railway
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.