Foundry (PraneshASP)

Finance and commerce

An experimental MCP Server for foundry built for Solidity devs.

Your AI app calls the Foundry (PraneshASP) MCP server, which does the work through tools like anvil_start, anvil_stop, anvil_status and cast_call and sends the result back to the chat.

About Foundry (PraneshASP)

Foundry (PraneshASP) is a community MCP server from PraneshASP, filed in our directory under finance and commerce. An experimental MCP Server for foundry built for Solidity devs.

The README for Foundry (PraneshASP) lists tools such as anvil_start, anvil_stop, anvil_status and cast_call, which your AI app can call once the server is connected.

At a glance

Publisher
PraneshASP (community)
Runs
See the README for setup
Written in
TypeScript
License
MIT
GitHub stars
254

Tools Foundry (PraneshASP) gives your AI app

  • anvil_startStart a new Anvil instance.
  • anvil_stopStop a running Anvil instance.
  • anvil_statusCheck if Anvil is running and get its status.
  • cast_callCall a contract function (read-only).
  • cast_sendSend a transaction to a contract function.
  • cast_balanceCheck the ETH balance of an address.
  • cast_receiptGet the transaction receipt.
  • cast_storageRead contract storage at a specific slot.
  • cast_runRun a published transaction in a local environment.
  • cast_logsGet logs by signature or topic.
  • cast_sigGet the selector for a function or event signature.
  • cast_4byteLookup function or event signature from the 4byte directory.
  • cast_chainGet information about the current chain.
  • forge_scriptRun a Forge script from the workspace.
  • install_dependencyInstall a dependency for the Forge workspace.
  • create_solidity_fileCreate or update a Solidity file in the workspace.
  • read_fileRead the content of a file from the workspace.
  • list_filesList files in the workspace.
  • convert_eth_unitsConvert between EVM units (wei, gwei, hex).
  • compute_addressCompute the address of a contract that would be deployed.
  • contract_sizeGet the bytecode size of a deployed contract.
  • estimate_gasEstimate the gas cost of a transaction.
  • heimdall_disassembleDisassemble EVM bytecode into human-readable opcodes.
  • heimdall_decodeDecode raw calldata without requiring ABI.

Tool names as the Foundry (PraneshASP) README lists them. Your AI app shows the live list once Foundry (PraneshASP) is connected.

How to set up Foundry (PraneshASP)

  1. Follow the install steps in the Foundry (PraneshASP) README; it is written in TypeScript, so have that toolchain ready.
  2. Check the Foundry (PraneshASP) README for keys or settings; the registry lists none that Foundry (PraneshASP) requires.
  3. Add Foundry (PraneshASP) to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Foundry (PraneshASP) tools to confirm the connection.
  5. Run one read-only task with Foundry (PraneshASP) first, such as a call to anvil_start, before you allow anything that writes or sends.

Foundry (PraneshASP) compared with similar servers

  • Equibles by daniel3303 has fewer GitHub stars than Foundry (PraneshASP) (252 against 254); both are community servers, and Equibles runs as a remote server and Foundry (PraneshASP) runs on your own machine.
  • FTShare by FTShare-Lab has more GitHub stars than Foundry (PraneshASP) (268 against 254); both are community servers, and both run locally.
  • Shopify (GeLi2001) by GeLi2001 has fewer GitHub stars than Foundry (PraneshASP) (251 against 254); both are community servers, and both run locally.

Before you connect Foundry (PraneshASP)

  • Give Foundry (PraneshASP) its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Foundry (PraneshASP) tool call until you trust what it does with them.
  • Treat text that Foundry (PraneshASP) fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Foundry (PraneshASP) on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Foundry (PraneshASP)

How marketing and sales teams put Foundry (PraneshASP) to work, by company size. Pick the size closest to yours and start Foundry (PraneshASP) on one use case.

Small business

  • A small business can ask Foundry (PraneshASP) which products and customers drive margin, then plan promotions around them.
  • Owners can use Foundry (PraneshASP) to check refunds, failed payments and churn reasons without opening three dashboards.
  • Foundry (PraneshASP) runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Ecommerce teams can connect Foundry (PraneshASP) to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Foundry (PraneshASP) to check spend against budget each week and move money to what's working.
  • Start with anvil_start and anvil_stop, the tools Foundry (PraneshASP) lists first, and add more once the team trusts the results.

Enterprise

  • Enterprises should keep Foundry (PraneshASP) read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Foundry (PraneshASP) to answer revenue questions by channel and region with figures finance signs off on.
  • Foundry (PraneshASP) is a community server, so have security review the code and pin a version before Foundry (PraneshASP) touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Foundry (PraneshASP) README

From PraneshASP/foundry-mcp-server on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Foundry MCP Server

A simple, lightweight and fast MCP (Model Context Protocol) server that provides Solidity development capabilities using the Foundry toolchain (Forge, Cast, and Anvil).

Overview

This server connects LLM assistants to the Foundry ecosystem, enabling them to:

  • Interact with nodes (local Anvil instances or remote RPC endpoints)
  • Analyze smart contracts and blockchain data
  • Perform common EVM operations using Cast
  • Manage, deploy, and execute Solidity code and scripts
  • Work with a persistent Forge workspace

Features

Network Interaction
  • Start and manage local Anvil instances
  • Connect to any remote network (just specify the RPC)
  • Get network/chain information
Contract Interaction
  • Call contract functions (read-only)
  • Send transactions to contracts (if PRIVATE_KEY is configured)
  • Get transaction receipts
  • Read contract storage
  • Analyze transaction traces
  • Retrieve contract ABIs and sources from block explorers
Solidity Development
  • Maintain a dedicated Forge workspace
  • Create and edit Solidity files
  • Install dependencies
  • Run Forge scripts
  • Deploy contracts
Utility Functions
  • Calculate contract addresses
  • Check contract bytecode size
  • Estimate gas costs
  • Convert between units (hex to decimals, etc.,)
  • Generate wallets
  • Get event logs
  • Lookup function and event signatures
Smart Contract Analysis (Heimdall)
  • Disassemble EVM bytecode into human-readable opcodes
  • Decode raw calldata without requiring ABI
  • Decompile EVM bytecode to Solidity source code and ABI
  • Generate visual control flow graphs for EVM bytecode
  • Detailed transaction inspection with calldata decoding and trace analysis

Usage

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.

Requirements
Manual Setup
  1. Ensure Foundry tools (Forge, Cast, Anvil) are installed on your system:

    curl -L https://foundry.paradigm.xyz | bash
    foundryup
    
  2. Clone and build the server.

    bun i && bun build ./src/index.ts --outdir ./dist --target node
    
  3. 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_KEY is optional

Setup using NPM Package

You can now install and run the server directly using npm:

Global Installation
npm install -g @pranesh.asp/foundry-mcp-server
Direct Usage with npx
npx @pranesh.asp/foundry-mcp-server
MCP Client Configuration

Claude Code

 claude mcp add-json foundry-mcp-server '{"type":"stdio","command":"npx","args":["@pranesh.asp/foundry-mcp-server"],"env":{"RPC_URL":"","PRIVATE_KEY":""}}'   

Other MCP Clients (Cursor, Claude, Windsurf)

Add to your MCP settings:

{
  "mcpServers": {
    "foundry": {
      "command": "npx",
      "args": ["@pranesh.asp/foundry-mcp-server"],
      "env": {
        "RPC_URL": "http://localhost:8545",
        "PRIVATE_KEY": "0x..."
      }
    }
  }
}
Configuration

The server supports the following environment variables:

  • RPC_URL: Default RPC URL to use when none is specified (optional)
  • PRIVATE_KEY: Private key to use for transactions (optional)

[!CAUTION] Do not add keys with mainnet funds. Even though the code uses it safely, LLMs can hallicunate and send malicious transactions. Use it only for testing/development purposes. DO NOT trust the LLM!!

[!TIP] Getting Invalid configuration errors? Check your JSON syntax, common issues include double quotes (""KEY" → "KEY"), trailing commas, or unquoted keys. Validate with echo '...' | jq .

Workspace

The server maintains a persistent Forge workspace at ~/.mcp-foundry-workspace for all Solidity files, scripts, and dependencies.

Tools

Anvil
  • anvil_start: Start a new Anvil instance
  • anvil_stop: Stop a running Anvil instance
  • anvil_status: Check if Anvil is running and get its status
Cast
  • cast_call: Call a contract function (read-only)
  • cast_send: Send a transaction to a contract function
  • cast_balance: Check the ETH balance of an address
  • cast_receipt: Get the transaction receipt
  • cast_storage: Read contract storage at a specific slot
  • cast_run: Run a published transaction in a local environment
  • cast_logs: Get logs by signature or topic
  • cast_sig: Get the selector for a function or event signature
  • cast_4byte: Lookup function or event signature from the 4byte directory
  • cast_chain: Get information about the current chain
Forge
  • forge_script: Run a Forge script from the workspace
  • install_dependency: Install a dependency for the Forge workspace
File Management
  • create_solidity_file: Create or update a Solidity file in the workspace
  • read_file: Read the content of a file from the workspace
  • list_files: List files in the workspace
Utilities
  • convert_eth_units: Convert between EVM units (wei, gwei, hex)
  • compute_address: Compute the address of a contract that would be deployed
  • contract_size: Get the bytecode size of a deployed contract
  • estimate_gas: Estimate the gas cost of a transaction
Heimdall Analysis
  • heimdall_disassemble: Disassemble EVM bytecode into human-readable opcodes
  • heimdall_decode: Decode raw calldata without requiring ABI
  • heimdall_decompile: Decompile EVM bytecode to Solidity source code and ABI
  • heimdall_cfg: Generate visual control flow graph for EVM bytecode
  • heimdall_inspect: Detailed inspection of Ethereum transactions

Usage in Claude Desktop App 🎯

Once the installation is complete, and the Claude desktop app is configured, you must completely close and re-open the Claude desktop app to see the tavily-mcp server. You should see a hammer icon in the bottom left of the app, indicating available MCP tools, you can click on the hammer icon to see more details on the available tools.

Now claude will have complete access to the foundry-mcp server. If you insert the below examples into the Claude desktop app, you should see the foundry-mcp server tools in action.

Examples
  1. Transaction analysis:
Can you analyze the transaction and explain what it does? 
https://etherscan.io/tx/0xcb73ad3116f19358e2e649d4dc801b7ae0590a47b8bb2e57a8e98b6daa5fb14b
  1. Querying Balances:
Query the mainnet ETH and USDT balances for the wallet 0x195F46025a6926968a1b3275822096eB12D97E70.
  1. Sending transactions:
Transfer 0.5 USDC to 0x195F46025a6926968a1b3275822096eB12D97E70 on Mainnet. 
  1. Deploying contracts/Running scripts:
Deploy a mock ERC20 contract to a local anvil instance and name it "Fire Coin".

Acknowledgments ✨

Disclaimer

The software is being provided as is. No guarantee, representation or warranty is being made, express or implied, as to the safety or correctness of the software. They have not been audited and as such there can be no assurance they will work as intended, and users may experience delays, failures, errors, omissions, loss of transmitted information or loss of funds. The creators are not liable for any of the foregoing. Users should proceed with caution and use at their own risk.

Questions about Foundry (PraneshASP)

What is the Foundry (PraneshASP) MCP server?

An experimental MCP Server for foundry built for Solidity devs. Foundry (PraneshASP) is maintained by PraneshASP on GitHub at PraneshASP/foundry-mcp-server, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Foundry (PraneshASP) MCP server?

Foundry (PraneshASP) doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (PraneshASP/foundry-mcp-server). Like most servers, Foundry (PraneshASP) ends with a command or URL you paste into your AI app's MCP config.

Does Foundry (PraneshASP) need an API key?

The registry lists no required keys for Foundry (PraneshASP). Check the Foundry (PraneshASP) README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Foundry (PraneshASP) an official MCP server?

No. Foundry (PraneshASP) is a community server maintained by PraneshASP. Community servers can be excellent; read the code and the open issues before you give Foundry (PraneshASP) access to company data.

What license is Foundry (PraneshASP) under?

Foundry (PraneshASP) is released under the MIT license, according to its GitHub repository. The license covers the code of Foundry (PraneshASP); the service it connects to has its own terms.