Foundry MCP ServerServer

PraneshASP
GitHub
Solidity DevelopmentBlockchainMCP

Loading subscription status...

💡 Description

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 common EVM operations and manage Solidity code.

📝 JSON Entries

{
  "mcpServers": [
    {
      "foundry": {
        "env": {
          "PRIVATE_KEY": "0x1234"
        },
        "args": [
          "path/to/foundry-mcp-server/dist/index.js"
        ],
        "command": "node"
      }
    }
  ]
}

🛠️ Tools

AnvilCastForge

Features

  • Network Interaction
  • Contract Interaction
  • Solidity Development
  • Utility Functions

💬 Example Queries

  • Can you analyze the transaction and explain what it does? https://etherscan.io/tx/0xcb73ad3116f19358e2e649d4dc801b7ae0590a47b8bb2e57a8e98b6daa5fb14b
  • Query the mainnet ETH and USDT balances for the wallet 0x195F46025a6926968a1b3275822096eB12D97E70.
  • Transfer 0.5 USDC to 0x195F46025a6926968a1b3275822096eB12D97E70 on Mainnet.
  • Deploy a mock ERC20 contract to a local anvil instance and name it 'Fire Coin'.