Skip to main content
Glama

OpenZeppelin Contracts MCP Server

Official
by OpenZeppelin

cairo-erc20

Generate ERC-20 compliant token contracts directly in Cairo. Specify token attributes like name, symbol, burnable, pausable, and access controls. Outputs formatted Markdown code for immediate use.

Instructions

Make a fungible token per the ERC-20 standard.

Returns the source code of the generated contract, formatted in a Markdown code block. Does not write to disk.

Input Schema

NameRequiredDescriptionDefault
accessNoThe type of access control to provision. Ownable is a simple mechanism with a single account authorized for all privileged actions. Roles is a flexible mechanism with a separate role for each privileged action. A role can have many authorized accounts.
appNameNoRequired when votes is enabled, for hashing and signing typed structured data. Name for domain separator implementing SNIP12Metadata trait. Prevents two applications from producing the same hash.
appVersionNoRequired when votes is enabled, for hashing and signing typed structured data. Version for domain separator implementing SNIP12Metadata trait. Prevents two versions of the same application from producing the same hash.
burnableNoWhether token holders will be able to destroy their tokens
infoNoMetadata about the contract and author
mintableNoWhether privileged accounts will be able to create more supply or emit more tokens
nameYesThe name of the contract
pausableNoWhether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response.
premintNoThe number of tokens to premint for the deployer.
symbolYesThe short symbol for the token
upgradeableNoWhether the smart contract is upgradeable.
votesNoWhether to keep track of historical balances for voting in on-chain governance, with a way to delegate one's voting power to a trusted account.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "access": { "description": "The type of access control to provision. Ownable is a simple mechanism with a single account authorized for all privileged actions. Roles is a flexible mechanism with a separate role for each privileged action. A role can have many authorized accounts.", "enum": [ "ownable", "roles" ], "type": "string" }, "appName": { "description": "Required when votes is enabled, for hashing and signing typed structured data. Name for domain separator implementing SNIP12Metadata trait. Prevents two applications from producing the same hash.", "type": "string" }, "appVersion": { "description": "Required when votes is enabled, for hashing and signing typed structured data. Version for domain separator implementing SNIP12Metadata trait. Prevents two versions of the same application from producing the same hash.", "type": "string" }, "burnable": { "description": "Whether token holders will be able to destroy their tokens", "type": "boolean" }, "info": { "additionalProperties": false, "description": "Metadata about the contract and author", "properties": { "license": { "description": "The license used by the contract, default is \"MIT\"", "type": "string" }, "securityContact": { "description": "Email where people can contact you to report security issues. Will only be visible if contract source code is verified.", "type": "string" } }, "type": "object" }, "mintable": { "description": "Whether privileged accounts will be able to create more supply or emit more tokens", "type": "boolean" }, "name": { "description": "The name of the contract", "type": "string" }, "pausable": { "description": "Whether privileged accounts will be able to pause specifically marked functionality. Useful for emergency response.", "type": "boolean" }, "premint": { "description": "The number of tokens to premint for the deployer.", "type": "string" }, "symbol": { "description": "The short symbol for the token", "type": "string" }, "upgradeable": { "description": "Whether the smart contract is upgradeable.", "type": "boolean" }, "votes": { "description": "Whether to keep track of historical balances for voting in on-chain governance, with a way to delegate one's voting power to a trusted account.", "type": "boolean" } }, "required": [ "name", "symbol" ], "type": "object" }

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