OpenZeppelin/contracts-wizard

CategoryWeb
AuthorCommunity
Stars902
PricingFree

Overview

The OpenZeppelin contracts-wizard MCP server bridges the gap between LLM code generation and industry-standard security patterns. Instead of relying on an AI's training data—which may be outdated or prone to hallucinating syntax—this tool allows agents to programmatically interface with OpenZeppelin's vetted templates. Developers can use it to scaffold secure ERC-20, ERC-721, or ERC-1155 contracts by specifying required features like minting, burning, or access control. By shifting the generation logic from probabilistic guessing to a template-driven system, it significantly reduces the risk of critical vulnerabilities in the initial deployment phase and ensures compatibility with the latest contract versions.

Highlights

  • Generates secure, vetted smart contract templates programmatically
  • Eliminates AI hallucinations in Solidity syntax and logic
  • Supports ERC-20, ERC-721, and ERC-1155 standard implementations
  • Seamlessly integrates industry-standard security patterns into AI workflows

Full Documentation

OpenZeppelin Contracts Wizard

![Solidity NPM Package](https://www.npmjs.com/package/@openzeppelin/wizard)
![Cairo NPM Package](https://www.npmjs.com/package/@openzeppelin/wizard-cairo)
![Stellar NPM Package](https://www.npmjs.com/package/@openzeppelin/wizard-stellar)
![Stylus NPM Package](https://www.npmjs.com/package/@openzeppelin/wizard-stylus)
![Uniswap Hooks NPM Package](https://www.npmjs.com/package/@openzeppelin/wizard-uniswap-hooks)
![Contracts CLI NPM Package](https://www.npmjs.com/package/@openzeppelin/contracts-cli)
![Contracts MCP NPM Package](https://www.npmjs.com/package/@openzeppelin/contracts-mcp)
![Netlify Status](https://app.netlify.com/sites/openzeppelin-contracts-wizard/deploys)

Contracts Wizard is a web application to interactively build a contract out of components from OpenZeppelin Contracts. Select the kind of contract that you want, set your parameters and desired features, and the Wizard will generate all of the code necessary. The resulting code is ready to be compiled and deployed, or it can serve as a starting point and customized further with application specific logic.

![](https://wizard.openzeppelin.com)

Usage

Use the Contracts Wizard at https://wizard.openzeppelin.com

CLI

Generate contracts from the command line. See the CLI package.

MCP Servers

Allow AI agents to generate contracts. See the MCP package for local installation, or OpenZeppelin MCP Servers for a hosted version.

TypeScript API

Generate contracts programmatically from your own applications.

View the API documentation for each smart contract language:




Embedding

To embed Contracts Wizard on your site, first include the script tag:

html
<script async src="https://wizard.openzeppelin.com/build/embed.js"></script>

Then place <oz-wizard></oz-wizard> in the body where you want Contracts Wizard to load.

Optionally focus on specific tab with the data-tab attribute as in <oz-wizard data-tab="ERC721"></oz-wizard>.

For languages other than Solidity, use the data-lang attribute, for example: <oz-wizard data-lang="cairo"></oz-wizard>.

Contributing

We welcome contributions from the community! Here's how you can get involved:

1. Fork the repository
2. Create your feature branch
3. Commit your changes
4. Push to the branch
5. Create a Pull Request

If you are looking for a good place to start, find a good first issue here, or open an issue for a bug report or feature request.

You can find more details in our Contributing guide.

License

This project is licensed under the GNU Affero General Public License v3.0 - see the LICENSE file for details.

Join our Telegram