Foundry MCP ProjectServer

lhemerly
GitHub
BlockchainCode ExecutionEthereum Development

Loading subscription status...

💡 Description

A Model Context Protocol (MCP) server designed to integrate with Foundry tools, providing a set of tools and utilities for managing Foundry projects, executing tests, and building contracts.

📝 JSON Entries

{
  "mcpServers": [
    {
      "Foundry MCP Project": {
        "env": {},
        "args": [
          "src/eth_wh_mcp/main.py"
        ],
        "command": "python"
      }
    }
  ]
}

🛠️ Tools

create_projectbuild_projecttest_projectclone_contractrun_scriptrun_cast_commandstart_anvil_with_optionsstart_chisel_with_optionsinspect_contractsnapshot_projectcoverage_project

Features

  • Initialize a new Foundry project
  • Compile Solidity contracts
  • Execute tests with detailed configuration
  • Retrieve contract metadata
  • Execute Solidity scripts
  • Launch local Ethereum nodes like Anvil or Chisel
  • Run advanced cast commands

💬 Example Queries

  • Create a new Foundry project
  • Compile a Solidity contract
  • Run tests with detailed configuration
  • Inspect contract metadata
  • Execute a Solidity script
  • Start a local Ethereum node