foundry-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
foundry-mcp
MCP server that exposes Foundry (forge, cast, anvil) CLI tools to AI assistants via the Model Context Protocol.
Prerequisites
Related MCP server: evmSDK MCP Server
Install
npm install -g @maliketh/foundry-mcpOr run directly with npx:
npx @maliketh/foundry-mcpUsage
Add to your MCP client configuration:
{
"mcpServers": {
"foundry": {
"command": "npx",
"args": ["foundry-mcp"]
}
}
}The server communicates over stdio and exposes 39 tools across three categories.
Tools
Forge (17 tools)
Tool | Description |
| Scaffold a new Foundry project |
| Compile contracts |
| Run tests with filtering, verbosity, gas reporting |
| Run Solidity scripts |
| Deploy contracts |
| Verify contracts on block explorers |
| Generate coverage reports |
| Create gas snapshots |
| Format Solidity code |
| Lint Solidity code |
| Remove build artifacts |
| Install dependencies |
| Show dependency tree |
| Inspect contract artifacts (ABI, bytecode, storage layout, etc.) |
| List function selectors |
| Show project configuration |
| Clone a verified contract from a block explorer |
Cast (21 tools)
Tool | Description |
| Call a contract function (read-only) |
| Send a transaction |
| Estimate gas for a transaction |
| Get ETH balance |
| Get account nonce |
| Get block information |
| Get transaction details |
| Get transaction receipt |
| Get current gas price |
| Get deployed bytecode |
| Read storage slots |
| Query event logs |
| ABI-encode function arguments |
| ABI-decode data |
| Decode calldata |
| Convert between formats (wei, hex, bytes32, base) |
| Compute keccak256 hash |
| Get function selector |
| Generate Solidity interface from ABI |
| Make raw JSON-RPC calls |
| Generate, derive, and sign with wallets |
Anvil (1 tool)
Tool | Description |
| Start a local devnet or check its status |
Development
git clone https://github.com/jrigada/foundry-mcp.git
cd foundry-mcp
npm install
npm run build
npm test # runs 162 testsLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
AI Agent Utility Layer for agent safety, web monitoring, crypto research and tool discovery.
AI-native programming language and toolchain for accountable, verifiable agent-driven development.
Create, run and manage Homemade dev VMs and projects from your AI agent.
Build, test, publish, and run Kovca workflows from AI agents over remote MCP.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceProvides safe repository operations, skill reading, command execution, and test detection for coding agents over stdio.-
- FlicenseNot gradedqualityBmaintenanceEnables agents to interact with Ethereum, Base and configurable EVM chains over stdio using the shared command catalog, covering contract reads, prepared and policy-guarded execution, wallet management, Socket swaps and bridging, simulation, monitoring and saved contracts.-
- AlicenseNot gradedqualityBmaintenanceExposes code-review and issue-triage tools to AI assistants over stdio, letting them evaluate unified pull-request diffs for maintainer remarks, slice diffs into categorized AST hunks, and classify GitHub issues by priority while synthesizing minimal reproduction stubs.1Apache 2.0

lakelogic-mcpofficial
AlicenseNot gradedqualityBmaintenanceEnables AI assistants to validate, lint, explain, and test-run Open Lakehouse Contracts locally over stdio, with no network, account, or platform access.43 PyPIApache 2.0