---
title: "OpenZeppelin Solidity MCP server: EVM contracts for AI agents"
description: "Install the OpenZeppelin Solidity MCP server in an Aldena project and agents generate Ethereum and EVM contracts in Solidity, from tokens to ERC-4337 accounts."
url: "https://aldena.ai/mcp-servers/openzeppelin-solidity"
---

# OpenZeppelin Solidity gives agents EVM contracts from a library teams trust

OpenZeppelin Solidity MCP server. Install the OpenZeppelin Solidity MCP server in an Aldena project and agents generate Ethereum and EVM contracts in Solidity, from tokens to ERC-4337 accounts.

- **Sign-in**: None
- **Installs as**: `openzeppelin-solidity`
- **Transport**: Streamable HTTP
- **Last verified**: 2026-11-28

OpenZeppelin's Solidity MCP server generates smart contracts for Ethereum and other EVM chains from OpenZeppelin Contracts, the Solidity library much of the ecosystem is built on. Eight tools cover ERC-20, ERC-721 and ERC-1155 tokens, ERC-4337 accounts, governors and custom contracts, plus two experimental token types for stablecoins and real-world assets. Every tool returns Solidity source as Markdown, with no account needed.

In an Aldena project an agent uses it the way an engineer uses OpenZeppelin's wizard, then keeps going. Asked for an NFT collection with a capped supply, it calls `solidity-erc721`, saves the contract into the repository in its conversation's sandbox, writes tests for minting limits and ownership, runs them, and opens a pull request through the [GitHub connector](https://aldena.ai/integrations/github). For the experimental stablecoin and RWA contracts it says so in the description, so nobody mistakes a draft for audited code.

The tools carry no read-only mark and start on ask in the project's [permissions](https://aldena.ai/features/human-in-the-loop). Starknet teams use the [OpenZeppelin Cairo MCP server](https://aldena.ai/mcp-servers/openzeppelin-cairo) instead, and a scan with the [Semgrep MCP server](https://aldena.ai/mcp-servers/semgrep) or a check with the [Zenable MCP server](https://aldena.ai/mcp-servers/zenable) fits before a human review.

## With OpenZeppelin Solidity, your agents can

- Generate Solidity tokens for the ERC-20, ERC-721 and ERC-1155 standards
- Draft stablecoin and real-world asset tokens, both marked experimental
- Create ERC-4337 account contracts for account abstraction
- Generate governor contracts for on-chain DAO voting

## Try asking

- “Use OpenZeppelin Solidity to generate an ERC-721 collection called Field Notes with a capped supply and owner-only minting, then add Foundry tests for both rules.”
- “Generate a Solidity governor contract for our protocol token with a two-day voting period and explain each setting it chose.”
- “Draft an ERC-4337 account contract with OpenZeppelin Solidity and list what we would still need before an audit.”

## OpenZeppelin Solidity MCP tools

| Tool | What it does | Access |
| --- | --- | --- |
| `solidity-erc20` | Generates a fungible ERC-20 token contract in Solidity | Read |
| `solidity-erc721` | Generates an ERC-721 non-fungible token contract in Solidity | Read |
| `solidity-erc1155` | Generates an ERC-1155 multi-token contract in Solidity | Read |
| `solidity-stablecoin` | Generates an experimental, non-upgradeable stablecoin built on ERC-20 | Read |
| `solidity-rwa` | Generates an experimental, non-upgradeable real-world asset token built on ERC-20 | Read |
| `solidity-account` | Generates an account contract that follows ERC-4337 | Read |
| `solidity-governor` | Generates a governance contract, such as for a DAO | Read |
| `solidity-custom` | Generates a custom Solidity smart contract | Read |

## Server

- **Server URL**: `https://mcp.openzeppelin.com/contracts/solidity/mcp`
- **Website**: [openzeppelin.com](https://www.openzeppelin.com)
- **MCP docs**: [OpenZeppelin Solidity MCP docs](https://mcp.openzeppelin.com)

## How to connect OpenZeppelin Solidity

1. **Open Marketplace.** In a project, open Settings → Connectors → MCP servers and press Marketplace.
2. **Install OpenZeppelin Solidity.** Search for OpenZeppelin Solidity and press Install. Aldena adds it as `openzeppelin-solidity`.
3. **Nothing to sign in to.** Aldena installs OpenZeppelin Solidity with no sign-in or key, so its tool calls carry no credentials.
4. **Let agents use it.** Agents find its tools with `mcp_search` and call them with `mcp_call`. Each tool gets its own row in the project's permissions.

## Related MCP servers

- [OpenZeppelin Cairo MCP server](https://aldena.ai/mcp-servers/openzeppelin-cairo): Generate and review Cairo smart contracts.
- [PagerDuty MCP server](https://aldena.ai/mcp-servers/pagerduty): Read incidents, on-call schedules, and services.
- [Parallel Search MCP server](https://aldena.ai/mcp-servers/parallel-search): Run web searches built for agent research.
- [Parallel Task MCP server](https://aldena.ai/mcp-servers/parallel-task): Run deep research tasks that return structured output.
- [All MCP servers](https://aldena.ai/mcp-servers)

## FAQ

### Are the stablecoin and RWA contracts ready for production?

OpenZeppelin marks both as experimental: some of their features are not audited and may change, and neither supports upgradeability. Treat what the agent generates as a starting point for your own review and audit, not as code to deploy as it stands.

### Do I need an OpenZeppelin account to use the Solidity server?

No. The marketplace installs OpenZeppelin's public server with no sign-in or key, and its eight tools work as soon as it connects. They are not marked read-only, so Aldena starts them on ask; move them to allow in the project's permissions when you are comfortable.

### What happens to the Solidity code the server returns?

It arrives as a Markdown code block in the conversation and nothing is written anywhere. The agent puts it into the repository in its sandbox, compiles it and runs your test suite, then opens a pull request, so generated contracts go through the same review as hand-written ones.
