Foundry (maxencerb) MCP Server

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

Trust grade
A
94/100
Last scanned get badge →
Trust
A · 94/100
Adoption risk for you: the threat score, then adjusted down for blast radius, publisher verification and how much the scan could see. Deterministic; every point is auditable.
Capability
High
Blast radius if it went rogue — what the server’s tools could reach. Independent of trust.
Coverage
Source
How much the scan could actually inspect. Shallow coverage is stated, never hidden.
Share this Trust Score
𝕏 Share LinkedIn Reddit
A Why this grade threat 100 − adoption risk = 94/100

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:

PointsAdoption-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.

Findings 12

high Tool "chisel_eval" exposes command/code executionMTC-CAP-001

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

high Tool "forge_script" exposes command/code executionMTC-CAP-001

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

high Shell/command execution in server code (src/resources/project.ts)MTC-SRC-002

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

high Shell/command execution in server code (src/tools/cast.ts)MTC-SRC-002

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

high Shell/command execution in server code (src/tools/chisel.ts)MTC-SRC-002

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

high Shell/command execution in server code (src/tools/forge.ts)MTC-SRC-002

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

high Shell/command execution in server code (src/tools/help.ts)MTC-SRC-002

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

high Shell/command execution in server code (src/utils/exec.ts)MTC-SRC-002

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

medium Unconstrained command parameter "code" on "chisel_eval"MTC-CAP-006

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

medium Unconstrained command parameter "script" on "forge_script"MTC-CAP-006

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

low Mutating tool "chisel_eval" declares no destructiveHintMTC-CAP-005

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

low Mutating tool "forge_script" declares no destructiveHintMTC-CAP-005

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

Tools 92

Each tool and what it can reach — statically extracted from the published source.

  • chisel_evalruns code / shell
  • forge_scriptruns code / shell
  • anvil_getAccountsno sensitive capability
  • anvil_helpno sensitive capability
  • anvil_impersonateAccountno sensitive capability
  • anvil_increaseTimeno sensitive capability
  • anvil_mineno sensitive capability
  • anvil_resetno sensitive capability
  • anvil_revertno sensitive capability
  • anvil_setAutomineno sensitive capability
Show 82 more tools ↓
  • anvil_setBalanceno sensitive capability
  • anvil_setCodeno sensitive capability
  • anvil_setNextBlockTimestampno sensitive capability
  • anvil_setStorageAtno sensitive capability
  • anvil_snapshotno sensitive capability
  • anvil_startno sensitive capability
  • anvil_statusno sensitive capability
  • anvil_stopno sensitive capability
  • anvil_stopImpersonatingAccountno sensitive capability
  • cast_4byteno sensitive capability
  • cast_4byte_decodeno sensitive capability
  • cast_abi_decodeno sensitive capability
  • cast_abi_encodeno sensitive capability
  • cast_ageno sensitive capability
  • cast_balanceno sensitive capability
  • cast_base_feeno sensitive capability
  • cast_blockno sensitive capability
  • cast_block_numberno sensitive capability
  • cast_callno sensitive capability
  • cast_calldatano sensitive capability
  • cast_calldata_decodeno sensitive capability
  • cast_chainno sensitive capability
  • cast_chain_idno sensitive capability
  • cast_clientno sensitive capability
  • cast_codeno sensitive capability
  • cast_compute_addressno sensitive capability
  • cast_concat_hexno sensitive capability
  • cast_create2no sensitive capability
  • cast_estimateno sensitive capability
  • cast_format_bytes32no sensitive capability
  • cast_from_weino sensitive capability
  • cast_gas_priceno sensitive capability
  • cast_helpno sensitive capability
  • cast_interfaceno sensitive capability
  • cast_keccakno sensitive capability
  • cast_logsno sensitive capability
  • cast_lookup_addressno sensitive capability
  • cast_nonceno sensitive capability
  • cast_parse_bytes32no sensitive capability
  • cast_publishno sensitive capability
  • cast_receiptno sensitive capability
  • cast_resolve_nameno sensitive capability
  • cast_runno sensitive capability
  • cast_sendno sensitive capability
  • cast_signo sensitive capability
  • cast_sig_eventno sensitive capability
  • cast_storageno sensitive capability
  • cast_to_baseno sensitive capability
  • cast_to_decno sensitive capability
  • cast_to_hexno sensitive capability
  • cast_to_weino sensitive capability
  • cast_txno sensitive capability
  • cast_wallet_addressno sensitive capability
  • cast_wallet_newno sensitive capability
  • cast_wallet_signno sensitive capability
  • chisel_clear_cacheno sensitive capability
  • chisel_helpno sensitive capability
  • chisel_listno sensitive capability
  • chisel_loadno sensitive capability
  • chisel_runno sensitive capability
  • chisel_viewno sensitive capability
  • forge_bindno sensitive capability
  • forge_buildno sensitive capability
  • forge_cleanno sensitive capability
  • forge_coverageno sensitive capability
  • forge_createno sensitive capability
  • forge_docno sensitive capability
  • forge_flattenno sensitive capability
  • forge_fmtno sensitive capability
  • forge_helpno sensitive capability
  • forge_initno sensitive capability
  • forge_inspectno sensitive capability
  • forge_installno sensitive capability
  • forge_remappingsno sensitive capability
  • forge_selectorsno sensitive capability
  • forge_snapshotno sensitive capability
  • forge_testno sensitive capability
  • forge_treeno sensitive capability
  • forge_updateno sensitive capability
  • forge_verifyno sensitive capability
  • foundry_list_commandsno sensitive capability
  • foundry_versionno sensitive capability

What this scan could not see

Versions 1

Scan 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.

VersionScoreFindingsEngineScanned
v0.1.3 latest A 94/100 12 1.13.0 2026-09-07

Embed this score

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.

MCP Trust Score: A · 94/100
Markdown (GitHub README)
[![MCP Trust Score](https://mcptrustchecker.com/registry/maxencerb-foundry-mcp/badge.svg)](https://mcptrustchecker.com/registry/maxencerb-foundry-mcp)
HTML
<a href="https://mcptrustchecker.com/registry/maxencerb-foundry-mcp"><img src="https://mcptrustchecker.com/registry/maxencerb-foundry-mcp/badge.svg" alt="MCP Trust Score" height="20"></a>
Prefer shields.io styling? Point it at https://mcptrustchecker.com/registry/maxencerb-foundry-mcp/badge.json via https://img.shields.io/endpoint?url=…

Verify this score yourself

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

Use the free API → How scoring works

Other implementations of Foundry 4

Independent packages implementing the same tool, scanned with the same engine. Compare all 5 side by side →

More in Finance & Commerce