Skip to main content
Glama
Jake-loranger

Algorand MCP Server

generate_algorand_account

Create a new Algorand blockchain account with a unique address and mnemonic for secure access and transactions.

Instructions

Generate a new Algorand account with address and mnemonic

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler function in AlgorandService class that generates a new Algorand account using algosdk.generateAccount() and derives the mnemonic from the secret key.
    generateAccount(): { account: algosdk.Account; mnemonic: string } {
        const account = algosdk.generateAccount();
        const mnemonic = algosdk.secretKeyToMnemonic(account.sk);
    
        return { account, mnemonic };
    }
  • MCP server tool execution handler (switch case) that parses arguments, calls algorandService.generateAccount(), and formats the response.
    case 'generate_algorand_account': {
        GenerateAccountArgsSchema.parse(args);
        try {
            const { account, mnemonic } = algorandService.generateAccount();
            return {
                content: [
                    {
                        type: 'text',
                        text: `New Algorand Account Generated:\nAddress: ${account.addr}\nMnemonic: ${mnemonic}\n\n⚠️ SECURITY WARNING: Store the mnemonic phrase securely and never share it. This is required to access your account.`,
                    },
                ],
            };
        } catch (error) {
            return {
                content: [
                    {
                        type: 'text',
                        text: `Error generating account: ${error}`,
                    },
                ],
                isError: true,
            };
        }
    }
  • Zod schema definition for generate_algorand_account tool input arguments (empty object, no parameters).
    const GenerateAccountArgsSchema = z.object({});
  • src/index.ts:156-164 (registration)
    Tool registration entry in the TOOLS array, specifying name, description, and input schema for MCP server.
    {
        name: 'generate_algorand_account',
        description: 'Generate a new Algorand account with address and mnemonic',
        inputSchema: {
            type: 'object',
            properties: {},
            required: [],
        },
    },

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/Jake-loranger/algorand-mcp-server'

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