AI agent access to on-chain DeFi data: wallet balances, Aave v3 positions, token prices.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
An MCP (Model Context Protocol) server that gives AI agents direct, on-chain access to DeFi data on EVM chains β wallet balances, Aave v3 lending positions, and live token prices, with no centralized API in the middle.
Status: Live and functional. 5 tools available today, more on the roadmap.
Most "DeFi + AI" integrations route through a centralized API that can rate-limit, paywall, or simply disappear. defi-mcp talks directly to the chain (via your own RPC provider) and to first-party oracles (Chainlink), so the data your AI agent gets is exactly what's on-chain β verifiable, and not dependent on a third-party API staying online.
get_token_balanceReads the ERC-20 balance of any wallet address for a supported token.
Supported tokens:
USDC, USDC.e, USDT, WETH, WMATIC, WBTC, DAI, AAVEUSDC, USDC.e (bridged), USDT, WETH, WBTC, ARBget_aave_positionReads a user's full Aave v3 lending/borrowing position: collateral, debt, available borrowing power, and health factor β straight from the Aave v3 Pool contract.
A health_factor below 1.0 means the position is at risk of liquidation. A null health factor means the user has no outstanding debt.
get_token_priceReads the current USD price of a token directly from a Chainlink price feed β the same oracle DeFi protocols use internally, so the price is consistent with what get_aave_position reports.
Supported feeds:
ETH/WETH, MATIC/WMATIC, WBTC, USDC, USDTETH/WETH, WBTC, ARB, USDC, USDTsimulate_swapSimulates a Uniswap v3 swap on-chain via the QuoterV2 contract β no transaction submitted, no wallet needed. Tries all four fee tiers (0.01%, 0.05%, 0.3%, 1%) and returns the best available output amount.
Supported tokens:
USDC, USDC.e, USDT, WETH, WMATIC, WBTC, DAI, AAVEUSDC, USDC.e (bridged), USDT, WETH, WBTC, ARBIf no pool exists for the pair at any fee tier, returns {"error": "No liquidity found for this pair on any fee tier"}.
helloSimple connectivity check β confirms the MCP server is reachable and responding.
| Chain | get_token_balance | get_aave_position | get_token_price | simulate_swap |
|---|---|---|---|---|
| Polygon | β | β | β | β |
| Arbitrum | β | β | β | β |
Requires Python 3.10+ and an RPC provider API key (e.g. Alchemy, free tier works).
Create a .env file in your working directory (see .env.example):
Each chain only needs its RPC URL configured. Tools called with chain="arbitrum" will fail gracefully if ARBITRUM_RPC_URL is not set.
Add this to your Claude Desktop MCP config (claude_desktop_config.json):
Restart Claude Desktop, and the tools above will be available to the model.
You can test the server directly with the official MCP Inspector:
defi-mcp-cloud β hosted tier with MEV-specific tools, caching, and higher rate limitsOpen-core model: this repository (MIT licensed) covers standard on-chain read tools. A separate defi-mcp-cloud will offer a hosted version with MEV-related tools, request caching, and managed RPC access for users who don't want to run their own infrastructure.
web3.py snippets. Useful if you want to read on-chain state directly via eth_getStorageAt instead of calling view functions β the lower-level approach behind some of what this server does under the hood.Issues and PRs welcome. This is an early-stage project β feedback on what tools would actually be useful to you is especially valuable.
MIT
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/defi-mcp)<a href="https://allmcps.com/mcp/defi-mcp"><img src="https://allmcps.com/api/badge/defi-mcp?style=directory" alt="Defi MCP on AllMCPs" /></a>