# Foundry MCP

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

- Skill: `jiayaoqijia/foundry-mcp-2` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx get-skill add jiayaoqijia/foundry-mcp-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jiayaoqijia/foundry-mcp-2/raw
- Safety review: pending (external: skill-scanner WARNING, skillspector CAUTION)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: jiayaoqijia (https://skillmd.com/u/jiayaoqijia)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/jiayaoqijia/foundry-mcp-2

---


# 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

