Foundry MCP Project
Provides tools for Ethereum blockchain development through Foundry, including creating projects, compiling contracts, running tests, launching local nodes, and executing blockchain commands
Offers comprehensive Solidity development support including contract compilation, inspection, testing, and running a Solidity REPL (Chisel) for interactive development
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Foundry MCP Projectcreate a new project called MyToken with the ERC20 template"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🧠 Foundry MCP Project
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.
📂 Project Structure
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 serverRelated MCP server: AMOCA Solana MCP Server
🚀 Features
Create Foundry Projects: Initialize new Foundry projects.
Build Contracts: Compile Solidity contracts with various options.
Run Tests: Execute tests with detailed configuration.
Inspect Contracts: Retrieve ABI, bytecode, and other metadata.
Run Scripts: Execute Solidity scripts.
Start Local Nodes: Launch Anvil or Chisel for local Ethereum development.
Advanced Cast Commands: Execute Ethereum-related commands using
cast.
🛠️ Installation
Installing via Smithery
To install Foundry MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @lhemerly/foundry-mcp --client claudeManual Installation
Clone the repository:
git clone <repository-url>Ensure Foundry tools (
forge,cast,anvil, etc.) are installed and available in your PATH.
🏗️ Usage
Running the MCP Server
To start the MCP server:
python src/eth_wh_mcp/main.pyAvailable Tools
The following tools are available in the MCP server:
create_project: Initialize a new Foundry project.
build_project: Build the current Foundry project.
test_project: Run tests in the Foundry project.
clone_contract: Clone a contract from Etherscan.
run_script: Execute a Solidity script.
run_cast_command: Run a
castcommand.start_anvil_with_options: Start the Anvil local Ethereum node.
start_chisel_with_options: Start the Chisel Solidity REPL.
inspect_contract: Inspect contract metadata.
snapshot_project: Create a gas usage snapshot.
coverage_project: Display test coverage.
📖 Documentation
MCP Python SDK
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.
🧪 Development
Local Debugging
Run the MCP server in development mode:
mcp dev src/eth_wh_mcp/main.py --with-editable .Runtime Execution
To execute the server:
python src/eth_wh_mcp/main.py📜 License
This project is licensed under the MIT License. See the LICENSE file for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseDqualityDmaintenanceA Model Context Protocol server that gives LLMs the ability to interact with Ethereum networks, manage wallets, query blockchain data, and execute smart contract operations through a standardized interface.Last updated543014MIT
- Alicense-qualityDmaintenanceA Model Context Protocol server that enables AI models to interact with the Solana blockchain, providing RPC methods, wallet management, DeFi trading capabilities, and Helius API integration for enhanced Solana development.Last updated5MIT
- Alicense-qualityCmaintenanceA Model Context Protocol server that integrates with FoundryVTT, allowing AI assistants to interact with tabletop gaming sessions through natural language to query actors, roll dice, generate content, and manage game worlds.Last updated3829MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server providing Ethereum blockchain tools, including vanity address generation and Cast command functionality for interacting with Ethereum networks through natural language.Last updated1492MIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…
Appeared in Searches
- Executing Operations and Maintenance Tasks, Such as Deployment and Upgrades
- A server for EVM (Extended Virtual Machine) MCP
- MCP to Control CAD Tools for Building Models and Automating Manufacturing
- Guidance on Writing Git Commit Messages for Pushing to GitHub
- Automating web browser searches using Chrome
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/lhemerly/foundry-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server