21 tools from the Foundry Zksync MCP Server, categorised by risk level.
View the Foundry Zksync policy →cast_abi_decode Decode ABI-encoded hex data back into human-readable values (cast abi-decode) cast_abi_encode ABI-encode values for a given Solidity function/constructor signature (cast abi-encode) cast_balance Query the ETH balance of an address (cast balance) cast_call Read-only call to a deployed contract — no gas spent, no state change (cast call) cast_calldata_decode Decode raw transaction calldata (with 4-byte selector) into function arguments (cast calldata-decode) explain Explain raw output from foundry-zksync: error messages, logs, or transactions. Matches against a knowledge base of known zkSync gotchas and returns... get_zksync_docs Look up foundry-zksync documentation by topic. Returns URLs to the foundry-zksync book for installation, config, testing, deployment, cheatcodes, n... read_foundry_toml Read and return the contents of foundry.toml from a project. Useful for inspecting profiles, zkSync config, library links, and other settings. snapshot Create or compare gas snapshots (forge snapshot --zksync). Use diff=true to compare against existing .gas-snapshot, check=true to fail on changes. test Run tests in a foundry-zksync project (forge test --zksync). Check foundry.toml for [profile.X] sections — if the test directory differs per profil... verify Verify a deployed contract on a block explorer (forge verify-contract --zksync). Supports Etherscan (requires API key) and zkSync Explorer (no key ... anvil_zksync Start or check a local anvil-zksync development node. Supports forking from mainnet/testnet. Default port: 8011. 3/5 cast_nonce Query the transaction nonce of an address (cast nonce). Note: on zkSync this returns the TX nonce only, not the deploy nonce. 3/5 compile Compile a foundry-zksync project (forge build --zksync). Check foundry.toml for [profile.X.zksync] sections — if zkSync sources live under a specif... 3/5 deploy Deploy a contract to a zkSync network (forge create --zksync). Returns structured output with contract address, tx hash, and deployer. 3/5 gas_report Run tests and generate a gas usage report (forge test --zksync --gas-report). Note: zkSync gas values are aggregate-only (no computation/pubdata br... 3/5 run_script Run a forge script targeting zkSync (forge script --zksync) 3/5 The Foundry Zksync MCP server exposes 21 tools across 4 categories: Read, Write, Destructive, Execute.
Use Intercept, the open-source MCP proxy. Write YAML rules for each tool — rate limits, argument validation, or deny rules — then run Intercept in front of the Foundry Zksync server.
Foundry Zksync tools are categorised as Read (11), Write (3), Destructive (1), Execute (6). Each category has a recommended default policy.
Open source. One binary. Zero dependencies.
npx -y @policylayer/intercept