Foundry MCP Server
@PraneshASP
Foundry MCP Server について
An experimental MCP Server for foundry built for Solidity devs
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"foundry-mcp-server": {
"command": "npx",
"args": [
"@pranesh.asp/foundry-mcp-server"
]
}
}
}ツール
ツールは検出されませんでした
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
概要
What is Foundry MCP Server?
Foundry MCP Server is a lightweight MCP server that connects LLM assistants to the Foundry toolchain (Forge, Cast, Anvil), enabling Solidity development and onchain operations. It is designed for developers who want to interact with Ethereum nodes, analyze smart contracts, and manage Solidity code through natural language interfaces.
How to use Foundry MCP Server?
Install globally via npm install -g @pranesh.asp/foundry-mcp-server or run directly with npx @pranesh.asp/foundry-mcp-server. Configure your MCP client (e.g., Claude Desktop, Cursor) by adding a "foundry" entry under mcpServers in your client’s configuration file, providing the command npx with arguments and optional environment variables RPC_URL and PRIVATE_KEY. The server uses STDIO transport and requires Node.js v18+, the Foundry toolchain, and optional Heimdall-rs for advanced analysis.
Key features of Foundry MCP Server
- Start and manage local Anvil instances
- Connect to remote RPC endpoints and query chain info
- Call contract functions (read-only) and send transactions
- Maintain a persistent Forge workspace at
~/.mcp-foundry-workspace - Create, edit, and deploy Solidity files and scripts
- Disassemble, decode, and decompile EVM bytecode via Heimdall
Use cases of Foundry MCP Server
- Analyze on-chain transactions and explain their behavior
- Query token balances (e.g., ETH and USDT) for any wallet
- Deploy mock ERC20 contracts to a local Anvil instance
- Run Forge scripts and manage Solidity dependencies
FAQ from Foundry MCP Server
What runtime and tools does Foundry MCP Server require?
Node.js v18+, the Foundry toolchain (Forge, Cast, Anvil), and optionally Heimdall-rs for contract analysis.
Is a private key required to use the server?
No, the PRIVATE_KEY environment variable is optional. If set, it enables sending transactions. The README strongly advises against using keys with mainnet funds due to LLM hallucination risks.
Where does the server store Solidity files and projects?
It maintains a persistent Forge workspace at ~/.mcp-foundry-workspace for all Solidity files, scripts, and dependencies.
How do I configure a client like Claude Desktop?
Add a JSON entry under mcpServers with command npx, arguments ["@pranesh.asp/foundry-mcp-server"], and optional environment variables for RPC_URL and PRIVATE_KEY. Ensure valid JSON syntax.
What transport protocol does Foundry MCP Server use?
It uses STDIO transport, as shown in the MCP client configuration examples.
「その他」の他のコンテンツ
MCP Go 🚀
mark3labsA Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.
ICSS
chokcoco不止于 CSS
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
Maestro
mobile-dev-incPainless E2E Automation for Mobile and Web
Mcp
browsermcpBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
コメント