Skip to main content
Glama

zora_create_coin

Deploy a new coin on the Zora Coins ecosystem using the Base mainnet. Specify name, symbol, metadata URI, and payout recipient to create your token.

Instructions

Deploy a new Zora coin. Requires PRIVATE_KEY; only Base mainnet is supported currently.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
symbolYes
uriYes
payoutRecipientYes
platformReferrerNo
chainIdNo
currencyNo
gasMultiplierNo

Implementation Reference

  • The handler function that executes the zora_create_coin tool. It validates wallet setup, destructures input arguments, determines deploy currency, calls the external CoinsSDK.createCoin function to deploy the coin on Base chain, and formats the result as MCP content.
    async (args) => { ensureWallet(); const { name, symbol, uri, payoutRecipient, platformReferrer, chainId, currency, gasMultiplier, } = args; const deployCurrency = currency === "ETH" ? CoinsSDK.DeployCurrency.ETH : CoinsSDK.DeployCurrency.ZORA; const result = await CoinsSDK.createCoin( { name, symbol, uri: uri as any, // ValidMetadataURI, validated on chain by SDK payoutRecipient: payoutRecipient as any, platformReferrer: platformReferrer as any, chainId: chainId ?? DEFAULT_CHAIN.id, currency: deployCurrency, }, walletClient!, publicClient, { gasMultiplier: gasMultiplier ?? 120, } ); return { content: [{ type: "text", text: json(result) }] }; }
  • Zod-based input schema for the zora_create_coin tool, defining required fields like name, symbol, uri, payoutRecipient and optional parameters.
    inputSchema: { name: z.string().min(1), symbol: z.string().min(1), uri: z.string().min(1), payoutRecipient: z.string().min(1), platformReferrer: z.string().optional(), chainId: z.number().optional(), currency: z.enum(["ZORA", "ETH"]).optional(), gasMultiplier: z.number().int().min(50).max(500).optional(), },
  • src/index.ts:334-386 (registration)
    The McpServer.registerTool call that registers the zora_create_coin tool with its schema and handler function.
    server.registerTool( "zora_create_coin", { title: "Create a new coin", description: "Deploy a new Zora coin. Requires PRIVATE_KEY; only Base mainnet is supported currently.", inputSchema: { name: z.string().min(1), symbol: z.string().min(1), uri: z.string().min(1), payoutRecipient: z.string().min(1), platformReferrer: z.string().optional(), chainId: z.number().optional(), currency: z.enum(["ZORA", "ETH"]).optional(), gasMultiplier: z.number().int().min(50).max(500).optional(), }, }, async (args) => { ensureWallet(); const { name, symbol, uri, payoutRecipient, platformReferrer, chainId, currency, gasMultiplier, } = args; const deployCurrency = currency === "ETH" ? CoinsSDK.DeployCurrency.ETH : CoinsSDK.DeployCurrency.ZORA; const result = await CoinsSDK.createCoin( { name, symbol, uri: uri as any, // ValidMetadataURI, validated on chain by SDK payoutRecipient: payoutRecipient as any, platformReferrer: platformReferrer as any, chainId: chainId ?? DEFAULT_CHAIN.id, currency: deployCurrency, }, walletClient!, publicClient, { gasMultiplier: gasMultiplier ?? 120, } ); return { content: [{ type: "text", text: json(result) }] }; } );
  • Helper function used by write tools including zora_create_coin to ensure PRIVATE_KEY is set and wallet client is initialized.
    function ensureWallet() { if (!walletClient || !account) { throw new Error( "Write operation requires PRIVATE_KEY and BASE_RPC_URL. Set them in your environment and restart the server." ); } }

Latest Blog Posts

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/r4topunk/zora-coins-mcp-server'

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