Defi MCP Server

AI agent access to on-chain DeFi data: wallet balances, Aave v3 positions, token prices.

Remote serverstreamable-httpPython

What is the Defi MCP server?

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.

What the server does

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.

Available tools

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 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
  • 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
  • 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%
  • hello — Simple connectivity check — confirms the MCP server is reachable and responding

Installation

Because 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.

Credentials and setup notes

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.

Where it fits

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.

Worth knowing first

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
get_token_balanceReads the ERC-20 balance of any wallet address for a supported token.
get_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.
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.
simulate_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.
helloSimple connectivity check — confirms the MCP server is reachable and responding.

How to install the Defi MCP server

{
  "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.

Configuration

VariableDescriptionRequired
POLYGON_RPC_URLEndpoint or connection string the server talks to.Yes
ARBITRUM_RPC_URLEndpoint or connection string the server talks to.Yes
YOUR_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Defi to get token balance.
  • Use Defi to get aave position.
  • Use Defi to get token price.

Frequently asked questions

It connects Defi to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (get_token_balance, get_aave_position, get_token_price, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Defi directly.