DefiScape MCP
an MCP server that securely proxies the 1inch API for LLM to analyze DeFi revenue opportunities.
Problem Statement
A Model Context Protocol (MCP) server that connects large language models to 1inch’s Fusion+ DeFi APIs.The server exposes a set of LLM-friendly tools and resources so assistants can discover DeFi information, query market data, and analyze cross‑chain swap opportunities.[Token & Market Data]getTokenInfo – fetch token metadata and USD prices.getPopularTokens – list verified/whitelisted tokens on a chain.compareTokenPrices – check a token’s price across multiple chains.findTokenBySymbol / searchTokensByName – resolve token addresses.getSupportedChains – enumerate 1inch‑supported networks.[DeFi Opportunities]findDeFiEarningOpportunities – query Fusion+ quotes to estimate cross‑chain swap returns.getActiveFusionOrders – list open Fusion+ orders for resolvers.scanAllProfitOpportunities – batch analysis of all active orders (experimental).
Solution
This project itself is built by utilizing LLMs fully.Made 1inch dev portal crawler to get all info as PDFs, for easy reading from coding LLM agents. 1inch dev portal is good to read by human, but it is hard for LLMs and normal crawler to get all docs, so I have made document crawler by python + playwright.Using docs crawled, I have made a toolset for registering MCP serverBuilt MCP server using official modelcontextprotocol SDK, that can be connected from OpenAI playground via http.
Hackathon
ETHGlobal Unite
2025
Contributors
- rtree
24 contributions