1. Conduid
  2. Commerce
  3. io.github.Jrigada/foundry-zksync
MCP server · Commerce

io.github.Jrigada/foundry-zksync

Expose foundry-zksync (forge, cast, anvil-zksync) tools for zkSync Era development

Unclaimed commerce
37Low

Scored 6 months ago · breakdown

About io.github.Jrigada/foundry-zksync

io.github.Jrigada/foundry-zksync is an MCP server in the Commerce category: expose foundry-zksync (forge, cast, anvil-zksync) tools for zkSync Era development.

Install

Claude Code
claude mcp add io-github-jrigada-foundry-zksync -- npx -y foundry-zksync-mcp
npx
npx -y foundry-zksync-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (21)

anvil_zksyncStart or check a local anvil-zksync dev node

Parameters not published.

cast_abi_decode`cast abi-decode`

Parameters not published.

cast_abi_encode`cast abi-encode`

Parameters not published.

cast_balance`cast balance` for ETH balance queries

Parameters not published.

cast_call`cast call` for read-only contract interaction

Parameters not published.

cast_calldata_decode`cast calldata-decode`

Parameters not published.

cast_nonce`cast nonce` for transaction nonce queries

Parameters not published.

cast_send`cast send` for state-changing transactions

Parameters not published.

clean`forge clean` to remove build artifacts

Parameters not published.

compile`forge build --zksync`

Parameters not published.

Show all 21 tools
deploy`forge create --zksync` with structured output parsing

Parameters not published.

explainMatch errors/logs against a knowledge base of zkSync gotchas

Parameters not published.

gas_report`forge test --gas-report` for gas usage analysis

Parameters not published.

get_zksync_docsLook up foundry-zksync documentation by topic

Parameters not published.

init`forge init` with automatic zkSync config

Parameters not published.

install`forge install` for dependency management

Parameters not published.

read_foundry_tomlRead and inspect project configuration

Parameters not published.

run_script`forge script --zksync` with broadcast, sender, slow mode

Parameters not published.

snapshot`forge snapshot` for gas benchmarking

Parameters not published.

test`forge test --zksync` with filter/verbosity options

Parameters not published.

verify`forge verify-contract --zksync` (Etherscan & zkSync Explorer)

Parameters not published.

Ask AI

✦

Ask AI about io.github.Jrigada/foundry-zksync

Powered by Claude · Grounded in docs

I know everything about io.github.Jrigada/foundry-zksync. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

foundry-zksync-mcp

An MCP (Model Context Protocol) server that exposes foundry-zksync CLI tools to AI assistants like Claude.

Tools

Tool Description
init forge init with automatic zkSync config
compile forge build --zksync
test forge test --zksync with filter/verbosity options
run_script forge script --zksync with broadcast, sender, slow mode
deploy forge create --zksync with structured output parsing
verify forge verify-contract --zksync (Etherscan & zkSync Explorer)
install forge install for dependency management
clean forge clean to remove build artifacts
gas_report forge test --gas-report for gas usage analysis
snapshot forge snapshot for gas benchmarking
read_foundry_toml Read and inspect project configuration
explain Match errors/logs against a knowledge base of zkSync gotchas
cast_abi_encode cast abi-encode
cast_abi_decode cast abi-decode
cast_calldata_decode cast calldata-decode
cast_call cast call for read-only contract interaction
cast_send cast send for state-changing transactions
cast_balance cast balance for ETH balance queries
cast_nonce cast nonce for transaction nonce queries
get_zksync_docs Look up foundry-zksync documentation by topic
anvil_zksync Start or check a local anvil-zksync dev node

Prerequisites

Quick Start (npx)

No install needed — run directly with npx:

claude mcp add foundry-zksync -- npx -y foundry-zksync-mcp

Or add to claude_desktop_config.json / ~/.claude.json:

{
  "mcpServers": {
    "foundry-zksync": {
      "command": "npx",
      "args": ["-y", "foundry-zksync-mcp"]
    }
  }
}

Install from Source

git clone https://github.com/Jrigada/foundry-zksync-mcp.git
cd foundry-zksync-mcp
npm install
npm run build

Then register with Claude Code:

claude mcp add foundry-zksync node /absolute/path/to/foundry-zksync-mcp/dist/index.js

Key Management

All signing tools (deploy, cast_send, run_script) support multiple wallet methods. Choose based on your security needs:

Local Development (anvil-zksync)

For local dev with well-known test keys, use privateKey directly:

privateKey: "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"

These are the default anvil-zksync test accounts — they hold no real value.

Warning: Never use privateKey with keys that hold real funds. MCP tool parameters are visible to the AI assistant and may be logged.

Recommended for Production: Named Keystores

Keys are encrypted on disk — only the account name travels through MCP.

# Import a private key into a named keystore (interactive, key never shown)
cast wallet import deployer --interactive

# List your keystores
ls ~/.foundry/keystores/

Then use account: "deployer" in any signing tool. Forge will prompt for the password at runtime, or you can point to a password file with passwordFile.

Keystore Files

If you have an existing encrypted keystore JSON file (e.g. from Geth, MetaMask export):

keystore: "/path/to/keystore.json"
passwordFile: "/path/to/password.txt"

Hardware Wallets

ledger: true    # Ledger
trezor: true    # Trezor

Cloud KMS

aws: true       # AWS KMS (set AWS_KMS_KEY_ID env var)
gcp: true       # Google Cloud KMS (set GCP_PROJECT_ID, GCP_LOCATION, etc.)

Signing Method Summary

Method Key Exposure Best For
Hardware wallet None (key never leaves device) High-value production
Cloud KMS None (key in HSM) Automated production
Named keystore (account) None through MCP (encrypted on disk) General production use
Keystore file None through MCP (encrypted on disk) Existing workflows
privateKey Visible to AI assistant Local dev with test keys only

Project Structure

src/
  index.ts              MCP server entry point, registers all 21 tools
  knowledge.ts          Knowledge base (45+ entries) and system addresses
  tools/
    shared.ts           Profile field and env builder shared across forge tools
    init.ts             forge init with zkSync config
    compile.ts          forge build --zksync
    test.ts             forge test --zksync
    run_script.ts       forge script --zksync
    deploy.ts           forge create --zksync (structured output)
    verify.ts           forge verify-contract --zksync
    install.ts          forge install
    clean.ts            forge clean
    gas_report.ts       forge test --gas-report
    snapshot.ts         forge snapshot
    read_foundry_toml.ts  Read project config
    explain.ts          Error/log explanation with knowledge base
    get_zksync_docs.ts  Documentation lookup with embedded content
    cast_abi_encode.ts  cast abi-encode
    cast_abi_decode.ts  cast abi-decode
    cast_calldata_decode.ts  cast calldata-decode
    cast_call.ts        cast call
    cast_send.ts        cast send
    cast_balance.ts     cast balance
    cast_nonce.ts       cast nonce
    anvil_zksync.ts     anvil-zksync node management
  __tests__/            133 tests (vitest)

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About io.github.Jrigada/foundry-zksync

How do I install io.github.Jrigada/foundry-zksync?

Run claude mcp add io-github-jrigada-foundry-zksync -- npx -y foundry-zksync-mcp, then add the server to your MCP client's configuration.

Is io.github.Jrigada/foundry-zksync safe to use with an AI agent?

Its trust score is 37 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is io.github.Jrigada/foundry-zksync still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.