Back to Catalog

mcp

OpenZeppelin/contracts-wizard/packages/mcp
🔗 Latest commit:41d5c74
🕒 Updated:Sep 9, 2025, 01:05 PM
TypeScript
AI Tools

Interactive smart contract generator based on OpenZeppelin Contracts.

MCP Trust Score
Based on our comprehensive evaluation criteria
🤖 Evaluated by gemini-2.5-flashFix
Trust Score56/100
GitHub Metrics
Repository statistics and activity
⭐ GitHub Stars:272
👥 Contributors:45
📋 Total Issues:112
📦 Has Releases:Yes
🔧 Has CI/CD Pipeline:Yes
Configuration
Configuration example extracted from README.md for Claude Desktop and other clients.
🤖 Evaluated by gemini-2.5-flashFix
{
  "openzeppelin-contracts-mcp": {
    "command": "npx",
    "args": [
      "-y",
      "@openzeppelin/contracts-mcp"
    ],
    "env": {}
  },
  "openzeppelin-contracts-mcp-stdio": {
    "command": "npx",
    "args": [
      "-y",
      "@openzeppelin/contracts-mcp"
    ],
    "env": {}
  }
}
MCP Protocol Support
Implemented MCP protocol features
🤖 Evaluated by gemini-2.5-flashFix
Tools:
Prompts:
Resources:
Sampling:
Roots:
Logging:
STDIO Transport:
HTTP Transport:
OAuth2 Auth:
Dependencies
6 dependencies
Libraries and frameworks used by this MCP server
🤖 Evaluated by gemini-2.5-flashFix
Add Quality Badge
Show your MCP trust score in your README
Trust Score Badge
[![Trust Score](https://archestra.ai/mcp-catalog/api/badge/quality/OpenZeppelin/contracts-wizard/packages--mcp)](https://archestra.ai/mcp-catalog/openzeppelin__contracts-wizard__packages__mcp)
README.md

OpenZeppelin Contracts MCP Server

NPM Package

A Model Context Protocol (MCP) server that allows AI agents to generate smart contracts using OpenZeppelin Contracts libraries.

This server runs locally and requires Node.js to be installed. For a hosted version, see OpenZeppelin MCP Servers.

[!WARNING]
AI agents determine when and how to use the MCP server and therefore may produce inaccurate results. You should always review any information produced by the AI agent to ensure that any results are accurate and suit your purposes.

Features

Provides tools to generate smart contract source code for the following languages and contract kinds. Resulting contracts use OpenZeppelin Contracts libraries for each language. Tools are named in the format <language>-<contract>.

LanguageContracts
solidityerc20, erc721, erc1155, stablecoin, rwa, account, governor, custom
cairoerc20, erc721, erc1155, account, multisig, governor, vesting, custom
stellarfungible, stablecoin, non-fungible
styluserc20, erc721, erc1155

Installation

Cursor

For quick installation, use the button below.

Add to Cursor

For manual installation:

  1. Go to Settings > Cursor Settings > Tools & Integrations > MCP Tools > New MCP Server.
  2. Add the contents from the Client Configuration section to your MCP configuration file and save.
  3. See the MCP server in the list.

Windsurf

  1. Go to Settings > Windsurf Settings > Cascade > Manage MCPs > View raw config.
  2. Add the contents from the Client Configuration section to your MCP configuration file and save.
  3. Click Refresh on the Manage MCP Servers page.
  4. See the MCP server in the list.

Claude Desktop

  1. Go to Settings > Developer > Edit Config.
  2. Add the contents from the Client Configuration section to your MCP configuration file and save.
  3. Restart Claude Desktop.
  4. Click the "Search and tools" button and see the MCP server in the list.

Client Configuration (Cursor/Windsurf/Claude Desktop)

{
  "mcpServers": {
    "OpenZeppelinContracts": {
      "command": "npx",
      "args": [
        "-y",
        "@openzeppelin/contracts-mcp"
      ]
    }
  }
}

Claude Code

claude mcp add OpenZeppelinContracts -- npx -y @openzeppelin/contracts-mcp

VS Code

For quick installation, use one of the buttons below.

Add to VS Code
Add to VS Code Insiders

For manual installation:

  1. Follow VS Code documentation to Add an MCP server to your workspace using the following configuration:
{
  "servers": {
    "OpenZeppelinContracts": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@openzeppelin/contracts-mcp"
      ]
    }
  }
}
  1. Start the MCP server according to Manage MCP servers.

Usage

When interacting with an AI agent, for example in your IDE's Write or Agent mode, ask it to write or modify smart contracts for your use case. When the AI agent determines it is appropriate to do so, it will use the MCP server to generate the contracts or determine best practices for your use case.

mcp MCP Server | Documentation & Integration | Archestra