AssetMCP
Provides normalized reads and unsigned transaction payloads for ASA, ARC-200, and ARC-72 assets on Algorand and Voi mainnets via the Model Context Protocol.
README
AssetMCP
stdio Model Context Protocol server for UluOS: normalized ASA, ARC-200, and ARC-72 reads plus unsigned transaction payloads on Algorand mainnet and Voi mainnet.
Signing and broadcasting are intentionally out of scope—use UluWalletMCP and UluBroadcastMCP (or your wallet) after fetching base64 txn groups from this service.
Service summary (for UluOS docs)
| Field | Value |
|---|---|
| Name | asset-mcp |
| Transport | stdio |
| Version | 0.1.0 |
| Networks | algorand-mainnet, voi-mainnet |
| Stack | @modelcontextprotocol/sdk, algosdk (ASA), ulujs → arccjs (ARC-200 / ARC-72 simulation) |
| Output | JSON text content; BigInts as strings; binary as base64; txn builders return ordered transactions: string[] (base64 unsigned bytes) |
Setup
npm install
npm start
# or: node /absolute/path/to/AssetMCP/index.js
Node: >= 20.9 (required by ulujs).
Configuration
Defaults use Nodely free-tier Algod + Indexer endpoints (Algorand mainnet: *.4160.nodely.dev; Voi mainnet: *.voi.nodely.dev). No API key required. Override with environment variables:
Pattern: ASSET_MCP_<NETWORK>_<SUFFIX> where <NETWORK> is ALGORAND_MAINNET or VOI_MAINNET, and <SUFFIX> is one of:
ALGOD_URLALGOD_TOKENINDEXER_URLINDEXER_TOKEN
Example:
export ASSET_MCP_ALGORAND_MAINNET_ALGOD_URL="https://..."
export ASSET_MCP_ALGORAND_MAINNET_ALGOD_TOKEN="..."
Response shape
Successful tool calls return JSON:
{
"ok": true,
"network": "algorand-mainnet",
"standard": "asa",
"method": "asa_get_asset",
"assetId": 31566704,
"data": { }
}
Transaction builders add txCount and put base64 unsigned transactions under data.transactions (array order is the signing order).
Errors:
{
"ok": false,
"error": {
"code": "malformed_address",
"message": "...",
"details": null
}
}
Tools (by namespace)
asa_* (algosdk / AVM)
| Tool | Purpose |
|---|---|
asa_get_asset |
ASA params by ID |
asa_get_holding |
One account’s balance / frozen flag for an ASA |
asa_search_holdings |
Indexer: paginated holdings; optional assetId filter |
asa_transfer_txn |
Unsigned axfer |
asa_optin_txn |
Unsigned opt-in (0-amount self transfer) |
asa_closeout_txn |
Unsigned transfer + closeRemainderTo (supply full amount) |
arc200_* (ulujs ARC-200)
| Tool | Purpose |
|---|---|
arc200_get_metadata |
name, symbol, decimals, totalSupply |
arc200_balance_of |
Balance (base units, string in JSON) |
arc200_allowance |
Allowance |
arc200_has_balance |
hasBalance (ulujs dual-ABI helper) |
arc200_has_allowance |
hasAllowance (ulujs dual-ABI helper) |
arc200_get_events |
getEvents → Transfer + Approval streams |
arc200_transfer_txn |
Simulated transfer → unsigned txn group |
arc200_transfer_from_txn |
Simulated transferFrom |
arc200_approve_txn |
Simulated approve |
arc72_* (ulujs ARC-72)
| Tool | Purpose |
|---|---|
arc72_get_metadata |
totalSupply; with tokenId: owner, tokenURI, approved; optional supportsInterface via interfaceSelectorHex |
arc72_owner_of |
Owner |
arc72_balance_of |
NFT count |
arc72_get_approved |
Approved address for token |
arc72_is_approved_for_all |
Operator flag |
arc72_token_uri |
Token URI |
arc72_total_supply |
Total supply |
arc72_get_events |
Transfer / Approval / ApprovalForAll |
arc72_transfer_txn |
transferFrom(from, to, tokenId) (signer must be authorized) |
arc72_approve_txn |
Approve spender for tokenId |
arc72_set_approval_for_all_txn |
setApprovalForAll via arccjs (ulujs wrapper is broken upstream) |
Cursor MCP config
This repo includes .cursor/mcp.json so asset-mcp is available when you open the repo as the workspace folder. Reload the window or restart Cursor after changing it.
To add manually or merge into another project:
{
"mcpServers": {
"asset-mcp": {
"command": "node",
"args": ["${workspaceFolder}/index.js"]
}
}
}
Machine-readable capabilities
See examples/capabilities.json.
Live demo: from the repo root, npm run demo (or node examples/demo.mjs) spawns the MCP server over stdio and calls asa_get_asset (Algorand USDC), arc200_get_metadata (Voi wVOI), and arc72_total_supply (sample ARC-72 collection).
Implementation notes
- stdout hygiene:
ulujs/arccjscallconsole.logduring simulation. UnlessASSET_MCP_DEBUGis set,console.logis redirected to stderr so MCP JSON-RPC on stdout stays valid. - ARC txn bytes: Built by simulating with
simulate: trueand returning the unsigned group fromarccjs(txnsarray). Extra group transactions (e.g. box / resource-sharing) may appear—sign the full ordered group. - ARC-200 / ARC-72 reads: Use ulujs
Contractwith the public simulation sender (oneAddressfrom ulujs) for readonly ABI calls. - Event filters:
addressis forwarded to the indexer assender(arccjs API). - ARC-72
setApprovalForAll: Implemented againstcontractInstance.arc72_setApprovalForAllbecauseulujssafe_arc72_setApprovalForAllreferences undefined variables (upstream bug).
License
MIT (see LICENSE).
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。