get_contract_abi

Pack: etherscan · Endpoint: https://gateway.pipeworx.io/etherscan/mcp

Verified contract ABI as JSON (if the contract is verified on Etherscan).

Parameters

NameTypeRequiredDescription
addressstringyesContract address
chainstringnoChain slug or chain ID (default ethereum)

Example call

curl -X POST https://gateway.pipeworx.io/etherscan/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_contract_abi","arguments":{}}}'

Response shape

Always returns: chain_id, address, verified, abi

FieldTypeDescription
chain_idnumberNumeric chain ID
addressstringContract address
verifiedbooleanWhether contract is verified on Etherscan
abiarray | nullParsed ABI array or null if not verified
Full JSON Schema
{
  "type": "object",
  "properties": {
    "chain_id": {
      "type": "number",
      "description": "Numeric chain ID"
    },
    "address": {
      "type": "string",
      "description": "Contract address"
    },
    "verified": {
      "type": "boolean",
      "description": "Whether contract is verified on Etherscan"
    },
    "abi": {
      "type": [
        "array",
        "null"
      ],
      "description": "Parsed ABI array or null if not verified"
    }
  },
  "required": [
    "chain_id",
    "address",
    "verified",
    "abi"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "etherscan": {
      "url": "https://gateway.pipeworx.io/etherscan/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 21, 2026