Skip to content
VS Code

defi mcp for VS Code

io.github.matiosera3-ops/defi-mcp

AI agent access to on-chain DeFi data on Polygon & Arbitrum: balances, positions, prices.

client:VS Code transport:stdio runtime:pypi

Install defi mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "polygon-rpc-url",
      "description": "POLYGON_RPC_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "arbitrum-rpc-url",
      "description": "ARBITRUM_RPC_URL",
      "password": true
    }
  ],
  "servers": {
    "defi-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "defi-mcp"
      ],
      "env": {
        "POLYGON_RPC_URL": "${input:polygon-rpc-url}",
        "ARBITRUM_RPC_URL": "${input:arbitrum-rpc-url}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

defi mcp in other clients