Related MCP Server Resources

Explore more AI models, providers, and integration options:

  • Explore AI Models
  • Explore AI Providers
  • Explore MCP Servers
  • LangDB Pricing
  • Documentation
  • AI Industry Blog
  • Xano MCP Server for Smithery
  • Chrome Debug MCP Server
  • OpenSearch MCP Server
  • mcp-v8
  • Phrases MCP Server
Back to MCP Servers
Foundry MCP Project

Foundry MCP Project

Public
lhemerly/foundry-mcp

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.

python
0 tools
May 30, 2025
Updated Jun 4, 2025

Supercharge Your AI with Foundry MCP Project

MCP Server

Unlock the full potential of Foundry MCP Project through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.

Unified API Access
Complete Tracing
Instant Setup
Get Started Now

Free tier available โ€ข No credit card required

Instant Setup
99.9% Uptime
10,000+Monthly Requests

๐Ÿง  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 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 claude

Manual Installation

  1. Clone the repository:

    git clone
  2. 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.py

Available 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 cast command.
  • 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.

Publicly Shared Threads0

Discover shared experiences

Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!

Share your threads to help others
Related MCPs5
  • Xano MCP Server for Smithery
    Xano MCP Server for Smithery

    Model Context Protocol server enabling seamless integration between Claude AI and Xano databases wit...

    Added May 30, 2025
  • Chrome Debug MCP Server
    Chrome Debug MCP Server

    Model Context Protocol server enabling advanced browser automation with Playwright, featuring multi-...

    13 tools
    Added May 30, 2025
  • OpenSearch MCP Server
    OpenSearch MCP Server

    Model Context Protocol server enabling seamless interaction with Opensearch for document search, ind...

    6 tools
    Added May 30, 2025
  • mcp-v8
    mcp-v8

    Rust-based Model Context Protocol server offering secure V8 JavaScript execution with persistent hea...

    Added May 30, 2025
  • Phrases MCP Server
    Phrases MCP Server

    Efficient MCP (Model Context Protocol) server for managing inspirational phrases with full CRUD capa...

    6 tools
    Added May 30, 2025