Skip to main content
Glama

OpenZeppelin Contracts MCP Server

Official
by OpenZeppelin

OpenZeppelin Contracts MCP Server

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.

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.

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.

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

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

  1. Features
    1. Installation
      1. Cursor
      2. Windsurf
      3. Claude Desktop
      4. Client Configuration (Cursor/Windsurf/Claude Desktop)
      5. Claude Code
      6. VS Code
    2. Usage

      Related MCP Servers

      • -
        security
        A
        license
        -
        quality
        A Model Context Protocol (MCP) server implementation for the OpenLedger API. This server provides structured context to AI models according to the MCP specification.
        Last updated -
        8
        TypeScript
        Apache 2.0
      • -
        security
        A
        license
        -
        quality
        An open-source implementation of the Model Context Protocol (MCP) that bridges AI agents with enterprise systems, enabling secure access to real-world data and capabilities.
        Last updated -
        2
        Python
        Apache 2.0
      • A
        security
        F
        license
        A
        quality
        An all-in-one Model Context Protocol (MCP) server that connects your coding AI to numerous databases, data warehouses, data pipelines, and cloud services, streamlining development workflow through seamless integrations.
        Last updated -
        2
        Python
        • Apple
        • Linux
      • -
        security
        A
        license
        -
        quality
        Model Context Protocol (MCP) server that provides AI assistants with advanced web research capabilities, including Google search integration, intelligent content extraction, and multi-source synthesis.
        Last updated -
        28
        3
        TypeScript
        MIT License

      View all related MCP servers

      MCP directory API

      We provide all the information about MCP servers via our MCP API.

      curl -X GET 'https://glama.ai/api/mcp/v1/servers/OpenZeppelin/contracts-wizard'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server