# Foundry MCP

> MCP server for Foundry/Forge smart contract development and testing. Compile, test, deploy, and debug Solidity contracts via MCP.

- Skill: `yejiming/foundry-mcp` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add yejiming/foundry-mcp`
- Raw SKILL.md: https://api.skillmd.com/api/skills/yejiming/foundry-mcp/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: yejiming (https://skillmd.com/u/yejiming)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/yejiming/foundry-mcp

---


# Foundry MCP

MCP server for Foundry/Forge smart contract development and testing.

Provides MCP integration for the Foundry toolkit, enabling AI agents to compile, test, deploy, and debug Solidity smart contracts using Forge, Cast, Anvil, and Chisel. Supports the full smart contract development lifecycle through the Model Context Protocol.

## Installation

```json
{
  "mcpServers": {
    "foundry": {
      "command": "npx",
      "args": ["-y", "foundry-mcp-server"]
    }
  }
}
```

## Prerequisites

- Foundry toolchain installed (`curl -L https://foundry.paradigm.xyz | bash && foundryup`)

## Links

- **Foundry**: https://getfoundry.sh
- **Book**: https://book.getfoundry.sh
- **GitHub**: https://github.com/foundry-rs/foundry

