A Model Context Protocol server that enables interaction with Foundry tools through natural language, allowing users to create projects, build contracts, run tests, and manage Ethereum development environments.
This project is a Model Context Protocol (MCP) server designed to interact with Foundry tools. It provides a set of tools and utilities to manage Foundry projects, run tests, build contracts, and more.
pyproject.toml # Project configuration file
README.md # Project documentation
uv.lock # Dependency lock file
LLM/ # Documentation and SDK usage
src/eth_wh_mcp/ # Source code for the MCP server
cast
.To install Foundry MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @lhemerly/foundry-mcp --client claude
Clone the repository:
git clone
Ensure Foundry tools (forge
, cast
, anvil
, etc.) are installed and available in your PATH.
To start the MCP server:
python src/eth_wh_mcp/main.py
The following tools are available in the MCP server:
cast
command.Refer to the LLM/python-mcp-sdk.md file for detailed usage of the MCP Python SDK, including server construction, tools, prompts, and context handling.
Run the MCP server in development mode:
mcp dev src/eth_wh_mcp/main.py --with-editable .
To execute the server:
python src/eth_wh_mcp/main.py
This project is licensed under the MIT License. See the LICENSE file for details.
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!