# Metaplex Agent Registry

This MCP server creates an EIP-8004 identity for an agent in the Solana-based Metaplex Agent Registry. Use it to deploy an agent and inspect its registration.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 249
- Author: nirholas
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/nirholas/three.ws/tree/HEAD/packages/metaplex-agent-mcp
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/mcp/metaplex-agent-registry

## What it does

The server mints a Metaplex Core asset and registers the agent identity in the Metaplex Agent Registry. Supply a name, description, image, and model URL; tools can also read registered agents, build a registration document, and list recent registrations. Sign with an agent key or an external Solana wallet such as Phantom, Solflare, Backpack, or Ledger.

\`mint_onchain_agent` returns a preview first and broadcasts only after confirmation. For an external wallet, `prepare_agent_mint` builds the transaction for signing, then `send_signed_transaction` submits it. `SOLANA_SECRET_KEY` is optional for read tools and the Phantom or Solflare wallet flow.

Mainnet deployments carry a 0.02 SOL fee that funds $THREE buybacks; holding enough tokens lowers or waives it. Devnet charges no deployment fee. That makes devnet suitable for rehearsing the flow, while mainnet calls for budgeting the fee and network costs.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `SOLANA_SECRET_KEY`, `SOLANA_RPC_URL`, `METAPLEX_AGENT_NETWORK`, `REQUIRE_CONFIRM`, `DEPLOY_FEE_SOL`, `DEPLOY_FEE_WALLET`, `DEPLOY_FEE_ENABLED`, `THREE_HALF_PRICE_AT`, `THREE_FREE_AT` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env SOLANA_SECRET_KEY=<SOLANA_SECRET_KEY> --env SOLANA_RPC_URL=<SOLANA_RPC_URL> --env METAPLEX_AGENT_NETWORK=<METAPLEX_AGENT_NETWORK> --env REQUIRE_CONFIRM=<REQUIRE_CONFIRM> --env DEPLOY_FEE_SOL=<DEPLOY_FEE_SOL> --transport stdio metaplex-agent-mcp -- npx -y @three-ws/metaplex-agent-mcp
```
Replace <…> with your own values. 4 more environment variables are in the server README

### Codex

**Platform CLI**
```bash
codex mcp add metaplex-agent-mcp --env SOLANA_SECRET_KEY=<SOLANA_SECRET_KEY> --env SOLANA_RPC_URL=<SOLANA_RPC_URL> --env METAPLEX_AGENT_NETWORK=<METAPLEX_AGENT_NETWORK> --env REQUIRE_CONFIRM=<REQUIRE_CONFIRM> --env DEPLOY_FEE_SOL=<DEPLOY_FEE_SOL> -- npx -y @three-ws/metaplex-agent-mcp
```
Replace <…> with your own values. 4 more environment variables are in the server README

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "metaplex-agent-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@three-ws/metaplex-agent-mcp"
            ],
            "env": {
                "SOLANA_SECRET_KEY": "<SOLANA_SECRET_KEY>",
                "SOLANA_RPC_URL": "<SOLANA_RPC_URL>",
                "METAPLEX_AGENT_NETWORK": "<METAPLEX_AGENT_NETWORK>",
                "REQUIRE_CONFIRM": "<REQUIRE_CONFIRM>",
                "DEPLOY_FEE_SOL": "<DEPLOY_FEE_SOL>"
            }
        }
    }
}
```
Replace <…> with your own values. 4 more environment variables are in the server README

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "metaplex-agent-mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@three-ws/metaplex-agent-mcp"
            ],
            "env": {
                "SOLANA_SECRET_KEY": "<SOLANA_SECRET_KEY>",
                "SOLANA_RPC_URL": "<SOLANA_RPC_URL>",
                "METAPLEX_AGENT_NETWORK": "<METAPLEX_AGENT_NETWORK>",
                "REQUIRE_CONFIRM": "<REQUIRE_CONFIRM>",
                "DEPLOY_FEE_SOL": "<DEPLOY_FEE_SOL>"
            }
        }
    }
}
```
Replace <…> with your own values. 4 more environment variables are in the server README

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e SOLANA_SECRET_KEY=<SOLANA_SECRET_KEY> -e SOLANA_RPC_URL=<SOLANA_RPC_URL> -e METAPLEX_AGENT_NETWORK=<METAPLEX_AGENT_NETWORK> -e REQUIRE_CONFIRM=<REQUIRE_CONFIRM> -e DEPLOY_FEE_SOL=<DEPLOY_FEE_SOL> metaplex-agent-mcp npx -y @three-ws/metaplex-agent-mcp
```
Replace <…> with your own values. 4 more environment variables are in the server README

## When to use it
- mint an agent and register its Solana identity
- inspect a registered agent and its built-in wallet
- build an EIP-8004 registration document offline
- check a wallet’s deployment fee tier

## Example prompts
- Deploy agent Astra on devnet with a description, image, and model URL.
- Prepare an agent mint for Phantom and show me the transaction before signing.
- Look up the registered agent using its asset address.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

From the same set: [nirholas/three.ws](https://affpapa.org/en/nevibecode/by/nirholas/three.ws.md) — 43 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
