Skip to content
VS Code

web3agent for VS Code

io.github.apegurus/web3agent

Web3 MCP proxy for AI agents: DeFi swaps, bridges, market data, wallets, and gated writes.

client:VS Code transport:stdio runtime:npm

Install web3agent in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "chain-id",
      "description": "CHAIN_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "confirm-writes",
      "description": "CONFIRM_WRITES",
      "password": true
    },
    {
      "type": "promptString",
      "id": "etherscan-api-key",
      "description": "ETHERSCAN_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "zerox-api-key",
      "description": "ZEROX_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "coingecko-api-key",
      "description": "COINGECKO_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ccxt-config-path",
      "description": "CCXT_CONFIG_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ows-passphrase",
      "description": "OWS_PASSPHRASE",
      "password": true
    }
  ],
  "servers": {
    "web3agent": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "web3agent"
      ],
      "env": {
        "CHAIN_ID": "${input:chain-id}",
        "CONFIRM_WRITES": "${input:confirm-writes}",
        "ETHERSCAN_API_KEY": "${input:etherscan-api-key}",
        "ZEROX_API_KEY": "${input:zerox-api-key}",
        "COINGECKO_API_KEY": "${input:coingecko-api-key}",
        "CCXT_CONFIG_PATH": "${input:ccxt-config-path}",
        "OWS_PASSPHRASE": "${input:ows-passphrase}"
      }
    }
  }
}

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

web3agent in other clients