Socket
Book a DemoInstallSign in
Socket

@openzeppelin/contracts-mcp

Package Overview
Dependencies
Maintainers
9
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openzeppelin/contracts-mcp

OpenZeppelin Contracts MCP Server

0.1.0
latest
Source
npmnpm
Version published
Maintainers
9
Created
Source

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:

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

Windsurf

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

Claude Desktop

  • Go to Settings > Developer > Edit Config.
  • Add the contents from the Client Configuration section to your MCP configuration file and save.
  • Restart Claude Desktop.
  • 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:

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

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.

FAQs

Package last updated on 15 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.