Expose foundry-zksync (forge, cast, anvil-zksync) tools for zkSync Era development
Expose foundry-zksync (forge, cast, anvil-zksync) tools for zkSync Era development. That is what the foundry mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.
An MCP (Model Context Protocol) server that exposes foundry-zksync CLI tools to AI assistants like Claude.
The server publishes 14 tools. What each one is for:
init — forge init with automatic zkSync configcompile — forge build --zksynctest — forge test --zksync with filter/verbosity optionsrun_script — forge script --zksync with broadcast, sender, slow modedeploy — forge create --zksync with structured output parsingverify — forge verify-contract --zksync (Etherscan & zkSync Explorer)clean — forge clean to remove build artifactsgas_report — forge test --gas-report for gas usage analysissnapshot — forge snapshot for gas benchmarkingread_foundry_toml — Read and inspect project configurationexplain — Match errors/logs against a knowledge base of zkSync gotchascast_abi_encode — cast abi-encodeConfiguration is passed through the environment: AWS_KMS_KEY_ID, GCP_PROJECT_ID. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
foundryup-zksync)foundry-zksync-mcp on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.
This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Foundry's toolset — init, compile, test and 11 more — is a fair guide to whether it matches your workflow. It is maintained by Jrigada; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| 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) |
| 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 |
{
"mcpServers": {
"foundry-zksync": {
"command": "npx",
"args": ["-y", "foundry-zksync-mcp"],
"env": {
"AWS_KMS_KEY_ID": "your-value",
"GCP_PROJECT_ID": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
foundryup-zksync)| Variable | Description | Required |
|---|---|---|
| AWS_KMS_KEY_ID | Credential the server authenticates with. | Yes |
| GCP_PROJECT_ID | Configuration value read at startup. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.