Skip to content

MCP Server

The @akta/agent-wallet-mcp package provides a Model Context Protocol server that exposes agent wallet actions as MCP tools. This enables Claude Desktop and other MCP clients to interact with the Algorand blockchain.

Add to your claude_desktop_config.json:

{
"mcpServers": {
"akita-agent-wallet": {
"command": "npx",
"args": ["@akta/agent-wallet-mcp"],
"env": {
"ENV_FILE": "/absolute/path/to/.env"
}
}
}
}

The server follows the standard MCP protocol and works with any compatible client:

Terminal window
ENV_FILE=/path/to/.env npx @akta/agent-wallet-mcp

Every agent wallet action is registered as an MCP tool with:

  • Name — The action name (e.g., send_payment)
  • Description — Human-readable description
  • Input schema — JSON Schema derived from the Zod schema

The AI agent sees all available tools and can invoke them naturally:

“Send 1 ALGO to RECIPIENT_ADDRESS”

The agent calls the send_payment tool with {"receiver": "RECIPIENT_ADDRESS", "amount": 1000000}

The server exposes wallet state as MCP resources:

ResourceDescription
Wallet configCurrent wallet app ID, escrow name, network
Wallet balanceCurrent ALGO and ASA balances
Allowance statusRemaining spending allowances per asset

Pre-built prompts help the AI agent understand its capabilities:

PromptDescription
wallet-overviewDescribes the wallet setup, balances, and available actions
send-paymentGuides the agent through sending a payment

The MCP server loads environment variables in this order:

  1. ENV_FILE environment variable pointing to a .env file
  2. ./.env in the current working directory

All configuration is stored in the .env file generated by the setup wizard. See Quick Start for the full list of variables.