MCP.Market

Foundry Zksync MCP server

by Jrigada·io.github.Jrigada/foundry-zksync·v0.2.3·1 stars

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

B75/100grade B
What users say
No reviews yet
Be the first
Safety scan
B75/100

full report

Adoption
New

1 stars43 downloads/wk

Reviews

Write one

Nobody has reviewed Foundry Zksync yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Foundry Zksync tools (20, 6 write)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • anvil_zksync

    Start or check a local anvil-zksync development node.

  • 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)

  • cast_nonce

    Query the transaction nonce of an address (cast nonce).

  • cast_sendwrite action

    Send a state-changing transaction to a deployed contract (cast send)

  • cleanwrite action

    Remove build artifacts (out/ and zkout/) from a foundry project (forge clean)

  • compile

    Compile a foundry-zksync project (forge build --zksync).

  • deploywrite action

    Deploy a contract to a zkSync network (forge create --zksync).

  • explain

    Explain raw output from foundry-zksync: error messages, logs, or transactions.

  • gas_reportwrite action

    Run tests and generate a gas usage report (forge test --zksync --gas-report).

  • get_zksync_docs

    Look up foundry-zksync documentation by topic. Returns URLs to the foundry-zksync book

  • init

    Scaffold a new foundry project and add [profile.default.zksync] config (forge init)

  • install

    Install dependencies for a foundry project (forge install)

  • read_foundry_toml

    Read and return the contents of foundry.toml from a project.

  • run_scriptwrite action

    Run a forge script targeting zkSync (forge script --zksync)

  • snapshotwrite action

    Create or compare gas snapshots (forge snapshot --zksync).

  • verify

    Verify a deployed contract on a block explorer (forge verify-contract --zksync).

Public scan report

scanner v0.1.10 · 2026-09-28 · same rubric, same numbers if you re-run it

no findings
  • Code scan49 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 216 days ago4/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 75/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How Foundry Zksync compares

Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
75/100
higher than 45% of 48,255 servers
Tools
20
the typical server has 7
Tools that change things
30%
typical: 0%. Fewer write tools means less an agent can break
GitHub stars
1
more than 65% of 28,688 servers
Downloads a week
43
more than 35% of 12,191 servers with a package

What its tools let an agent do: 13 read · 4 change · 3 run or deploy

Install Foundry Zksync in Claude Code, Cursor or VS Code

Runs npx -y foundry-zksync-mcp on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add foundry-zksync -- npx -y foundry-zksync-mcp
Add to Cursor

What the publisher says

From the Foundry Zksync repository's README, as published. We do not edit it. Read it on GitHub

foundry-zksync-mcp

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

Tools

Prerequisites

  • Node.js >= 18
  • foundry-zksync installed (foundryup-zksync)

Quick Start (npx)

No install needed — run directly with npx:

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

Or add to claudedesktopconfig.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, castsend, runscript) 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

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Foundry Zksync: common questions

Is Foundry Zksync MCP server safe?
Mostly: it is graded B (75/100). Read the Foundry Zksync safety report
How do I install Foundry Zksync?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Foundry Zksync need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is Foundry Zksync maintained?
The last commit was 254 days ago (2026-02-23). The latest release is v0.2.3.
How does Foundry Zksync compare with other MCP servers?
safety score 75/100 (higher than 45% of 48,255 servers); tools 20 (the typical server has 7); tools that change things 30% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.