foundry-mcp-server
An experimental MCP Server for foundry built for Solidity devs
A simple, lightweight and fast MCP (Model Context Protocol) server that provides Solidity development capabilities using the Foundry toolchain (Forge, Cast, and Anvil). This server connects LLM assistants to the Foundry ecosystem, enabling them to interact with nodes, analyze smart contracts, perform EVM operations, manage Solidity code, and work with a persistent Forge workspace.
Compatible with
Install
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"foundry-mcp-server-1": {
"args": [
"-y",
"@modelcontextprotocol/server-foundry-mcp-server-1"
],
"command": "npx"
}
}
}Config File Location
Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/claude/claude_desktop_config.json
Some servers require additional setup - check the GitHub README for specific instructions.