Basic information
About Foundry Toolkit MCP Server
Foundry Toolkit: Deploy, test, and analyze smart contracts on EVM networks and local Anvil with powerful blockchain dev tools.
Foundry Toolkit is a MCP server in the Analytics Data category listed in the AddMCP.net directory, published by praneshasp. Supported transport: stdio. Runtime: TypeScript. License: MIT. The repository has 250 GitHub stars. Source code is hosted on github.com. Related topics: ai, analytics-data, blockchain, community, developer-tools.
Setup
{
"mcpServers": {
"foundry": {
"command": "npx",
"args": [
"@pranesh.asp/foundry-mcp-server"
],
"env": {
"RPC_URL": "http://localhost:8545",
"PRIVATE_KEY": "0x..."
}
}
}
}
{
"mcpServers": {
"foundry": {
"command": "npx",
"args": [
"@pranesh.asp/foundry-mcp-server"
],
"env": {
"RPC_URL": "http://localhost:8545",
"PRIVATE_KEY": "0x..."
}
}
}
}
{
"servers": {
"foundry": {
"command": "npx",
"args": [
"@pranesh.asp/foundry-mcp-server"
],
"env": {
"RPC_URL": "http://localhost:8545",
"PRIVATE_KEY": "0x..."
}
}
}
}
Foundry Toolkit MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"foundry": {
"command": "npx",
"args": [
"@pranesh.asp/foundry-mcp-server"
],
"env": {
"RPC_URL": "http://localhost:8545",
"PRIVATE_KEY": "0x..."
}
}
}
}
Foundry Toolkit MCP Server tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Foundry Toolkit?
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 Toolkit?
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 Toolkit
- 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 Toolkit
- 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
Frequently asked questions
1 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.
2 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.
3 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.
4 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.
5 What transport protocol does Foundry MCP Server use?
It uses STDIO transport, as shown in the MCP client configuration examples.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In