mcpField
M
Metaplex Agent Registry

Metaplex Agent Registry

Local
three.wsAI & Agents255Updated today

About Metaplex Agent Registry

Metaplex Agent Registry is an MCP server for deploying AI agents to Solana with Metaplex Core assets and EIP-8004 identities. It supports signing with an agent key or an external wallet, and offers devnet rehearsal alongside mainnet deployment.

Key features

  1. 01Mint assets and register EIP-8004 identities
  2. 02Sign with an agent key or external wallet
  3. 03Read agent registrations and wallet balances
  4. 04Build registration documents offline
  5. 05Preview fees and deploy details

Use cases

  1. 01Deploy an agent identity to Solana
  2. 02Rehearse a deployment on devnet
  3. 03Register an existing Core asset
  4. 04Check a wallet's deployment fee tier

MCP support

Exposes tools for minting and registering agents, preparing and broadcasting wallet-signed transactions, and reading registration and wallet data. MCP clients can preview deployments before confirmation; devnet is available for rehearsal.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"nirholas-metaplex-agent": {
"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>",
"DEPLOY_FEE_WALLET": "<DEPLOY_FEE_WALLET>",
"DEPLOY_FEE_ENABLED": "<DEPLOY_FEE_ENABLED>",
"THREE_HALF_PRICE_AT": "<THREE_HALF_PRICE_AT>",
"THREE_FREE_AT": "<THREE_FREE_AT>"
}
}
}
}
Run commandnpx -y @three-ws/metaplex-agent-mcp
Environment variables to set
SOLANA_SECRET_KEYSecretBase58 secret key (or JSON byte array) for the minting wallet. Optional: read tools and the Phantom/Solflare prepare/send flow work without it.
SOLANA_RPC_URLHTTPS Solana RPC endpoint. Defaults to the public endpoint for the configured network; bring your own (Helius / Quicknode / Triton) for production.
METAPLEX_AGENT_NETWORKDefault cluster: mainnet or devnet. Defaults to mainnet; every tool also takes a per-call network.
REQUIRE_CONFIRMRefuse to broadcast a mint or registration until the call is re-issued with confirm=true. Default true.
DEPLOY_FEE_SOLMainnet deploy fee, in SOL, paid to DEPLOY_FEE_WALLET in the same transaction as the mint. Default 0.02.
DEPLOY_FEE_WALLETWallet the deploy fee is paid to. Defaults to the three.ws $THREE buyback wallet; override only when self-hosting a fork.
DEPLOY_FEE_ENABLEDSet false to build a fork that charges no deploy fee. Default true.
THREE_HALF_PRICE_AT$THREE balance in the paying wallet that halves the deploy fee. Default 50000.
THREE_FREE_AT$THREE balance in the paying wallet that waives the deploy fee entirely. Default 250000.

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@three-ws/metaplex-agent-mcp0.2.1

Tools

9

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
namestringYesAgent name. Becomes the Core asset name and the registration name.
imagestringNoThumbnail/avatar image URL (PNG or similar). Shown on metaplex.com/agents, wallets, and explorers.
ownerstringNoMint the asset to this owner instead of the signing wallet.
activebooleanNoRegistration active flag. Default true.
secretstringNoPer-call signing key (base58 secret key or JSON byte array). Overrides SOLANA_SECRET_KEY.
confirmbooleanNoMust be true to broadcast. Anything else returns a spend-nothing preview.
networkenumNoSolana cluster. Defaults to the configured network (mainnet unless overridden).mainnet | devnet
servicesarrayNoServices the agent offers, listed on its Metaplex agent page ({name, endpoint}).
model_urlstringNo3D model URL (GLB). Written as the asset metadata animation_url and as model.uri in the registration, Genesis style.
attributesarrayNoOn-chain Attributes plugin entries (real bytes in the asset account).
collectionanyNoMint into this Metaplex Core collection. The signer must be the collection authority.
add_blockerbooleanNoAttach AddBlocker so no further plugins can be added. Default false.
descriptionstringNoWhat this agent is or does. Stored in the EIP-8004 registration document.
external_urlstringNoOptional external_url in the asset metadata (e.g. the agent home page).
metadata_uristringNoFull override for the asset metadata URI (https or data:). Skips the built-in metadata builder.
x402_supportbooleanNoAdvertise x402 payment support in the registration document. Default false.
registrationsarrayNoExternal registry registrations. Defaults to the chain registry entry, or the three.ws entry when threews_agent_id is set.
permanent_burnbooleanNoAttach PermanentBurnDelegate. Default false.
supported_trustarrayNoTrust models the agent supports. Default ['reputation'] (Genesis style).
permanent_freezebooleanNoAttach PermanentFreezeDelegate (unfrozen). Default false.
registration_uristringNoFull override for the Agent Identity registration URI (https or data:). Skips the built-in registration builder.
royalty_creatorsarrayNoRoyalty split. Percentages must sum to 100. Defaults to the signing wallet at 100%.
threews_agent_idstringNothree.ws agent UUID. Adds the Genesis-exact registration entry {agentId, agentRegistry: "https://three.ws"}.
verified_creatorbooleanNoAttach the VerifiedCreators plugin with the signing wallet verified. Default true (Genesis style).
immutable_metadatabooleanNoAttach the ImmutableMetadata plugin so the metadata can never change. Default true (Genesis style).
permanent_transferbooleanNoAttach PermanentTransferDelegate. Default false.
metadata_attributesarrayNoOff-chain attributes array inside the asset metadata JSON (trait_type/value pairs).
royalty_basis_pointsintegerNoRoyalty in basis points. Default 500 (5%), the Genesis value. 0 removes the Royalties plugin.

Details

From the project README

@three-ws/metaplex-agent-mcp

Deploy AI agents on-chain into the Metaplex Agent Registry on Solana, from any MCP client.

One flow mints a Metaplex Core asset and registers its EIP-8004 agent identity (a single atomic transaction when it fits Solana's 1232-byte limit, create + register in sequence otherwise, exactly how the Genesis 333 landed), so the agent shows up on metaplex.com/agents with its own built-in wallet, reputation surface, and explorer pages. The default output reproduces the exact shape of the three.ws Genesis 333 mints, verified byte-for-byte against the live assets:

  • asset metadata as a self-contained data:application/json;base64 URI (name, image, animation_url GLB)
  • Royalties plugin (5% to the owner), VerifiedCreators (the signing wallet), ImmutableMetadata
  • AgentIdentity plugin carrying the eip-8004#registration-v1 document (model.uri, active, x402Support, registrations, supportedTrust)

Two signing lanes, both self-custodial:

  • Agents sign with their own keypair (SOLANA_SECRET_KEY): mint_onchain_agent.
  • People sign with Phantom, Solflare, Backpack, Ledger, or any Solana wallet: prepare_agent_mint builds the transaction, the wallet signs it, send_signed_transaction broadcasts it. No key ever touches the server.

A mainnet deploy pays a flat 0.02 SOL fee, in the same transaction as the mint, and that fee funds $THREE buybacks. Hold $THREE and it halves, then disappears; devnet never pays it. Every preview shows the number and its recipient before anything is signed. See $THREE: the deploy fee and the holder waiver.

Nothing is mocked: real Metaplex programs, real Solana, and devnet support for free end-to-end rehearsal.

Install

npm install -g @three-ws/metaplex-agent-mcp
# or run ad hoc
npx -y @three-ws/metaplex-agent-mcp

Setup

Claude Code:

claude mcp add metaplex-agent -e SOLANA_SECRET_KEY=<base58> -- npx -y @three-ws/metaplex-agent-mcp

Cursor / any MCP client (mcp.json):

{
	"mcpServers": {
		"metaplex-agent": {
			"command": "npx",
			"args": ["-y", "@three-ws/metaplex-agent-mcp"],
			"env": { "SOLANA_SECRET_KEY": "<base58 secret key>" }
		}
	}
}

SOLANA_SECRET_KEY is optional: every read tool and the whole Phantom/Solflare flow works without it.

Quick start

Rehearse on devnet for free, then go to mainnet:

1. agent_wallet {}                                → confirm the signer is funded
2. mint_onchain_agent { name: "Astra", description: "…",
     image: "https://…png", model_url: "https://…glb",
     x402_support: true, network: "devnet" }      → preview (nothing broadcast)
3. …same call with confirm: true                  → minted + registered, links returned
4. get_onchain_agent { asset: "<returned asset>", network: "devnet" }

A mainnet deploy costs ~0.027 SOL: ~0.007 in Core rent, identity PDA rent, and network fees, plus a flat 0.02 SOL deploy fee that funds $THREE buybacks. Holding $THREE halves that fee and then waives it, and devnet is free. See $THREE.

Tools

ToolWhat it does
mint_onchain_agentMint + register, signed by your key (atomic when it fits, auto-split otherwise). confirm:true gates the spend; anything else returns a full preview.
prepare_agent_mintThe same mint, built for an external wallet (wallet param) to sign. Returns txs_base64, already co-signed by the new asset keypair; sign with signTransaction / signAllTransactions.
send_signed_transactionBroadcast wallet-signed transactions in order, polling each to confirmation and absorbing the create/register propagation race.
register_agent_identityEnrol an already-minted Core asset in the Agent Registry (idempotent; the signer must be the asset authority).
get_onchain_agentRead any registered agent: asset, plugins, decoded metadata + registration documents, identity PDA, built-in wallet + balance.
agent_walletAn asset's built-in wallet (mpl-core Asset Signer PDA), any address, or the configured signer, with live SOL balance.
build_registrationThe EIP-8004 registration JSON + data: URI, fully offline.
list_onchain_agentsLatest registrations from the live three.ws /api/deployments feed (Solana by default, all_chains:true for EVM ERC-8004 too).
three_statusPrices your next deploy: fee schedule, a wallet's live $THREE balance and tier, and the public buyback ledger.

$THREE: the deploy fee and the holder waiver

A mainnet deploy carries a flat 0.02 SOL fee. Three things about it matter:

  • It rides in the same transaction that creates the asset. A deploy that fails, is rejected, or expires moves no money. There is no separate payment step and nothing to reconcile.
  • It is disclosed before anything is signed. Every mint_onchain_agent preview and every prepare_agent_mint response returns deploy_fee_sol and deploy_fee_to, with the tier that produced them.
  • It funds $THREE buybacks. The fee is paid to the wallet the three.ws $THREE buyback lane spends from (FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump is the mint), and the public ledger of what that lane has bought is at /api/three-token/stats. Deploys are the only revenue this package has.

Holding $THREE makes it cheaper, then free:

$THREE in the paying walletDeploy fee
under 50,0000.02 SOL
50,000 or more0.01 SOL
250,000 or morefree

The balance is read live from the chain when the transaction is built. Nothing is staked, escrowed, locked, or spent to earn it: hold the tokens in your own wallet and keep them, and the waiver applies to every agent you deploy. Devnet always pays zero, so a full end-to-end rehearsal stays free.

three_status {}                                  → what your next deploy costs and why
three_status { wallet: "<any base58 address>" }  → price it for someone else's wallet

Self-hosting a fork with different economics is DEPLOY_FEE_SOL, DEPLOY_FEE_WALLET, and DEPLOY_FEE_ENABLED.

Customization

Every field the mint touches is a parameter: owner, collection, royalty basis points and splits, verified creator, immutable metadata, on-chain Attributes, permanent freeze/transfer/burn delegates, AddBlocker, off-chain metadata attributes, external_url, services, trust models, registration entries, and full metadata_uri / registration_uri overrides for documents you host yourself. The defaults are the Genesis 333 values, so calling with just name, description, image, and model_url produces an asset indistinguishable in shape from the originals.

Safety

  • mint_onchain_agent and register_agent_identity broadcast only with confirm: true (set REQUIRE_CONFIRM=false to opt out); previews cost nothing.
  • Keys stay yours: SOLANA_SECRET_KEY or a per-call secret, never a custodial wallet. The wallet lane needs no key at all.
  • Balances are checked before spending, RPC endpoints must be HTTPS, and devnet is a first-class target for rehearsal.

Environment variables

VariableDefaultMeaning
SOLANA_SECRET_KEYunsetBase58 secret key or JSON byte array for the minting wallet.
SOLANA_RPC_URLpublic endpointHTTPS RPC. Bring your own for production traffic.
METAPLEX_AGENT_NETWORKmainnetDefault cluster (mainnet or devnet); every tool takes a per-call network too.
REQUIRE_CONFIRMtrueGate spends behind confirm: true.
THREE_WS_BASEhttps://three.wsHost for the deployments feed and the $THREE ledger.
DEPLOY_FEE_SOL0.02Mainnet deploy fee, in SOL.
DEPLOY_FEE_WALLETthree.ws buyback walletWhere the deploy fee is paid.
DEPLOY_FEE_ENABLEDtrueSet false to build a fork that charges nothing.
THREE_HALF_PRICE_AT / THREE_FREE_AT50000 / 250000$THREE balances that halve, then waive, the fee.
THREE_MINT$THREE mintOnly to track an updated canonical contract.

Library use

The builders are exported for direct embedding (web apps, scripts):

import { buildAgentMint, sendAgentMint, buildUmi, toBase58Signature } from '@three-ws/metaplex-agent-mcp/lib';

const umi = buildUmi({ network: 'devnet', secret: process.env.SOLANA_SECRET_KEY });
const mint = buildAgentMint(umi, {
	network: 'devnet',
	creator: umi.identity.publicKey.toString(),
	name: 'Astra',
	description: 'An autonomous 3D agent',
	image: 'https://example.com/astra.png',
	modelUrl: 'https://example.com/astra.glb',
	x402Support: true,
});
const { signatures, atomic } = await sendAgentMint(umi, mint, { toBase58Signature });

The registration and metadata builders are also importable on their own (dependency-free, browser-safe) from @three-ws/metaplex-agent-mcp/lib/registration, and the transaction builders from @three-ws/metaplex-agent-mcp/lib/mint. The three.ws /deploy-onchain page runs on exactly these. When atomic is false, combinedBuilder still holds the whole mint: compiled as a Solana transaction v1 (4,096-byte limit) it lands create + register in one atomic transaction, which is what /deploy-onchain does for any wallet that advertises v1 signing.

Requirements

  • Node 20+
  • SOL on the target network for minting (~0.027 SOL per agent on mainnet, or ~0.007 with the holder waiver; devnet is free via faucet)

Links

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.