SuperAPIAI Directory

algorand-mcp

github.com · AI developer platforms

Algorand MCP Server is a Model Context Protocol (MCP) server built by GoPlausible that provides AI agents and LLMs with complete access to the Algorand blockchain. Through the standard MCP stdio protocol, it exposes Algorand blockchain operations as tools and is compatible with clients such as Claude Desktop, Claude Code, Cursor, Windsurf, VS Code/GitHub Copilot, Cline, OpenAI Codex CLI, and opencode. Main capabilities include: agent wallet (mnemonics stored in a local SQLite database, supporting account creation, switching, signing, and asset opt-in), transaction construction/signing/submission (payments, assets, applications, key registration), atomic transaction groups, TEAL compilation and disassembly, Algod and Indexer API access, NFDomains name service, Pera Wallet asset verification, x402 HTTP micropayments, Tinyman AMM, Haystack Router DEX aggregation, Alpha Arcade prediction market trading, ARC-90 payment URI and QR code generation, and the Algorand knowledge base. Each tool call can select mainnet, testnet, or localnet, and supports pagination. Running requires Node.js v20.19 or later.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

Algorand MCP Server is a comprehensive Model Context Protocol (MCP) server designed to enable AI agents and large language models (LLMs) to fully operate the Algorand blockchain. Algorand is a carbon-negative, pure proof-of-stake (PPoS) Layer 1 blockchain with instant finality, low fees, and native support for smart contracts (AVM), standard assets (ASA), and atomic transactions. MCP is an open standard that allows AI applications to connect to external tools and data sources; this server encapsulates Algorand blockchain operations as MCP tools that any compatible AI client can use, including Claude Desktop, Claude Code, Cursor, Windsurf, VS Code/GitHub Copilot, Cline, OpenAI Codex CLI, opencode, and others.

Main capabilities:

  • Agent wallet: mnemonics are stored in a local SQLite database, and the MCP server signs on behalf of the agent; mnemonics never appear in any tool response. Supports wallet accounts with human-readable nicknames, account creation, key management, and rekeying.
  • Transaction operations: build, sign, and submit transactions (payments, assets, applications, key registration), with support for atomic transaction groups.
  • Development tools: TEAL compilation and disassembly.
  • On-chain data access: Algod and Indexer API access (accounts, assets, applications and boxes, transactions, node status, search).
  • Name service: NFDomains (NFD) name service integration.
  • Asset verification: Pera Wallet asset verification and verified asset search (mainnet only).
  • x402 HTTP micropayments: automatically discover and complete paid requests in one click (using USDC/ALGO), plus Bazaar directory search for paid x402 APIs.
  • DeFi integrations: Tinyman AMM (pools, swaps, liquidity), Haystack Router DEX aggregation (finding optimal-price swaps across Tinyman, Pact, and Folks), Alpha Arcade prediction market trading (browse markets, order books, limit/market orders, positions, claims).
  • Payment URIs: ARC-90 payment URI and QR code generation (ARC-90 supersedes ARC-26).
  • Knowledge base: an Algorand knowledge base containing a complete classification of developer documentation.
  • Network and pagination: each tool call allows selecting a network (mainnet, testnet, localnet) and supports pagination.

Usage: The server runs via stdio. Standard usage requires no environment variables; network selection and pagination are handled on each tool call, and mainnet and testnet node URLs are built in. Optional environment variables are used to set the localnet node URL, private node token, Haystack Router API key, Alpha Arcade API key and base URL (alpha_get_reward_markets requires ALPHA_API_KEY), default page size, and Bazaar directory URL.

Configuration methods include: installing the @goplausible/openclaw-algorand-plugin npm package for automatic configuration; editing the Claude Desktop configuration file; using a global install or absolute path; creating .mcp.json in the project root; adding via the command line; configuring in clients such as Cursor, Windsurf, VS Code/GitHub Copilot, Cline, OpenAI Codex CLI, and opencode; any MCP-compatible client can use the command npx, the argument ["@goplausible/algorand-mcp"], and the stdio transport.

Network selection: Except for Pera Wallet tools, every tool accepts an optional network parameter: "mainnet", "testnet" (default), or "localnet". The Algod and Indexer URLs for mainnet and testnet are built in via AlgoNode; localnet requires ALGORAND_LOCALNET_URL. Some integrations are bound to specific networks. When network is not provided, testnet is used by default.

Pagination: Responses from API tools (api_) and Alpha Arcade tools (alpha_) are automatically paginated. These tools accept an optional itemsPerPage parameter (default 10, or the environment variable ITEMS_PER_PAGE). When hasNextPage is true in the response metadata, use the same parameters plus pageToken (taken from metadata.pageToken) is called again to fetch the next page.

Agent wallet security model: The wallet.db file is where the secrets live; anyone with read access can recover all mnemonics stored in the wallet. Mitigations include filesystem permissions (0600, owner only), placing the data directory on a non-shared/non-world-readable volume, and treating the data directory like any other secret store (careful snapshots, restricted backups, encrypted host disk). For Docker deployments, mount ~/.algorand-mcp as a named volume and restrict access. Each server process loads wallet.db into memory once (sql.js) and rewrites the entire file after every change without re-reading it, so two processes sharing one wallet.db will not see each other's changes and the last writer wins. Only change the wallet from one server process at a time.

Backward compatibility: Older versions stored mnemonics in the OS keychain. The server opens wallet.db on the first wallet operation of each process and runs a silent, idempotent migration: for non-archived account rows whose mnemonic column is NULL or empty, it attempts to read the mnemonic from the keychain and copy it into the database column; the original keychain entry is retained as a redundant backup and is deleted on a best-effort basis only when the account is removed. After migration completes, the database is the single source of truth. Account rows whose mnemonics cannot be read are archived (not deleted); archived rows are hidden by default, do not become active accounts, and can be viewed via wallet_list_accounts { archived: true }. Archiving is silent at the MCP tool layer, with only one stderr log line produced per failed keychain read.

x402 HTTP payments: x402 is an HTTP-native micropayment protocol that uses the 402 Payment Required status as a real handshake. This MCP implements the Algorand version of x402, where payments are USDC (or native ALGO) transfers on Algorand. The two payment tools combine the manual flow (probe→parse→build fee payer→build payment→group→sign→encode→header→retry) into a single tool call. They do not check asset opt-in; opt-in must be done in advance. The three Bazaar tools (bazaar_list, bazaar_search, bazaar_get_resource_details) browse BAZAAR_BASPaid API directory provided by E_URL.

Protocol details: Payments are transmitted via the x402 V2 PAYMENT-SIGNATURE header, whose body is base64-encoded JSON containing x402Version (2), scheme, network (a CAIP-2 identifier, such as mainnet algorand:wGHE2Pw…), payload (containing the Algorand transaction group paymentGroup, paymentIndex: 1), and accepted (a verbatim copy of the accepts[] entry selected by the client). Payment is an atomic 2-transaction group: index 0 is the fee payer transaction (sender = facilitator, amount = 0, fee = 2000 µAlgo covering the entire group); index 1 is the actual USDC ASA transfer (sender = wallet, fee = 0). The wallet signs only index 1, and the facilitator signs index 0 server-side at settlement. The user's wallet pays only USDC, not even the network fee. The network string is an Algorand CAIP-2 identifier, distinguishing mainnet and testnet; endpoints that accept only non-Algorand networks such as Base or Solana cannot be satisfied, and the tool returns an explicit error.

Coinbase Wallet MCP compatibility (x402 surface): make_http_request_with_x402 and x402_discover_payment_requirements are compatible in name and shape with the x402 tools of Coinbase Wallet MCP. The input parameters (baseURL, path, method, queryParams, body, headers, correlationId, maxAmountPerRequest, paymentRequirements, preferredNetwork, extensions) are the same, and the output envelope (result, _atomicUnitsNote) is the same. This means agents and MCP applications written for the Coinbase Wallet MCP x402 tools can run on this server without modifying their prompts, as long as they access Algorand x402 endpoints. Compatibility is limited to the x402 surface; wallet, account, transaction building, and DEX tools are Algorand-specific and do not mirror Coinbase's wallet API. The only parameter that necessarily differs is preferredNetwork, which accepts Algorand names (mainnet | testnet | localnet), because the wallet signs only Algorand transactions. This value only selects among the accepts entries for Algorand mainnet and testnet; a value that matches no entry (a non-Algorand name or localnet) is ignored, and the cheapest affordable entry is paid. When an endpoint provides no mainnet or testnet entry, the tool returns an error and lists the networks it accepts.

Example — paid weather API: The active wallet account must already be opted in to the target ASA (such as USDC) and hold a sufficient balance to cover the required amount (maxAmountRequired on x402 V1 servers). If not opted in, payment fails at settlement; use wallet_optin_asset to opt in first.

Runtime requirements: Node.js v20.19 or later; npm, pnpm, or yarn.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools