An MCP server that provides direct on-chain DeFi data access on Polygon and Arbitrum, including ERC-20 wallet balances, Aave v3 lending/borrowing positions, token prices from Chainlink, and Uniswap v3 swap simulations. It reads data from the chain using the user's RPC provider and does not rely on a centralized API.
From the registry: AI agent access to on-chain DeFi data on Polygon & Arbitrum: balances, positions, prices.
$ pip install defi-mcpPlease install the `defi-mcp` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Install Python 3.10+** — Python 3.10 or newer is required to run the server.
- **Install uv** — The README's MCP configuration runs the server with uvx, so uv must be installed and available on your system. (https://docs.astral.sh/uv/)
- **Obtain RPC provider URL(s)** — Set up RPC access for the EVM chains you want to use, such as Polygon and/or Arbitrum. An Alchemy free-tier endpoint is suggested in the README. (https://www.alchemy.com/)
Optional prerequisites:
- Optional package install — The README also shows pip install defi-mcp, but the provided MCP config uses uvx defi-mcp, which is the simpler portable path. Run: `pip install defi-mcp`
Canonical MCP server config (stdio transport):
- command: `uvx`
- args: ["defi-mcp"]
- optional environment variables:
- `POLYGON_RPC_URL`: RPC URL for Polygon mainnet. Required if you want Polygon-backed tools to work. (example: `https://polygon-mainnet.g.alchemy.com/v2/<your-api-key>`)
- `ARBITRUM_RPC_URL`: RPC URL for Arbitrum mainnet. Required if you want Arbitrum-backed tools to work. (example: `https://arb-mainnet.g.alchemy.com/v2/<your-api-key>`)
Note: The server is configured as a stdio MCP server using uvx. Each chain only needs its own RPC URL configured; calls for a chain without its RPC URL will fail gracefully.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.POLYGON_RPC_URLrequiredRPC URL for Polygon mainnet, used to read on-chain data.ARBITRUM_RPC_URLrequiredRPC URL for Arbitrum mainnet, used to read on-chain data.Meta Ads MCP (Facebook + Instagram) - analyze performance, manage budgets, pause campaigns.