🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

base-contract-reader-mcp

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base-contract-reader-mcp

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.

latest
npmnpm
Version
1.0.1
Version published
Weekly downloads
4
-50%
Maintainers
1
Weekly downloads
 
Created
Source

base-contract-reader-mcp

Free MCP server for AI agents to read any smart contract on Base mainnet. No private key needed — all operations are read-only.

Tools

ToolDescription
read_contractCall any view/pure function on a contract using a human-readable ABI fragment
get_contract_codeGet the bytecode deployed at an address
get_eventsQuery past events from a contract within a block range
get_storageRead a raw storage slot at an address
multicall_readBatch multiple view/pure calls in one request
get_contract_balanceGet the ETH balance of any address

Install

npx -y base-contract-reader-mcp

Configure

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.

Examples

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" }
  ]
})

License

MIT

Keywords

mcp

FAQs

Package last updated on 07 Mar 2026

Did you know?

Socket

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.

Install

Related posts