
A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

An MCP server exposing Algorand blockchain operations as tools for compatible AI clients.
Algorand MCP Server is cataloged as an MCP server attributed to goplausible. An MCP server exposing Algorand blockchain operations as tools for compatible AI clients. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Algorand MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Mnemonics are stored in a local SQLite wallet database, and the server signs on the agent's behalf without returning them in tool responses.
Most tools accept a per-call network selection for mainnet, testnet, or localnet, and default to testnet when none is provided.
README.md · ded849b7a018 · 采集于 2026-11-13 07:06:56 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
A comprehensive Model Context Protocol (MCP) server that gives AI agents and LLMs full access to the Algorand blockchain. Built by GoPlausible.
Algorand is a carbon-negative, pure proof-of-stake Layer 1 blockchain with instant finality, low fees, and built-in support for smart contracts (AVM), standard assets (ASAs), and atomic transactions.
Model Context Protocol is an open standard that lets AI applications connect to external tools and data sources. This server exposes Algorand blockchain operations as MCP tools that any compatible AI client can use — Claude Desktop, Claude Code, Cursor, Windsurf, and others.
npm install -g @goplausible/algorand-mcp
git clone https://github.com/GoPlausible/algorand-mcp.git
cd algorand-mcp
npm install
npm run build
The server runs over stdio. There are three ways to invoke it — pick whichever suits your setup:
| Method | Command | When to use |
|---|---|---|
| npx (recommended) | npx @goplausible/algorand-mcp | No install needed, always latest version |
| Global install | algorand-mcp | After npm install -g @goplausible/algorand-mcp |
| Absolute path | node /path/to/dist/index.js | Built from source or local clone |
No environment variables are required for standard use. Network selection and pagination are handled per tool call, and mainnet and testnet node URLs are built in. Optional environment variables set localnet node URLs, a private node token, a Haystack Router API key, an Alpha Arcade API key and base URL (alpha_get_reward_markets needs ALPHA_API_KEY), the default page size and the Bazaar directory URL (see Optional Environment Variables).
No manual configuration needed — install the @goplausible/openclaw-algorand-plugin npm package and the Algorand MCP server is configured automatically:
npm install -g @goplausible/openclaw-algorand-plugin
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Using npx:
{
"mcpServers": {
"algorand-mcp": {
"command": "npx",
"args": ["@goplausible/algorand-mcp"]
}
}
}
Using global install:
{
"mcpServers": {
"algorand-mcp": {
"command": "algorand-mcp"
}
}
}
Using absolute path:
{
"mcpServers": {
"algorand-mcp": {
"command": "node",
"args": ["/absolute/path/to/algorand-mcp/dist/index.js"]
}
}
}
Create .mcp.json in your project root (project scope):
{
"mcpServers": {
"algorand-mcp": {
"type": "stdio",
"command": "npx",
"args": ["@goplausible/algorand-mcp"]
}
}
}
Or add it from the command line; put --scope user after mcp add to make it available in all your projects:
claude mcp add algorand-mcp -- npx @goplausible/algorand-mcp
Add via Settings > MCP Servers, or edit .cursor/mcp.json in your project root:
{
"mcpServers": {
"algorand-mcp": {
"command": "npx",
"args": ["@goplausible/algorand-mcp"]
}
}
}
Add via Settings > MCP, or edit ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"algorand-mcp": {
"command": "npx",
"args": ["@goplausible/algorand-mcp"]
}
}
}
Edit .vscode/mcp.json in your workspace root, or open Settings > MCP Servers:
{
"servers": {
"algorand-mcp": {
"type": "stdio",
"command": "npx",
"args": ["@goplausible/algorand-mcp"]
}
}
}
Add via the MCP Servers panel in the Cline sidebar, or edit ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json (macOS):
{
"mcpServers": {
"algorand-mcp": {
"command": "npx",
"args": ["@goplausible/algorand-mcp"],
"disabled": false
}
}
}
Add to ~/.codex/config.toml:
[mcp_servers.algorand-mcp]
command = "npx"
args = ["@goplausible/algorand-mcp"]
Or add from the command line:
codex mcp add algorand-mcp -- npx @goplausible/algorand-mcp
Edit opencode.json in your project root, or ~/.config/opencode/opencode.json for global scope:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"algorand-mcp": {
"type": "local",
"command": ["npx", "@goplausible/algorand-mcp"],
"enabled": true
}
}
}
The server speaks the standard MCP stdio protocol. For any client not listed above, configure it with:
npx (or algorand-mcp if globally installed, or node /path/to/dist/index.js)["@goplausible/algorand-mcp"] (for npx)stdioEvery tool except the Pera Wallet tools accepts an optional network parameter: "mainnet", "testnet" (default), or "localnet". Algod and Indexer URLs are built-in for mainnet and testnet via AlgoNode. Localnet needs ALGORAND_LOCALNET_URL (see Optional Environment Variables).
Some integrations are tied to specific networks:
| Tools | Networks |
|---|---|
NFDomains (api_nfd_*) | Always mainnet; network is ignored |
Pera Wallet (api_pera_*) | Always mainnet; no network parameter |
Tinyman (api_tinyman_*), Haystack Router (api_haystack_*) | Mainnet and testnet; localnet is rejected |
Alpha Arcade (alpha_*) | Mainnet only (the market app and USDC asset ids are mainnet); pass "network": "mainnet" |
x402_discover_payment_requirements, make_http_request_with_x402 | network is ignored; make_http_request_with_x402 pays on the Algorand network (mainnet or testnet) of the chosen payment requirement, and preferredNetwork picks among them |
bazaar_list, bazaar_search | network filters the directory listing; bazaar_get_resource_details ignores it |
Example tool call:
{ "name": "api_algod_get_account_info", "arguments": { "address": "ABC...", "network": "testnet" } }
If no network is provided, tools default to testnet. Pass "network": "mainnet" for mainnet.
Responses from the API tools (api_*) and the Alpha Arcade tools (alpha_*) are automatically paginated. Those tools accept an optional itemsPerPage parameter (default: 10, or the ITEMS_PER_PAGE environment variable). When a response's metadata.hasNextPage is true, call the tool again with the same arguments plus pageToken set to metadata.pageToken to fetch the next page.
The agent wallet is a local SQLite database that the MCP server controls on the agent's behalf. The server holds the mnemonics and signs transactions for the agent — the agent never sees the mnemonics in any tool response. Each server process loads wallet.db into memory once (sql.js) and rewrites the whole file after every change without re-reading it, so two processes sharing one wallet.db don't see each other's changes and the last one to write wins. Change the wallet from one server process at a time.
| Layer | What it stores | Where |
|---|---|---|
SQLite (wallet.db) | Account rows in accounts (id, address, public_key, nickname, mnemonic, archived, created_at) and the active-account index in wallet_state | ~/.algorand-mcp/wallet.db (mode 0600) |
Threat model. The wallet.db file is the secret. Anyone with read access to it can recover every mnemonic stored in the wallet. The mitigations are filesystem permissions (0600, owner-only), keeping the data directory off shared/world-readable volumes, and treating the data directory like any other secret store (snapshot it carefully, restrict backups, encrypt the host disk for at-rest protection). For Docker deployments, mount ~/.algorand-mcp as a named volume and restrict access to it like you would any secret material.
Agent (LLM) MCP Server Storage
────────── ────────── ───────
│ │ │
│ wallet_add_account │ │
│ { nickname: "main" } │ │
│ ──────────────────────────► │ generate keypair │
│ │ INSERT (address, public_key, │
│ │ nickname, mnemonic) ──►│ wallet.db
│ ◄─ { address, publicKey, │ │
│ nickname, index } │ │
│ │ │
│ wallet_sign_transaction │ │
│ { transaction: {...} } │ │
│ ──────────────────────────► │ SELECT mnemonic FROM accounts ◄─│
│ │ WHERE address=<active> │
│ │ sign in memory │
│ ◄─ { txID, blob } │ (key discarded after sign) │
│ │ │
wallet_add_account) — Generates a keypair and inserts a row containing the mnemonic into accounts. Returns address, public key, nickname, and index. The mnemonic is never returned.wallet_switch_account changes it by nickname or index. All signing and query tools operate on the active account.wallet_sign_transaction) — Reads the mnemonic from the DB, signs in memory, returns only the signed blob.wallet_sign_data) — Signs arbitrary hex data using raw Ed25519 via the @noble/curves library (no Algorand SDK prefix). Useful for off-chain authentication.wallet_optin_asset) — Creates, signs, and submits an opt-in transaction for the active account in one step.Older installs of this MCP stored mnemonics in the OS keychain (@napi-rs/keyring). The server opens wallet.db on the first wallet operation in each process (any wallet_* tool, or another tool that uses the active wallet account), and at that point runs a silent, idempotent migration:
accounts row whose mnemonic column is NULL or empty, it attempts to read the mnemonic from the OS keychain under the service name algorand-mcp keyed by the address.wallet_remove_account.After this completes, the DB is the sole source of truth. A row whose mnemonic could not be read is archived in the same step (see below) and is never retried, so a keychain that becomes available later does not bring it back. All new accounts are written directly to the DB; the keychain is never written.
Orphan handling (archive, not delete). If an accounts row exists but its mnemonic isn't in the keychain and isn't already in the DB (e.g., the user copied wallet.db to a new machine without also moving the keychain entries, restored from a partial backup, or installed in Docker where the keychain never existed), that row is unusable for signing. Rather than delete it, the server marks the row as archived (UPDATE accounts SET archived = 1 WHERE mnemonic IS NULL OR mnemonic = ''). Archived rows:
wallet_list_accounts response0, the first remaining account)idx_active_nickname enforces nickname uniqueness only among active rows, so a new wallet_add_account can reuse the same nickname for a fresh keypair)wallet_list_accounts { archived: true } for forensics or future recoveryArchiving is silent at the MCP tool layer. The only diagnostic is a one-line stderr log per failed keychain read ([algorand-mcp] keychain read failed for <addr>…: <msg>), so if a user investigates a false archive they can see whether the keychain threw "no entry" vs "access denied" vs "no DBus" etc.
No user action is required for any of this. No prompts, no env vars, no migration tools.
The DB schema evolves via an idempotent migration that runs when a server process first opens wallet.db (on its first wallet operation). No version number is stored; the version is inferred from the columns present:
| Version | Change |
|---|---|
| v1 | initial — accounts columns: id, address, public_key, nickname (UNIQUE), created_at |
| v2 | added mnemonic TEXT column |
| v3 | added archived INTEGER NOT NULL DEFAULT 0 column; dropped the column-level UNIQUE on nickname and replaced it with CREATE UNIQUE INDEX idx_active_nickname ON accounts(nickname) WHERE archived = 0 so archived rows can keep their original nicknames without blocking reuse |
The v2→v3 step recreates the accounts table (SQLite cannot drop a column-level UNIQUE constraint via ALTER) and copies data forward with archived = 0. Existing wallets keep working unchanged.
x402 is an HTTP-native micropayments protocol. It uses the long-reserved 402 Payment Required status as a real handshake: when a client requests a paid resource without paying, the server returns 402 with a PAYMENT-REQUIRED header (base64-encoded JSON; older servers put the same JSON in the response body) listing what it accepts (networks, assets, amounts, the recipient address). The client constructs a payment, attaches it as an HTTP header, retries the same request, and the server returns 200 with the resource. No API keys, no Stripe webhooks, no accounts to manage — payment is part of the request itself.
This MCP implements the Algorand flavor of x402, where payments are USDC (or native ALGO) transfers on Algorand. Its two payment tools collapse the manual flow (probe → parse → build fee payer → build payment → group → sign → encode → header → retry) into a single tool call. They do not check the asset opt-in, so opt in beforehand (see Prerequisites). Three Bazaar tools (bazaar_list, bazaar_search, bazaar_get_resource_details) browse the catalog of paid APIs served at BAZAAR_BASE_URL.
Agent (LLM) algorand-mcp Endpoint Facilitator
────────── ──────────── ──────── ───────────
│ │ │ │
│ make_http_request_ │ │ │
│ with_x402 {baseURL,...} │ │ │
│ ────────────────────────► │ HTTP request │ │
│ │ ─────────────────────────► │ │
│ │ 402 PaymentRequired │ │
│ │ ◄───────────────────────── │ │
│ │ pick accepts[i] for │ │
│ │ Algorand network │ │
│ │ build fee-payer + payment │ │
│ │ (atomic group of 2) │ │
│ │ sign payment leg │ │
│ │ via agent wallet DB │ │
│ │ encode unsigned fee-payer │ │
│ │ base64 PAYMENT-SIGNATURE │ │
│ │ ─────────────────────────► │ │
│ │ HTTP request + │ forward + settle │
│ │ PAYMENT-SIGNATURE │ ───────────────────────► │
│ │ │ sign fee-payer, │
│ │ │ submit atomic group │
│ │ 200 + resource │ ◄─────────────────────── │
│ │ ◄───────────────────────── │ │
│ ◄─ { result, paid: {...}}│ │ │
│ │ │ │
PAYMENT-SIGNATURE header (V2 uses it on every chain; X-PAYMENT was the V1 name). The header body is base64-encoded JSON with x402Version (2), scheme, network (a CAIP-2 identifier like algorand:wGHE2Pw… for mainnet), a payload holding an Algorand transaction group (paymentGroup, paymentIndex: 1) instead of an EVM signature, and accepted, a verbatim copy of the accepts[] entry the client chose.wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=) and testnet (SGO1GKSzyE7IEPItTxCByw9x8FmnrCDexi9/cOUJOiI=). Endpoints that only accept Base, Solana, or other non-Algorand networks are not satisfiable here and the tool returns a clear error.The x402 tools — make_http_request_with_x402 and x402_discover_payment_requirements — are intentionally name- and shape-compatible with the Coinbase Wallet MCP's x402 tools. The input parameters (baseURL, path, method, queryParams, body, headers, correlationId, maxAmountPerRequest, paymentRequirements, preferredNetwork, extensions) are the same. The output envelope (result, _atomicUnitsNote) is the same.
What this means in practice:
make_http_request_with_x402 and x402_discover_payment_requirements are drop-in compatible.The one parameter that necessarily differs: preferredNetwork takes Algorand names (mainnet | testnet | localnet), because the wallet only signs Algorand transactions. Coinbase's enum lists base | base-sepolia | solana | solana-devnet. The value only chooses among the endpoint's accepts entries on Algorand mainnet and testnet: a value that matches none of them (a non-Algorand name, or localnet, which no CAIP-2 id maps to) is ignored, and the cheapest affordable entry is paid. When the endpoint offers no mainnet or testnet entry, the tool returns an error listing the networks it accepts.
# Step 1 (optional): peek at the cost
x402_discover_payment_requirements {
"baseURL": "https://example.x402.goplausible.xyz",
"path": "/weather",
"method": "GET"
}
# returns: { result: { accepts: [{ scheme: "exact", network: "algorand:SGO1...",
# amount: "100", asset: "10458941",
# payTo: "AAAA...", extra: { feePayer: "BBBB..." } }] } }
# Step 2: pay and fetch in one call
make_http_request_with_x402 {
"baseURL": "https://example.x402.goplausible.xyz",
"path": "/weather",
"method": "GET",
"maxAmountPerRequest": 10000,
"preferredNetwork": "testnet"
}
# returns: { result: <weather payload>, status: 200, paid: { network: "testnet",
# asset: "10458941",
# amount: "100", payTo: "AAAA..." },
# paymentResponse: <decoded PAYMENT-RESPONSE header> }
The active wallet account must be opted into the target ASA (e.g. USDC) and hold enough balance to cover the requirement's amount (maxAmountRequired on x402 V1 servers). If it isn't opted in, the payment fails at settlement — opt in first with wallet_optin_asset.
wallet_get_info to verify)31566704, testnet ASA 10458941)amount (V1: maxAmountRequired)accepts[] includes at least one entry with an Algorand network the MCP recognizes (mainnet or testnet), within maxAmountPerRequest when you set itextra.feePayer; the tool always builds the fee-payer group and refuses an entry without oneEnvironment variables are only needed for special setups. Pass them via the env block in your MCP config.
| Variable | Description | Default | When needed |
|---|---|---|---|
ALGORAND_TOKEN | API token sent to Algod and Indexer on every network, including the AlgoNode mainnet/testnet endpoints | "" | Your localnet or private node (reached through ALGORAND_LOCALNET_URL) requires a token |
ALGORAND_LOCALNET_URL | Localnet Algod base URL | "" | Using network: "localnet" (e.g. http://localhost:4001) |
ALGORAND_LOCALNET_INDEXER_URL | Localnet Indexer base URL | ALGORAND_LOCALNET_URL with :4001 replaced by :8980 | Your localnet Indexer URL is not the Algod URL with :4001 changed to :8980 |
ITEMS_PER_PAGE | Default page size for paginated responses; a call's itemsPerPage overrides it | 10 | Changing the default page size |
HAYSTACK_API_KEY | Haystack Router API key | built-in key | Using your own Haystack Router key |
ALPHA_API_KEY | Alpha Arcade API key | "" | Accessing reward market data (alpha_get_reward_markets) |
ALPHA_API_BASE_URL | Alpha Arcade API base URL | https://platform.alphaarcade.com/api | Using a different Alpha Arcade API host |
BAZAAR_BASE_URL | Base URL of the Bazaar discovery API used by the bazaar_* tools | https://facilitator.goplausible.xyz | Browsing another facilitator's Bazaar |
{
"mcpServers": {
"algorand-mcp": {
"command": "node",
"args": ["/path/to/algorand-mcp/dist/index.js"],
"env": {
"ALGORAND_LOCALNET_URL": "http://localhost:4001",
"ALGORAND_TOKEN": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
}
}
}
Then use "network": "localnet" in your tool calls.
See Agent Wallet for full architecture details.
| Tool | Description |
|---|---|
wallet_add_account | Create a new Algorand account with nickname (returns address + public key only) |
wallet_remove_account | Remove an account from the wallet by nickname or index |
wallet_list_accounts | List active accounts with nicknames and addresses. Pass { archived: true } to list archived accounts instead (rows whose mnemonic couldn't be recovered from the OS keychain at startup — kept in the DB for forensics, not signable). |
wallet_switch_account | Switch the active account by nickname or index |
wallet_get_info | Get info for the active account this MCP server owns (DB-backed): address, public key, balance, opted-in counts. For arbitrary on-chain accounts use api_algod_get_account_info. |
wallet_get_assets | Get all ASA holdings for the active account this MCP server owns. For arbitrary on-chain accounts use api_algod_get_account_info or api_algod_get_account_asset_info. |
wallet_sign_transaction | Sign a single transaction with the active account |
wallet_sign_transaction_group | Sign a group of transactions with the active account (auto-assigns group ID) |
wallet_sign_data | Sign arbitrary hex data with raw Ed25519 (noble, no SDK prefix) |
wallet_optin_asset | Opt the active account into an asset (creates, signs, and submits) |
See x402 HTTP Payments for the full protocol explanation.
| Tool | Description |
|---|---|
x402_discover_payment_requirements | Probe an x402-protected endpoint and return its accepts[] array (cost, asset, network, payTo) without paying. Read-only. |
make_http_request_with_x402 | Call an x402-protected endpoint with automatic USDC/ALGO payment from the active wallet. Discovers internally if paymentRequirements is not supplied, builds the atomic fee-payer + payment group, signs, and retries with the PAYMENT-SIGNATURE header. |
bazaar_list | Browse paid API resources cataloged in the Bazaar discovery directory hosted by the configured facilitator (facilitator.goplausible.xyz by default). Compact summary by default; full: true returns verbatim records. Filters: network, method, merchantId, limit, offset. |
bazaar_search | Keyword search over Bazaar resources (URL + description). Server-side: query, network. Client-side post-filters: scheme, maxUsdPrice, asset, payTo, extensions, includeTestnets. |
bazaar_get_resource_details | Fetch a single Bazaar resource by its exact resource URL. Returns the verbatim record (accepts[], discoveryInfo, popularity counters). |
| Tool | Description |
|---|---|
create_account | Create a new Algorand account (returns address + mnemonic in the clear) |
rekey_account | Create an unsigned rekey transaction (a 0-ALGO payment to itself with rekeyTo set to the new address) |
mnemonic_to_mdk | Convert mnemonic to master derivation key |
mdk_to_mnemonic | Convert master derivation key to mnemonic |
secret_key_to_mnemonic | Convert secret key to mnemonic |
mnemonic_to_secret_key | Convert mnemonic to secret key |
seed_from_mnemonic | Generate seed from mnemonic |
mnemonic_from_seed | Generate mnemonic from seed |
| Tool | Description |
|---|---|
ping | Server connectivity check and info |
validate_address | Check if an Algorand address is valid |
encode_address | Encode a public key to an Algorand address |
decode_address | Decode an Algorand address to a public key |
get_application_address | Get address for a given application ID |
bytes_to_bigint | Convert bytes to BigInt |
bigint_to_bytes | Convert BigInt to bytes |
encode_uint64 | Encode uint64 to bytes |
decode_uint64 | Decode bytes to uint64 |
verify_bytes | Verify signature against bytes |
sign_bytes | Sign bytes with a secret key |
encode_obj | Encode object to msgpack |
decode_obj | Decode msgpack to object |
| Tool | Description |
|---|---|
make_payment_txn | Create a payment transaction |
make_keyreg_txn | Create a key registration transaction |
make_asset_create_txn | Create an asset creation transaction |
make_asset_config_txn | Create an asset configuration transaction |
make_asset_destroy_txn | Create an asset destroy transaction |
make_asset_freeze_txn | Create an asset freeze transaction |
make_asset_transfer_txn | Create an asset transfer transaction |
make_app_create_txn | Create an application creation transaction |
make_app_update_txn | Create an application update transaction |
make_app_delete_txn | Create an application delete transaction |
make_app_optin_txn | Create an application opt-in transaction |
make_app_closeout_txn | Create an application close-out transaction |
make_app_clear_txn | Create an application clear state transaction |
make_app_call_txn | Create an application call transaction |
assign_group_id | Assign group ID for atomic transactions |
sign_transaction | Sign a transaction with a secret key |
encode_unsigned_transaction | Encode an unsigned transaction to base64 msgpack bytes |
decode_signed_transaction | Decode a signed transaction blob back to JSON with signature details |
| Tool | Description |
|---|---|
compile_teal | Compile TEAL source code |
disassemble_teal | Disassemble TEAL bytecode to source |
send_raw_transaction | Submit signed transactions to the network |
simulate_raw_transactions | Simulate already-encoded transactions (base64 bytes). Pass/fail + log/cost only — no trace, no extra budget. |
simulate_transactions | Simulate decoded transaction groups with full SimulateRequest config (trace, extra opcode budget, unnamed-resource handling, unsigned txns). |
Live, current-state reads against an Algod node. Default choice for account/application/asset lookups — the matching indexer endpoints were intentionally disabled to keep the tool surface lean (see Indexer API Tools). Use the indexer family below only when you need historical or filtered queries that algod cannot serve.
| Tool | Description |
|---|---|
api_algod_get_account_info | Get account balance, assets, and auth address |
api_algod_get_account_application_info | Get account-specific application info |
api_algod_get_account_asset_info | Get account-specific asset info |
api_algod_get_application_by_id | Get application information |
api_algod_get_application_box | Get application box by name |
api_algod_get_application_boxes | Get all application boxes |
api_algod_get_asset_by_id | Get asset information |
api_algod_get_pending_transaction | Get pending transaction info |
api_algod_get_pending_transactions_by_address | Get pending transactions for an address |
api_algod_get_pending_transactions | Get all pending transactions |
api_algod_get_transaction_params | Get suggested transaction parameters |
api_algod_get_node_status | Get current node status |
api_algod_get_node_status_after_block | Get node status after a specific round |
Historical / filtered queries against an Algorand Indexer instance. Use these for time-range scans, paginated searches, log retrieval, and creator/holder discovery — anything algod's current-state endpoints cannot answer.
Seven indexer endpoints that duplicated algod equivalents (account-by-id, account assets, account app local states, application by id, application box, application boxes, asset by id) were intentionally disabled. They live commented-out in src/tools/apiManager/indexer/; to re-enable one, uncomment both its tool definition and its handler case in the same file.
| Tool | Description |
|---|---|
api_indexer_lookup_account_created_applications | Get apps created by account |
api_indexer_search_for_accounts | Search accounts with filters (asset/app holdings, balance ranges) |
api_indexer_lookup_application_logs | Get application log messages over a round range |
api_indexer_search_for_applications | Search applications by creator |
api_indexer_lookup_asset_balances | Get all accounts holding an asset with their balances |
api_indexer_lookup_asset_transactions | Get transactions involving an asset (time/round/address-role filters) |
api_indexer_search_for_assets | Search assets by creator, name, or unit |
api_indexer_lookup_transaction_by_id | Get a confirmed transaction by ID |
api_indexer_lookup_account_transactions | Get an account's transaction history (time/round/type/asset filters) |
api_indexer_search_for_transactions | Search transactions across the chain with filters |
| Tool | Description |
|---|---|
api_nfd_get_nfd | Get NFD by name or application ID |
api_nfd_get_nfds_for_addresses | Get NFDs for specific addresses |
api_nfd_get_nfd_activity | Get activity/changes for NFDs |
api_nfd_get_nfd_analytics | Get NFD analytics data |
api_nfd_browse_nfds | Browse NFDs with filters |
api_nfd_search_nfds | Search NFDs |
NFDomains tools always query the mainnet NFD API (
api.nf.domains); thenetworkparameter has no effect on them.
| Tool | Description |
|---|---|
api_tinyman_get_pool | Get pool info by asset pair |
api_tinyman_get_pool_analytics | Get pool analytics |
api_tinyman_get_pool_creation_quote | Get quote for creating a pool |
api_tinyman_get_liquidity_quote | Get quote for adding liquidity |
api_tinyman_get_remove_liquidity_quote | Get quote for removing liquidity |
api_tinyman_get_swap_quote | Get quote for swapping assets |
api_tinyman_get_asset_optin_quote | Get quote for asset opt-in |
api_tinyman_get_validator_optin_quote | Get quote for validator opt-in |
api_tinyman_get_validator_optout_quote | Get quote for validator opt-out |
Tinyman tools work on mainnet and testnet only;
"network": "localnet"is rejected.
| Tool | Description |
|---|---|
api_haystack_get_swap_quote | Get optimized swap quote with routing across Tinyman V2, Pact, Folks, and LST protocols |
api_haystack_execute_swap | All-in-one swap: quote → sign (via wallet) → submit → confirm |
api_haystack_needs_optin | Check if address needs asset opt-in before swapping |
Haystack Router tools work on mainnet and testnet only;
"network": "localnet"is rejected.
| Tool | Description |
|---|---|
api_pera_asset_verification_status | Get verification status of a mainnet asset (verified, trusted, suspicious, unverified) |
api_pera_verified_asset_details | Get detailed asset info from Pera (name, unit, logo, decimals, verification) |
api_pera_verified_asset_search | Search Pera verified assets by name, unit name, or keyword |
Pera Wallet tools are mainnet only — the Pera public API does not support testnet or localnet.
Trade on-chain prediction markets (YES/NO outcomes) denominated in USDC. All prices and quantities use microunits (1,000,000 = $1.00 or 1 share). Read-only tools work without a wallet; trading tools require an active wallet account. Alpha Arcade runs on mainnet only: pass "network": "mainnet", since the matcher app and USDC asset IDs are mainnet IDs and the server defaults to testnet.
| Tool | Description |
|---|---|
alpha_get_live_markets | Fetch all live prediction markets with prices, volume, and categories |
alpha_get_reward_markets | Fetch markets with liquidity rewards (requires ALPHA_API_KEY env var) |
alpha_get_market | Fetch full details for a single market by app ID |
alpha_get_orderbook | Unified YES-perspective orderbook with spread calculation |
alpha_get_open_orders | Open orders for a wallet on a specific market |
alpha_get_positions | YES/NO token positions across all markets |
alpha_create_limit_order | Place a limit order at a specific price (locks ~0.957 ALGO collateral) |
alpha_create_market_order | Place a market order with auto-matching and slippage tolerance |
alpha_cancel_order | Cancel an open order (refunds USDC/tokens and ALGO collateral) |
alpha_amend_order | Edit an existing unfilled order in-place (price, quantity, slippage) |
alpha_propose_match | Propose a match between an existing maker order and your wallet |
alpha_split_shares | Split USDC into equal YES + NO outcome tokens |
alpha_merge_shares | Merge equal YES + NO tokens back into USDC |
alpha_claim | Claim USDC from a resolved market by redeeming winning tokens |
Optional env var:
ALPHA_API_KEY— needed for reward market data.ALPHA_API_BASE_URL— custom API endpoint (default:https://platform.alphaarcade.com/api).
| Tool | Description |
|---|---|
generate_algorand_qrcode | Generate an ARC-90 payment URI and its QR code via QRClaw. Mainnet URIs have no authority; testnet and localnet URIs carry the genesis hash as a gh: authority. The receiver address is written in canonical form; amount and asset take an integer or a decimal-digit string up to the uint64 maximum. Returns the QR code, the URI, a shareable link and, when QRClaw reports one, its expiry |
| Tool | Description |
|---|---|
get_knowledge_doc | Get markdown content for Algorand knowledge documents |
The server exposes the 13 knowledge resources below. Each returns JSON (application/json): algorand://knowledge/taxonomy returns all 12 categories, and every other URI returns one category with the keys of its documents. Pass those keys to get_knowledge_doc to read the documents. There are no wallet resources; the wallet is reached through the Wallet Tools.
| URI | Description |
|---|---|
algorand://knowledge/taxonomy | Full Algorand knowledge taxonomy |
algorand://knowledge/taxonomy/arcs | Algorand Request for Comments |
algorand://knowledge/taxonomy/sdks | SDK documentation |
algorand://knowledge/taxonomy/algokit | AlgoKit documentation |
algorand://knowledge/taxonomy/algokit-utils | AlgoKit Utils documentation |
algorand://knowledge/taxonomy/tealscript | TEALScript documentation |
algorand://knowledge/taxonomy/puya | Puya documentation |
algorand://knowledge/taxonomy/liquid-auth | Liquid Auth documentation |
algorand://knowledge/taxonomy/python | Python code examples and Algorand Python testing guide |
algorand://knowledge/taxonomy/developers | Developer documentation |
algorand://knowledge/taxonomy/clis | CLI tools documentation |
algorand://knowledge/taxonomy/nodes | Node management documentation |
algorand://knowledge/taxonomy/details | Technical details documentation |
Document keys use : as the separator (for example arcs:specs:arc-0020.md); pass them to get_knowledge_doc as listed. On disk each document is stored with ~ in place of : (arcs~specs~arc-0020.md) so the file names are valid on Windows; the tool maps keys to files and does not accept the on-disk names.
algorand-mcp/
├── src/ # TypeScript source
│ ├── index.ts # Server entry point
│ ├── networkConfig.ts # Hardcoded network URLs and client factories
│ ├── algorand-client.ts # Re-exports from networkConfig
│ ├── env.ts # Legacy env shim (unused)
│ ├── types.ts # Zod schemas (unused: imported nowhere)
│ ├── resources/ # MCP Resources (knowledge documents only)
│ │ ├── index.ts # ResourceManager: resources/list and resources/read
│ │ └── knowledge/ # Documentation taxonomy
│ │ ├── taxonomy/ # One Markdown file per document key (':' written as '~')
│ │ └── taxonomy-categories/ # Category indexes (JSON) listing the document keys
│ ├── tools/ # MCP Tools
│ │ ├── index.ts # Re-exports every manager
│ │ ├── commonParams.ts # Network + pagination schema fragments
│ │ ├── walletManager.ts # Agent wallet (SQLite-backed)
│ │ ├── x402Manager.ts # x402 HTTP payments + Bazaar discovery
│ │ ├── accountManager.ts # Account operations
│ │ ├── utilityManager.ts # Utility functions
│ │ ├── algodManager.ts # TEAL compile, simulate, submit
│ │ ├── arc90Manager.ts # ARC-90 payment URIs + QR codes (QRClaw)
│ │ ├── knowledgeManager.ts # Knowledge document access
│ │ ├── transactionManager/ # Transaction building
│ │ │ ├── index.ts # Routes make_* and the group/sign/encode/decode tools
│ │ │ ├── accountTransactions.ts
│ │ │ ├── assetTransactions.ts
│ │ │ ├── appTransactions/
│ │ │ └── generalTransaction.ts
│ │ └── apiManager/ # API integrations
│ │ ├── index.ts # Routes api_* / alpha_* + pagination
│ │ ├── algod/ # Algod API
│ │ ├── indexer/ # Indexer API
│ │ ├── nfd/ # NFDomains
│ │ ├── tinyman/ # Tinyman AMM (uses vendor/tinyman-js-sdk)
│ │ ├── hayrouter/ # Haystack Router DEX aggregator
│ │ ├── pera/ # Pera Wallet verified assets
│ │ └── alpha/ # Alpha Arcade prediction markets
│ └── utils/
│ └── responseProcessor.ts # Pagination and formatting
├── vendor/ # Third-party code shipped with the package
│ └── tinyman-js-sdk/ # Tinyman JS SDK 5.1.5, compiled and unmodified (MIT, LICENSE included)
├── tests/ # Test suite
│ ├── helpers/ # Shared test utilities
│ │ ├── mockFactories.ts # Mock algod/indexer/keychain factories
│ │ ├── testConfig.ts # Category enable/disable logic
│ │ ├── e2eSetup.ts # getE2EAccount() + invokeTool() (copy of the server dispatch)
│ │ └── testConstants.ts # Well-known testnet addresses and asset IDs
│ ├── unit/ # 11 unit test suites (mocked, fast)
│ ├── e2e/ # 11 E2E test suites (live testnet)
│ │ ├── globalSetup.ts # Account provisioning + fund-check
│ │ └── globalTeardown.ts # Prints a completion message
│ └── jest.config.e2e.js # E2E-specific Jest config
├── skills/ # Agent skills (Algorand, x402, Alpha Arcade, Haystack Router)
├── dist/ # Compiled output
├── AGENTS.md # Guide for agents using the tools
├── .env.example # Environment variables the server reads (all optional)
├── jest.config.js # Unit test Jest config
├── tsconfig.json # Production TypeScript config
├── tsconfig.test.json # Test TypeScript config
└── package.json
All tool responses follow the MCP content format. Responses from the api_* and alpha_* tools are wrapped in { "data": ... } and paginated when an array or object in them exceeds itemsPerPage (default: the ITEMS_PER_PAGE env var, else 10):
{
"data": { ... },
"metadata": {
"totalItems": 100,
"itemsPerPage": 10,
"currentPage": 1,
"totalPages": 10,
"hasNextPage": true,
"pageToken": "cGFnZV8y",
"arrayField": "transactions"
}
}
Pass pageToken from a previous response to fetch the next page, and set itemsPerPage on the call to control page size. Both apply only to the api_* and alpha_* tools; pageToken is read by the server although no tool schema declares it. The other tools list itemsPerPage in their schemas but return unpaginated results.
# Install dependencies
npm install
# Type-check
npm run typecheck
# Build
npm run build
# Clean build output
npm run clean
The project has a comprehensive dual-layer test suite: fast unit tests (mocked, no network) and real E2E tests (live testnet). Both use Jest 29 with ts-jest and ESM support.
npm test # Unit tests (fast, no network)
npm run test:e2e # E2E tests (testnet, generates account + fund link)
npm run test:all # Both
Unit tests cover 11 of the 15 tool categories with fully mocked network dependencies; x402, Haystack Router, Pera Wallet and Alpha Arcade have no unit suite yet. They run in parallel and finish in ~5 seconds. No environment variables or funded accounts are needed.
npm test
Coverage: 11 suites, 140+ tests covering success paths, error handling, and edge cases for the categories below.
| Suite | What it tests |
|---|---|
accountManager | Account creation, mnemonic ↔ secret key / MDK / seed round-trips, invalid and missing mnemonic errors |
utilityManager | Ping, address validation, encode/decode, sign/verify bytes, encode/decode objects |
walletManager | Full lifecycle: add → list → switch → get info → sign data → remove (mocked keychain and file system; real in-memory sql.js, so wallet.db is never touched) |
transactionManager | Payment, asset, app transaction building; sign_transaction; assign_group_id |
algodManager | TEAL compile/disassemble, send raw, simulate |
apiAlgod | 5 of the 13 algod API tools (account info, suggested params, node status, application, asset) plus missing-address and unknown-tool errors |
apiIndexer | 4 of the 10 active indexer API tools (account, asset, transaction and application search) with fluent builder mocks, a check that the asset-name filter reaches the indexer, and an unknown-tool error |
apiNfd | NFD get/search/browse with mocked fetch |
apiTinyman | Tinyman pool/swap with error handling |
arc90Manager | ARC-90 payment URIs (spec examples, network authority, encoding, uint64 amounts, canonical addresses, validation) and QRClaw handling, with mocked fetch |
knowledgeManager | Document retrieval by key (case-insensitive); every key in the category indexes opens; unknown keys, on-disk file names, path traversal, absolute paths and NUL bytes are rejected; file names are Windows-safe (~ separator) and map to and from keys |
Unit tests use jest.unstable_mockModule() (ESM-compatible) to intercept imports before they load. The shared tests/helpers/mockFactories.ts provides:
setupNetworkMocks() — Replaces algorand-client.ts with mock algod/indexer clients that return deterministic responses without any network calls.createKeychainMock() — Replaces @napi-rs/keyring with an in-memory Map, so wallet tests work without an OS keychain..searchForAssets().limit(5).do()). The mock factory uses ES Proxy objects that return themselves for any chained method and resolve when .do() is called.E2E tests call tool handlers directly against Algorand testnet (via AlgoNode public nodes); the NFD suite calls the mainnet NFD API and the ARC-90 suite calls the live QRClaw service. They run serially to avoid rate-limiting.
The wallet suite changes your real agent wallet: it adds an account to ~/.algorand-mcp/wallet.db, makes it the active account and then removes it, which can leave a different account active than before. The path comes from your home directory and has no separate setting, so run E2E tests with HOME pointing at a scratch directory, e.g. HOME=$(mktemp -d) npm run test:e2e.
npm run test:e2e
On first run (no mnemonic provided), the test setup:
To run with a funded account:
E2E_MNEMONIC="word1 word2 ... word25" npm run test:e2e
Coverage: 11 suites, 35+ tests covering real network interactions.
| Suite | What it tests |
|---|---|
account | Account creation, mnemonic-to-key round-trip chain |
utility | Ping, address validation, encode/decode, sign/verify bytes, encode/decode objects |
wallet | Full wallet lifecycle: add → list → switch → get info → get assets → sign data → remove |
transaction | Build payment → sign → verify txID; build asset opt-in; build group with assign_group_id |
algod | Compile + disassemble TEAL round-trip |
algodApi | Account info, suggested params, node status, asset info via algod |
indexerApi | Asset, transaction and account search via indexer |
nfd | Look up "algo.algo", search NFDs, browse NFDs |
tinyman | Get ALGO/USDC pool |
arc90 | Generate testnet and mainnet ARC-90 URIs, verify format + QRClaw link |
knowledge | Retrieve a document by key (arcs:specs:arc-0090.md); reject a key that is not a document |
E2E tests can be selectively enabled by category via environment variables. By default all categories are enabled.
E2E_WALLET=1 npm run test:e2e # Only wallet tests
E2E_ALGOD=1 E2E_UTILITY=1 npm run test:e2e # Algod + utility tests
| Env var | Category |
|---|---|
E2E_ALL=1 | All categories (explicit) |
E2E_WALLET=1 | Wallet tools |
E2E_ACCOUNT=1 | Account tools |
E2E_UTILITY=1 | Utility tools |
E2E_TRANSACTION=1 | Transaction tools |
E2E_ALGOD=1 | Algod tools |
E2E_ALGOD_API=1 | Algod API tools |
E2E_INDEXER_API=1 | Indexer API tools |
E2E_NFD=1 | NFDomains tools |
E2E_TINYMAN=1 | Tinyman tools |
E2E_ARC90=1 | ARC-90 tools |
E2E_KNOWLEDGE=1 | Knowledge tools |
Important: Setting any individual flag (e.g. E2E_WALLET=1) disables all other categories unless E2E_ALL=1 is also set.
E2E_TOOLS=ping,validate_address npm run test:e2e
The E2E_TOOLS variable accepts a comma-separated list of tool names and enables the whole category of each named tool (here, all utility tests): the suites filter by category, not by tool. Other categories stay disabled unless their own flag or E2E_ALL=1 is set.
tests/
├── helpers/
│ ├── mockFactories.ts # Mock algod/indexer/keychain factories
│ ├── testConfig.ts # Category enable/disable logic
│ ├── e2eSetup.ts # getE2EAccount() + invokeTool() (copy of the server dispatch)
│ └── testConstants.ts # Well-known testnet addresses and asset IDs
├── unit/ # 11 unit test files (*.test.ts)
│ ├── accountManager.test.ts
│ ├── utilityManager.test.ts
│ ├── walletManager.test.ts
│ ├── transactionManager.test.ts
│ ├── algodManager.test.ts
│ ├── apiAlgod.test.ts
│ ├── apiIndexer.test.ts
│ ├── apiNfd.test.ts
│ ├── apiTinyman.test.ts
│ ├── arc90Manager.test.ts
│ └── knowledgeManager.test.ts
├── e2e/ # 11 E2E test files (*.e2e.test.ts)
│ ├── globalSetup.ts # Account provisioning + fund-check
│ ├── globalTeardown.ts # Prints a completion message
│ ├── account.e2e.test.ts
│ ├── utility.e2e.test.ts
│ ├── wallet.e2e.test.ts
│ ├── transaction.e2e.test.ts
│ ├── algod.e2e.test.ts
│ ├── algodApi.e2e.test.ts
│ ├── indexerApi.e2e.test.ts
│ ├── nfd.e2e.test.ts
│ ├── tinyman.e2e.test.ts
│ ├── arc90.e2e.test.ts
│ └── knowledge.e2e.test.ts
└── jest.config.e2e.js # E2E-specific Jest config
| Config | Purpose | Key settings |
|---|---|---|
jest.config.js (root) | Unit tests | testTimeout: 10s, parallel workers, testMatch: tests/unit/** |
tests/jest.config.e2e.js | E2E tests | testTimeout: 60s, maxWorkers: 1 (serial), globalSetup/globalTeardown |
tsconfig.test.json | TypeScript for tests | rootDir: ".", includes both src/ and tests/ |
Unit test template:
import { jest } from '@jest/globals';
import { setupNetworkMocks } from '../helpers/mockFactories.js';
jest.unstable_mockModule('../../src/algorand-client.js', () => setupNetworkMocks());
const { YourManager } = await import('../../src/tools/yourManager.js');
describe('YourManager', () => {
it('does something', async () => {
const result = await YourManager.handleTool('tool_name', { arg: 'value' });
const data = JSON.parse(result.content[0].text);
expect(data.field).toBeDefined();
});
});
E2E test template (for a new category, add it to TOOL_CATEGORIES and toolCategoryMap in tests/helpers/testConfig.ts, and make sure invokeTool() in tests/helpers/e2eSetup.ts routes its tools: that copy of the server's dispatch has no routes yet for the x402, bazaar_*, alpha_*, encode_unsigned_transaction and decode_signed_transaction tools):
import { describeIf, testConfig } from '../helpers/testConfig.js';
import { invokeTool, parseToolResponse } from '../helpers/e2eSetup.js';
describeIf(testConfig.isCategoryEnabled('your-category'))('Your Tools (E2E)', () => {
it('does something on testnet', async () => {
const data = parseToolResponse(
await invokeTool('tool_name', { arg: 'value', network: 'testnet' }),
);
expect(data.field).toBeDefined();
});
});
wallet.db.~/.algorand-mcp/wallet.dbwallet_sign_data)Shipped with the package:
@tinymanorg/tinyman-js-sdk npm package, whose deprecated uuid@10 dependency fails dependency security scans; see VENDORED.md.MIT
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Algorand MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/algorand-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.