SuperAPIAI Directory

OpenZeppelin/contracts-wizard

github.com · AI coding

OpenZeppelin Contracts MCP Server is a local service based on the Model Context Protocol (MCP) that enables AI agents to invoke the OpenZeppelin Contracts library to generate smart contract source code. It supports multiple languages and contract types, with tool names in the <language>-<contract> format; in hosts that support the MCP Apps extension (such as Cursor and Claude), it can also render an interactive Wizard interface, providing the same options as the web version, live code preview, and a button to hand the current source code back to the agent. The service requires a local Node.js installation to run, and a hosted version is also available. The official guidance notes that AI agents may produce inaccurate results and should be manually reviewed before use.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

Purpose: This MCP server is aimed at AI agents, enabling them, when writing or modifying smart contracts, to invoke the OpenZeppelin Contracts library to generate contract source code, or to obtain best-practice recommendations for specific use cases.

Main capabilities: It provides generation tools divided by language and contract type, with tool names in the <language>-<contract> format, and the generated contracts use the OpenZeppelin Contracts library for the corresponding language. For hosts that support the MCP Apps extension (such as Cursor and Claude), each tool can render an interactive Wizard UI: it includes the same options as the web version of the Wizard for that contract type, a live code preview, and a button to hand the current source code back to the agent; because the tool name already selects the language and type, the language and type selectors are omitted from the interface.

Interaction details: The Send Updates to Agent button checks the host's MCP Apps capabilities. If the host supports message (such as Claude), it sends a chat message containing the complete current source code, so that the agent sees option changes, and, when declared by the host, makes a best effort to stage it via updateModelContext; if the host has no messaging capability (such as the current Cursor, including hosts that only declare updateModelContext), the button becomes Copy to Clipboard. External links (the "Read more" tooltip, import hyperlinks in the preview) are invoked via the host's openLinks capability by calling openLink; if the host does not declare that capability, these links are hidden. Clients that do not support Apps can still work, with tools returning the source code as Markdown text; the server always returns tool text, and hosts that do not implement MCP Apps will ignore the UI metadata.

Usage: The server runs locally and requires Node.js to be installed; for the hosted version, see OpenZeppelin MCP Servers. Installation can be configured manually: in Cursor, add the client configuration under Settings > Cursor Settings > Tools & Integrations > MCP Tools > New MCP Server; in Windsurf, under Settings > Windsurf Settings > Cascade > ManaAfter configuring ge MCPs > View raw config, click Refresh on the Manage MCP Servers page; for Claude Desktop, after configuring in Settings > Developer > Edit Config, restart and then click "Search and tools" to view the servers; for VS Code, add the MCP server to the workspace according to the documentation. Then, in the IDE's Write or Agent mode, ask the AI agent to write or modify smart contracts; the agent will call this server when it determines it is appropriate.

Build instructions: Interactive App HTML is not committed to git, but is generated into packages/mcp/apps/ and included in the published npm package. When using the package published via npm/npx, no additional build is required; for local checkouts (Cursor/Claude pointing to packages/mcp/dist/cli.js or a file: dependency), after cloning or modifying the MCP App UI source code, run yarn --cwd packages/mcp build:apps; if the HTML is missing, the server will fail at startup and prompt you to run that command. CI builds the Apps before MCP tests, and prepublishOnly builds the Apps before npm publishing.

Use cases and limitations: Suitable for use in MCP-capable IDEs or chat clients, where an AI agent assists in generating smart contracts based on OpenZeppelin Contracts and uses the interactive interface to adjust options and preview code. Limitations include: a local Node.js environment is required (or use the hosted version); the AI agent decides on its own when and how to use the server, which may produce inaccurate results, and the official guidance requires always reviewing the generated information; some interactive capabilities depend on whether the host supports capabilities such as MCP Apps, message, updateModelContext, and openLinks; when unsupported, functionality will be degraded or hidden.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools