Foundry MCP

MCP server for Foundry/Forge smart contract development and testing. Compile, test, deploy, and debug Solidity contracts via MCP.

yejiming f9e2458 2 files · 1.0 KB Updated

File contents

Foundry MCP

MCP server for Foundry/Forge smart contract development and testing.

Provides MCP integration for the Foundry toolkit, enabling AI agents to compile, test, deploy, and debug Solidity smart contracts using Forge, Cast, Anvil, and Chisel. Supports the full smart contract development lifecycle through the Model Context Protocol.

Installation

{
  "mcpServers": {
    "foundry": {
      "command": "npx",
      "args": ["-y", "foundry-mcp-server"]
    }
  }
}

Prerequisites

  • Foundry toolchain installed (curl -L https://foundry.paradigm.xyz | bash && foundryup)

Links

yejiming/web3-awesome-skills/tree/main/skills/community/mcp-servers/foundry-mcp commit f9e2458b7b

Frequently asked questions

npx skillmds@latest add yejiming/foundry-mcp