Foundry MCP Server

Foundry MCP server enabling AI agents to interact with the Foundry Ethereum development toolkit — running Forge tests, deploying smart contracts via Cast, checking contract ABIs, compiling Solidity code, and integrating Foundry's EVM development toolchain into agent-driven smart contract development and testing workflows.

Evaluated Mar 07, 2026 (0d ago) vcurrent
Homepage ↗ Repo ↗ Developer Tools foundry ethereum solidity smart-contracts mcp-server blockchain web3
⚙ Agent Friendliness
71
/ 100
Can an agent use this?
🔒 Security
72
/ 100
Is it safe for agents?
⚡ Reliability
66
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
70
Documentation
70
Error Messages
68
Auth Simplicity
72
Rate Limits
80

🔒 Security

TLS Enforcement
85
Auth Strength
68
Scope Granularity
65
Dep. Hygiene
70
Secret Handling
72

CRITICAL private key risk. Never expose private keys. Community MCP. Test on testnets. Mainnet has real financial risk.

⚡ Reliability

Uptime/SLA
70
Version Stability
65
Breaking Changes
62
Error Recovery
65
AF Security Reliability

Best When

A Solidity developer using Foundry needs AI assistance with smart contract development — compiling, testing, and deploying contracts through a unified MCP interface.

Avoid When

You use Hardhat, Truffle, or non-EVM blockchains — Foundry is Ethereum/EVM specific.

Use Cases

  • Running Solidity smart contract tests via Forge from development agents
  • Deploying contracts to testnet/mainnet via Cast from deployment agents
  • Checking contract compilation and ABI generation from build agents
  • Debugging smart contract failures from testing agents
  • Verifying contract source code on Etherscan from deployment agents
  • Automating Foundry-based Solidity development workflows from coding agents

Not For

  • Non-Solidity smart contract development (Foundry is Solidity/EVM-focused)
  • Hardhat-based workflows (separate MCP would be needed)
  • Teams without Foundry installed (distinct from Hardhat/Truffle)

Interface

REST API
No
GraphQL
No
gRPC
No
MCP Server
Yes
SDK
No
Webhooks
No

Authentication

Methods: api_key
OAuth: No Scopes: No

Foundry must be installed. Deployment requires private key or hardware wallet for mainnet. RPC endpoint URL needed. Never expose private keys.

Pricing

Model: free
Free tier: Yes
Requires CC: No

Foundry is free open source. MCP server is free. Gas fees apply for mainnet deployments. RPC providers (Alchemy, Infura) have free tiers.

Agent Metadata

Pagination
none
Idempotent
Partial
Retry Guidance
Not documented

Known Gotchas

  • CRITICAL: Never expose private keys — use hardware wallets or environment variables only
  • Mainnet deployments spend real ETH gas — test on testnets first
  • Foundry must be installed via foundryup — separate installation step
  • Forge test output can be verbose — agents must parse and summarize results
  • RPC endpoint required for fork tests and deployment — configure separately
  • Community MCP from PraneshASP — not official Foundry tooling

Alternatives

Full Evaluation Report

Comprehensive deep-dive: security analysis, reliability audit, agent experience review, cost modeling, competitive positioning, and improvement roadmap for Foundry MCP Server.

AI-powered analysis · PDF + markdown · Delivered within 30 minutes

$99

Package Brief

Quick verdict, integration guide, cost projections, gotchas with workarounds, and alternatives comparison.

Delivered within 10 minutes

$3

Score Monitoring

Get alerted when this package's AF, security, or reliability scores change significantly. Stay ahead of regressions.

Continuous monitoring

$3/mo

Scores are editorial opinions as of 2026-03-07.

6470
Packages Evaluated
26150
Need Evaluation
173
Need Re-evaluation
Community Powered