
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
base-contract-reader-mcp
Advanced tools
Free MCP server for AI agents to read any smart contract on Base mainnet. Call view functions, get bytecode, query events, read storage slots, batch calls, and check balances — zero config, no private key needed.
Free MCP server for AI agents to read any smart contract on Base mainnet. No private key needed — all operations are read-only.
| Tool | Description |
|---|---|
read_contract | Call any view/pure function on a contract using a human-readable ABI fragment |
get_contract_code | Get the bytecode deployed at an address |
get_events | Query past events from a contract within a block range |
get_storage | Read a raw storage slot at an address |
multicall_read | Batch multiple view/pure calls in one request |
get_contract_balance | Get the ETH balance of any address |
npx -y base-contract-reader-mcp
Add to your .mcp.json (Claude Code, Cursor, etc.):
{
"mcpServers": {
"base-contract-reader": {
"command": "npx",
"args": ["-y", "base-contract-reader-mcp"],
"env": {
"RPC_URL": "https://mainnet.base.org"
}
}
}
}
RPC_URL is optional and defaults to https://mainnet.base.org.
Read an ERC-20 token name:
read_contract({
contract_address: "0x...",
abi: ["function name() view returns (string)"],
function_name: "name"
})
Get ETH balance:
get_contract_balance({ address: "0x..." })
Batch multiple reads:
multicall_read({
calls: [
{ contract_address: "0x...", abi: ["function name() view returns (string)"], function_name: "name" },
{ contract_address: "0x...", abi: ["function totalSupply() view returns (uint256)"], function_name: "totalSupply" }
]
})
MIT
FAQs
Free MCP server for AI agents to read any smart contract on Base mainnet. Call view functions, get bytecode, query events, read storage slots, batch calls, and check balances — zero config, no private key needed.
The npm package base-contract-reader-mcp receives a total of 1 weekly downloads. As such, base-contract-reader-mcp popularity was classified as not popular.
We found that base-contract-reader-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.