Model Context Protocol server enabling seamless management of Foundry projects with capabilities to create, build, test, inspect Solidity contracts, run scripts, execute advanced Ethereum commands, and launch local development nodes.
Unlock the full potential of Foundry MCP Project through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.
Free tier available โข No credit card required
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!