- Explore MCP Servers
- forge-mcp
Forge Mcp
What is Forge Mcp
forge-mcp is an implementation of the Model Context Protocol (MCP) designed for Foundry’s Cast tool. It enables seamless integration of Cast functionality into AI-powered development environments, allowing AI assistants to interact with Ethereum networks through a standardized protocol.
Use cases
Use cases for forge-mcp include developing AI assistants that automate blockchain transactions, integrating Ethereum tooling into AI applications, and enhancing the capabilities of development environments with blockchain functionalities.
How to use
To use forge-mcp, ensure you have Rust and Cargo installed, clone the repository, and install the dependencies by running ‘cargo build’. Start the service using ‘cargo run --bin cast-server’.
Key features
Key features of forge-mcp include MCP-compliant Cast service implementation, asynchronous provider initialization for Ethereum network interaction, a standard I/O transport layer for seamless integration, and comprehensive error handling and logging.
Where to use
forge-mcp can be used in AI development environments that require interaction with Ethereum networks, particularly in applications involving blockchain operations and smart contract management.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Forge Mcp
forge-mcp is an implementation of the Model Context Protocol (MCP) designed for Foundry’s Cast tool. It enables seamless integration of Cast functionality into AI-powered development environments, allowing AI assistants to interact with Ethereum networks through a standardized protocol.
Use cases
Use cases for forge-mcp include developing AI assistants that automate blockchain transactions, integrating Ethereum tooling into AI applications, and enhancing the capabilities of development environments with blockchain functionalities.
How to use
To use forge-mcp, ensure you have Rust and Cargo installed, clone the repository, and install the dependencies by running ‘cargo build’. Start the service using ‘cargo run --bin cast-server’.
Key features
Key features of forge-mcp include MCP-compliant Cast service implementation, asynchronous provider initialization for Ethereum network interaction, a standard I/O transport layer for seamless integration, and comprehensive error handling and logging.
Where to use
forge-mcp can be used in AI development environments that require interaction with Ethereum networks, particularly in applications involving blockchain operations and smart contract management.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
forge-mcp
A Model Context Protocol (MCP) implementation for Foundry’s Cast tool, enabling seamless integration of Cast functionality into AI-powered development environments.
Overview
This project extends Foundry’s Cast tool with MCP support, allowing AI assistants to interact with Ethereum networks through a standardized protocol. It provides a bridge between AI development environments and Ethereum tooling, making it easier to perform blockchain operations programmatically.
Features
Currently we starts with Cast as an entrypoint to break down foundry.
Based on the complete list of Cast commands, I’ll categorize and select the most useful ones for AI agents to read onchain data, organized by functionality:
-
Block and Transaction Data:
block- Get block informationblock-number- Get latest block numbertx- Get transaction informationreceipt- Get transaction receiptage- Get block timestampbase-fee- Get block base feegas-price- Get current gas price
-
Contract State Reading:
call- Read contract state without publishing transactionstorage- Get raw value of contract’s storage slotcode- Get contract’s runtime bytecodecodesize- Get contract’s bytecode sizecodehash- Get contract’s codehashimplementation- Get EIP-1967 implementation address
-
Account Information:
balance- Get account balancenonce- Get account noncestorage-root- Get account’s storage rootproof- Generate storage proof for a slot
-
Event and Log Reading:
logs- Get logs by signature or topicdecode-event- Decode event data4byte-event- Get event signature from topic
-
Data Decoding and Formatting:
decode-abi- Decode ABI-encoded datadecode-calldata- Decode input datadecode-string- Decode ABI-encoded stringformat-units- Format numbers with decimalsparse-units- Convert decimal to smallest unit
-
ENS and Address Resolution:
resolve-name- ENS lookuplookup-address- ENS reverse lookupnamehash- Calculate ENS namehash
-
Chain Information:
chain- Get current chain namechain-id- Get Ethereum chain IDclient- Get client version
-
Utility Functions:
from-wei- Convert wei to ETHto-wei- Convert ETH to weito-check-sum-address- Convert to checksummed addressto-utf8- Convert hex to UTF-8to-ascii- Convert hex to ASCII
These commands provide a comprehensive toolkit for AI agents to:
- Read blockchain state
- Monitor transactions
- Track events
- Decode contract data
- Handle different data formats
- Resolve addresses and names
- Get chain information
- Perform unit conversions
Setup
- Ensure you have Rust and Cargo installed
- Clone this repository
- Install dependencies:
cargo build
Usage
The service can be started using:
cargo run --release --bin cast-server
MCP Configuration
To use this service with Claude Desktop, add the following JSON configuration:
{
"mcpServers": {
"cast-server": {
"command": "/path/to/forge-mcp/target/release/cast-server",
"args": [
"--verbose"
]
}
}
}
Dependencies
- Foundry v1.1.0
- Alloy v1.1.0
- RMCP v0.1.5
License
MIT
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










