by PraneshASP
An experimental MCP Server for foundry built for Solidity devs
# Add to your Claude Code skills
git clone https://github.com/PraneshASP/foundry-mcp-serverA 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:
PRIVATE_KEY is configured)The server is designed to be used as an MCP tool provider for MCP Clients. When connected to a client, it enables the clients(claude desktop, cursor, client, etc.,) to perform Solidity and onchain operations directly.
Ensure Foundry tools (Forge, Cast, Anvil) are installed on your system:
curl -L https://foundry.paradigm.xyz | bash
foundryup
Clone and build the server.
bun i && bun build ./src/index.ts --outdir ./dist --target node
Update your client config (eg: Claude desktop):
"mcpServers": {
"foundry": {
"command": "node",
"args": [
"path/to/foundry-mcp-server/dist/index.js"
],
"env" :{
"PRIVATE_KEY": "0x1234",
}
}
}
[!NOTE]
PRIVATE_KEYis optional
You can now install and run the server directly using npm:
npm install -g @pranesh.asp/foundry-mcp-server
npx @pr...