AI agent access to on-chain DeFi data: wallet balances, Aave v3 positions, token prices.
Connect Defi to Claude, Cursor or any other MCP client and it stops being a tab you switch to. AI agent access to on-chain DeFi data: wallet balances, Aave v3 positions, token prices. The defi mcp server is what makes that connection.
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.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
get_token_balance — Reads the ERC-20 balance of any wallet address for a supported tokenget_aave_position — Reads a user's full Aave v3 lending/borrowing position: collateral, debt, available borrowing power, and health factor — straight from the Aave v3get_token_price — Reads the current USD price of a token directly from a Chainlink price feed — the same oracle DeFi protocols use internally, so the price issimulate_swap — Simulates 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%hello — Simple connectivity check — confirms the MCP server is reachable and respondingBecause this one is hosted, setup is mostly authentication — you point your client at the endpoint and approve access. Nothing runs on your machine, so there is no runtime to keep patched.
Configuration is passed through the environment: POLYGON_RPC_URL, ARBITRUM_RPC_URL, YOUR_API_KEY. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Defi's toolset — get_token_balance, get_aave_position, get_token_price and 2 more — is a fair guide to whether it matches your workflow. It is maintained by matiosera3-ops; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against Defi's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| get_token_balance | Reads the ERC-20 balance of any wallet address for a supported token. |
| get_aave_position | Reads a user's full Aave v3 lending/borrowing position: collateral, debt, available borrowing power, and health factor — straight from the Aave v3 Pool contract. |
| get_token_price | Reads 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. |
| simulate_swap | Simulates 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. |
| hello | Simple connectivity check — confirms the MCP server is reachable and responding. |
{
"mcpServers": {
"defi": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/inspector"],
"env": {
"POLYGON_RPC_URL": "your-value",
"ARBITRUM_RPC_URL": "your-value",
"YOUR_API_KEY": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| POLYGON_RPC_URL | Endpoint or connection string the server talks to. | Yes |
| ARBITRUM_RPC_URL | Endpoint or connection string the server talks to. | Yes |
| YOUR_API_KEY | Credential the server authenticates with. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.