OpenZeppelin — Claude Code MCP server: what it does, how to install
Remote MCP server that generates Solidity smart contracts using OpenZeppelin standards. Helpful when drafting tokens, DAOs, or ERC-4337 accounts in an AI assistant.
no license 1,077 installs updated 2026-03-29
claude mcp add --transport http openzeppelin https://openzeppelin.run.toolsWhat OpenZeppelin does
The server operates over an HTTP endpoint at https://openzeppelin.run.tools, providing eight tools for Solidity code generation. It covers standard token types like ERC-20, ERC-721, and ERC-1155, alongside DAO governance and ERC-4337 smart accounts. A generic builder is also available for arbitrary contract logic.
Generated contracts arrive directly in chat as Markdown blocks. The server never writes files to disk. You must save the resulting code into your repository yourself or delegate file creation to the coding assistant.
Templates for stablecoins and real-world asset (RWA) contracts remain experimental. OpenZeppelin flags parts of their code as unaudited and subject to future revisions.
What it helps with
- generate token contracts following ERC-20, ERC-721, or ERC-1155 standards
- scaffold a DAO governance contract using OpenZeppelin guidelines
- create an account abstraction contract matching ERC-4337
- draft experimental contracts for stablecoins or real-world assets
Example prompts for the agent
- Generate a burnable ERC-20 token contract using the
solidity-erc20tool - Scaffold a DAO governance contract via
solidity-governor - Create an ERC-4337 smart account using
solidity-account
How to install OpenZeppelin
Platform CLI: remote server
claude mcp add --transport http openzeppelin https://openzeppelin.run.toolsPlatform CLI: remote server
codex mcp add openzeppelin --url https://openzeppelin.run.toolsConfig file
{
"mcpServers": {
"openzeppelin": {
"url": "https://openzeppelin.run.tools"
}
}
}Config file
{
"servers": {
"openzeppelin": {
"type": "http",
"url": "https://openzeppelin.run.tools"
}
}
}Platform CLI: remote server
gemini mcp add -t http openzeppelin https://openzeppelin.run.toolsStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about OpenZeppelin
How do I install OpenZeppelin in Claude Code?
Run claude mcp add --transport http openzeppelin https://openzeppelin.run.tools. The tool connects directly via HTTP without requiring local builds.
What does the OpenZeppelin MCP server do?
It gives AI assistants tools to generate Solidity smart contracts using OpenZeppelin patterns. All code is returned directly in Markdown blocks.
Does the server save generated contracts to disk?
No, its tools do not write files to your local storage. You need to save the Markdown code output manually or let your AI agent create the file.