@maxencerb/foundry-mcp
npm
v0.1.3
Source verified
Published by maxencerb — publish provenance cryptographically ties this package to that repository. That is proof of origin, not an official vendor package.
MCP server for the Foundry Ethereum development toolkit (Forge, Cast, Anvil, Chisel)
The grade answers one question — how safe is this server for you to adopt — so it is computed in two auditable stages. Nothing below is an opinion or an LLM's guess; every line is a real term the deterministic engine applied, and the same input always yields the same number.
1. Threat score — 100 − 0 = 100. What the published surface and source actually contain:
The deterministic scan raised no scored threat in the surface it inspected — the threat score stayed at 100. Capability observations and advisory notes are recorded but never lower it.
2. Client adoption risk — 100 − 6 = 94. Three small, subtract-only factors that reflect your risk in adopting it — a clean scan proves less on a powerful, unverified or barely-inspectable package, so the grade says so plainly:
| Points | Adoption-risk factor |
|---|---|
| −6 | capability blast radius (high) — client exposure if the model is manipulated |
Capability observations and info notes are shown under Findings but never scored.
Open any row's finding below for the file, line and evidence behind a deduction.
Tool "chisel_eval" appears to run shell commands or evaluate code (keyword "eval" in tool name). Arbitrary execution driven by model input is one of the most dangerous MCP capabilities; combined with any untrusted input it becomes RCE.
Fix: Sandbox execution, allowlist commands/arguments, and never pass model output to a shell unescaped.
Location: tool chisel_eval
Tool "forge_script" appears to run shell commands or evaluate code (parameter "script"). Arbitrary execution driven by model input is one of the most dangerous MCP capabilities; combined with any untrusted input it becomes RCE.
Fix: Sandbox execution, allowlist commands/arguments, and never pass model output to a shell unescaped.
Location: tool forge_script
In the server's implementation (`src/resources/project.ts:87`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: const result = await exec("forge", ["remappings"], projectPath); return { contents: [ {
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server src/resources/project.ts
In the server's implementation (`src/tools/cast.ts:41`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: const result = await exec("cast", ["block", ...args]); return textContent(formatOutput(result)); } );
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server src/tools/cast.ts
In the server's implementation (`src/tools/chisel.ts:116`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: const result = await exec("chisel", ["list"]); return textContent(formatOutput(result)); } ); // chise
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server src/tools/chisel.ts
In the server's implementation (`src/tools/forge.ts:30`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: const result = await exec("forge", ["init", ...args], context.projectPath); return textContent(formatOutput(res
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server src/tools/forge.ts
In the server's implementation (`src/tools/help.ts:27`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: const result = await exec("forge", args); return textContent(formatOutput(result)); } ); // cast --hel
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server src/tools/help.ts
In the server's implementation (`src/utils/exec.ts:3`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: export async function exec( command: string, args: string[] = [], cwd?: string ): Promise<CommandResult> { con
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server src/utils/exec.ts
Tool "chisel_eval" takes a command-shaped parameter "code" with no enum/pattern constraint. Free-form, model- or attacker-controlled arguments reaching a shell is the command-injection precondition.
Fix: Constrain the parameter (enum/pattern), or build the command from a fixed template with escaped args.
Location: tool chisel_eval · inputSchema.properties.code
Tool "forge_script" takes a command-shaped parameter "script" with no enum/pattern constraint. Free-form, model- or attacker-controlled arguments reaching a shell is the command-injection precondition.
Fix: Constrain the parameter (enum/pattern), or build the command from a fixed template with escaped args.
Location: tool forge_script · inputSchema.properties.script
Tool "chisel_eval" can mutate/egress but declares no destructiveHint. Clients that don't default to spec-safe behavior may not prompt before running it.
Fix: Declare accurate annotations, and gate destructive tools on user confirmation regardless.
Location: tool chisel_eval
Tool "forge_script" can mutate/egress but declares no destructiveHint. Clients that don't default to spec-safe behavior may not prompt before running it.
Fix: Declare accurate annotations, and gate destructive tools on user confirmation regardless.
Location: tool forge_script
Each tool and what it can reach — statically extracted from the published source.
chisel_evalruns code / shellforge_scriptruns code / shellanvil_getAccountsno sensitive capabilityanvil_helpno sensitive capabilityanvil_impersonateAccountno sensitive capabilityanvil_increaseTimeno sensitive capabilityanvil_mineno sensitive capabilityanvil_resetno sensitive capabilityanvil_revertno sensitive capabilityanvil_setAutomineno sensitive capabilityanvil_setBalanceno sensitive capabilityanvil_setCodeno sensitive capabilityanvil_setNextBlockTimestampno sensitive capabilityanvil_setStorageAtno sensitive capabilityanvil_snapshotno sensitive capabilityanvil_startno sensitive capabilityanvil_statusno sensitive capabilityanvil_stopno sensitive capabilityanvil_stopImpersonatingAccountno sensitive capabilitycast_4byteno sensitive capabilitycast_4byte_decodeno sensitive capabilitycast_abi_decodeno sensitive capabilitycast_abi_encodeno sensitive capabilitycast_ageno sensitive capabilitycast_balanceno sensitive capabilitycast_base_feeno sensitive capabilitycast_blockno sensitive capabilitycast_block_numberno sensitive capabilitycast_callno sensitive capabilitycast_calldatano sensitive capabilitycast_calldata_decodeno sensitive capabilitycast_chainno sensitive capabilitycast_chain_idno sensitive capabilitycast_clientno sensitive capabilitycast_codeno sensitive capabilitycast_compute_addressno sensitive capabilitycast_concat_hexno sensitive capabilitycast_create2no sensitive capabilitycast_estimateno sensitive capabilitycast_format_bytes32no sensitive capabilitycast_from_weino sensitive capabilitycast_gas_priceno sensitive capabilitycast_helpno sensitive capabilitycast_interfaceno sensitive capabilitycast_keccakno sensitive capabilitycast_logsno sensitive capabilitycast_lookup_addressno sensitive capabilitycast_nonceno sensitive capabilitycast_parse_bytes32no sensitive capabilitycast_publishno sensitive capabilitycast_receiptno sensitive capabilitycast_resolve_nameno sensitive capabilitycast_runno sensitive capabilitycast_sendno sensitive capabilitycast_signo sensitive capabilitycast_sig_eventno sensitive capabilitycast_storageno sensitive capabilitycast_to_baseno sensitive capabilitycast_to_decno sensitive capabilitycast_to_hexno sensitive capabilitycast_to_weino sensitive capabilitycast_txno sensitive capabilitycast_wallet_addressno sensitive capabilitycast_wallet_newno sensitive capabilitycast_wallet_signno sensitive capabilitychisel_clear_cacheno sensitive capabilitychisel_helpno sensitive capabilitychisel_listno sensitive capabilitychisel_loadno sensitive capabilitychisel_runno sensitive capabilitychisel_viewno sensitive capabilityforge_bindno sensitive capabilityforge_buildno sensitive capabilityforge_cleanno sensitive capabilityforge_coverageno sensitive capabilityforge_createno sensitive capabilityforge_docno sensitive capabilityforge_flattenno sensitive capabilityforge_fmtno sensitive capabilityforge_helpno sensitive capabilityforge_initno sensitive capabilityforge_inspectno sensitive capabilityforge_installno sensitive capabilityforge_remappingsno sensitive capabilityforge_selectorsno sensitive capabilityforge_snapshotno sensitive capabilityforge_testno sensitive capabilityforge_treeno sensitive capabilityforge_updateno sensitive capabilityforge_verifyno sensitive capabilityfoundry_list_commandsno sensitive capabilityfoundry_versionno sensitive capabilityScan history per published version. The engine is deterministic — the same version always yields the same score, so a changed score means the package itself changed.
| Version | Score | Findings | Engine | Scanned |
|---|---|---|---|---|
v0.1.3 latest |
A 94/100 | 12 | 1.13.0 | 2026-09-07 |
Show this server's live Trust Score in your README, docs or website. The badge is served straight from the registry and updates automatically after every rescan — no API key needed. It links back to this page, so anyone who sees the grade can also read the findings behind it instead of taking a number on faith.
The score above is reproducible: the same package version always yields the same result. Run it locally or over the free API — no account, no LLM, fully deterministic.
npx mcptrustchecker scan @maxencerb/foundry-mcp --online
Independent packages implementing the same tool, scanned with the same engine. Compare all 5 side by side →
A EVM-compatible blockchain toolkit for your AI Agents powered by Foundry
A simple, lightweight and fast MCP (Model Context Protocol) server for Foundry (Solidity/EVM).
MCP server for spec-driven development management
A simple, lightweight and fast MCP (Model Context Protocol) server that provides Solidity development capabilities using the Foundry toolchain (Forge, Cast, and Anvil)
<img src="./public/logo.png" alt="1Money Logo" width="200"/>
Signed verification attestations for agent decisions: business, price, freshness, claim checks.
Actual Budget MCP server exposing API functionality
MCP server for Actual Budget - query and manage your personal finances through Claude
The Adyen Model Context Protocol server allows you to integrate with Adyen APIs through LLMs function calling utilizing various Clients. It currently supports the following tools:
Trusted agent-commerce hub: discover, trust-check, and route x402 payments with failover.