foundry-mcp (maxencerb/foundry-mcp) is an MCP server listed on the M8ven Trust Index. It scores 68 out of 100, grade C. It declares 92 tools. No publisher has claimed this listing.
An MCP server providing 80+ tools for Foundry Ethereum development, enabling AI assistants to compile, test, deploy smart contracts, interact with EVM chains, and manage local nodes via Forge, Cast, Anvil, and Chisel.
Caution. Specific findings reduced this grade. They are listed on the page. Grades reflect the full trust pyramid: code, verification depth, and reputation. New projects cap at C until adoption is earned.
How we verified
Verified is a snapshot. Live keeps it current, and builds your track record.
⚡ Connect GitHub → continuous verification on every pushwhy connect →Who stands behind it
maxencerb
Source: Glama
Claim it to get a verified publisher badge, a free copy of our full audit findings, and direct contact for any high-priority issues we find. Or connect your repo for our deepest verification, Live Monitored: read-only, revoke anytime. What we access →
Install from
The grade above is for the source repository. Registries can serve a different version, so we mark the ones we were not able to read.
Disclosed vulnerabilities in this server's declared npm dependencies (via OSV). Whether each is reachable depends on the installed versions.
@modelcontextprotocol/sdk has cross-client data leak via shared server/transport instance reuse
FOUNDRY_PROJECTPath to Foundry project Current directoryPRIVATE_KEYDefault private key for transactions (⚠️ testing only) -RPC_URLclaude mcp add --transport stdio --env =http://localhost:8545 foundry -- bunx @maxencerb/foundry-mcpTool annotations
No tools have read-only/destructive annotations
Add readOnlyHint or destructiveHint annotations to every tool so hosts can warn users before invoking.
All four hints declared on every tool
92/92 tools missing one or more hints — anvil_start (missing: readOnlyHint, destructiveHint, idempotentHint, openWorldHint); anvil_stop (missing: readOnlyHint, destructiveHint, idempotentHint, openWorldHint); anvil_status (missing: readOnlyHint, destructiveHint, idempotentHint, openWorldHint), +89 more. OpenAI's directory rejects tools where any of the four hints are missing or non-boolean.
For every tool, set all four hints (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) to explicit true/false values that match the handler’s actual behaviour.
Descriptions match behaviour
31 tools describe read intent but their handlers mutate — cast_block (line 41: exec("cast", ["block", ...args])); cast_block_number (line 57: exec("cast", ["block-number", ...args])); cast_chain (line 73: exec("cast", ["chain", ...args]))
Rename the tool, rewrite the description, or move the side-effect into a separate clearly-named tool.
Tool inputs are validated
71/92 tool handlers declare input schemas (77%)
Declare an inputSchema with zod/joi/yup on every tool definition.
Tool handlers catch errors
Only 17/92 tool handlers wrap calls in try/catch (18%)
Wrap each tool handler body in try/catch and return a structured error response.
Tests exist
No test files found
Add tests that exercise each declared tool.
Shell command execution
5 child_process calls — runs shell commands
Prefer library functions over shell-outs. If you must shell out, ensure all inputs are properly escaped.
Production dependencies are patched
0 critical, 1 high severity in production deps — @modelcontextprotocol/sdk@1.25.3 (high)
Run npm audit fix, or upgrade the affected packages to a non-vulnerable version.
Tool description accuracy
29 tools have description/behavior mismatches: cast_block: description implies read-only but handler writes/deletes/executes; cast_block_number: description implies read-only but handler writes/deletes/executes; cast_chain: description implies read-only but handler writes/deletes/executes
Update tool descriptions to accurately reflect all capabilities — especially write, delete, or execute operations.
Claim the listing to review these findings one by one and send us a correction where you disagree, straight to the team. Claiming also means we tell you when the grade moves, and reach you first if we find anything urgent.
[](https://m8ven.ai/mcp/maxencerb/foundry-mcp)?variant=verified from the URL.Vetting this one by hand? Tool Check is an MCP that scores other MCPs. Add it once and ask Claude, ChatGPT, or any MCP client to grade a server, surface CVEs, check the publisher, and suggest safer alternatives — before you install.
https://m8ven.ai/api/mcp/tool-check