get_contract_source
Pack: etherscan · Endpoint: https://gateway.pipeworx.io/etherscan/mcp
Verified contract source code, compiler version, optimization settings, and license.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
address | string | yes | Contract address |
chain | string | no | Chain 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_source","arguments":{}}}'
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.