Install
$ agentstack add mcp-aelfscanproject-aelfscan-skill ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ● Environment & secrets Used
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
AelfScan Skill Kit
[English](./README.md) | [中文](./README.zh-CN.md)
[](https://github.com/AelfScanProject/aelfscan-skill/actions/workflows/test.yml) [](https://AelfScanProject.github.io/aelfscan-skill/coverage-badge.json)
AelfScan explorer skill toolkit for AI agents, with SDK + MCP + CLI + OpenClaw interfaces.
Features
- Search: filters and multi-entity search (tokens/accounts/contracts/NFTs/blocks/transactions)
- Blockchain: blocks, latest blocks, transactions, latest transactions, block detail, transaction detail, overview/chart/address dictionary/log events
- Address: accounts, contracts, address detail, token/NFT assets, transfers, contract history/events/source
- Token: token list/detail/transfers/holders
- NFT: collections/detail/transfers/holders/inventory/item detail/item holders/item activity
- Statistics: daily transactions/addresses/activity, produce metrics, fees/reward/burn, supply/market/staking/TVL, node/ELF supply and date-range summary APIs
- Metadata-driven tool registry: one source of truth for SDK/CLI/MCP/OpenClaw
- MCP output governance: array truncation + max chars + configurable raw payload inclusion
- Unified output shape:
ToolResultwithtraceId, standardized errors, andrawpayload
Architecture
aelfscan-skill/
├── index.ts # SDK exports
├── aelfscan_skill.ts # CLI adapter
├── src/
│ ├── core/ # Domain logic (search/blockchain/address/token/nft/statistics)
│ ├── tooling/ # Single source tool descriptors
│ └── mcp/ # MCP adapter + output policy
├── lib/ # Config/http/errors/trace/types
├── bin/setup.ts # Setup for claude/cursor/openclaw
├── openclaw.json
├── mcp-config.example.json
└── tests/ # unit/integration/e2e
Quick Start
Install
bun install
Configure
cp .env.example .env
Run MCP
bun run mcp
OpenClaw
bun run build:openclaw
bun run build:openclaw:check
Run CLI
bun run aelfscan_skill.ts search query --input '{"chainId":"AELF","keyword":"ELF","filterType":0,"searchType":0}'
bun run aelfscan_skill.ts blockchain blocks --input '{"chainId":"AELF","maxResultCount":2,"skipCount":0}'
bun run aelfscan_skill.ts blockchain overview --input '{"chainId":"AELF"}'
bun run aelfscan_skill.ts blockchain log-events --input '{"chainId":"AELF","contractAddress":"256MtWxt3dvxBUdh1XHjQeeSDm2SMR98gDQxLL4UXjwFDhzcAM","maxResultCount":1,"skipCount":0}'
bun run aelfscan_skill.ts address detail --input '{"chainId":"AELF","address":"JRmBduh4nXWi1aXgdUsj5gJrzeZb2LxmrAbf7W99faZSvoAaE"}'
bun run aelfscan_skill.ts statistics daily-transactions --input '{"chainId":"AELF"}'
bun run aelfscan_skill.ts statistics daily-transaction-info --input '{"chainId":"AELF","startDate":"2026-02-20","endDate":"2026-02-26"}'
bun run aelfscan_skill.ts statistics metric --input '{"metric":"dailyTransactions","chainId":"AELF"}'
MCP Config Example
Use [mcp-config.example.json](./mcp-config.example.json).
Setup Helper
bun run setup claude
bun run setup cursor
bun run setup cursor --global
bun run setup openclaw
bun run setup list
bun run build:openclaw
Tests
bun run test:unit
bun run test:unit:coverage
bun run coverage:badge
bun run test:integration
bun run test:e2e
# live smoke (optional)
RUN_LIVE_TESTS=1 bun run test:e2e
Environment Variables
AELFSCAN_API_BASE_URL(default:https://aelfscan.io)AELFSCAN_DEFAULT_CHAIN_ID(default: empty for multi-chain)AELFSCAN_TIMEOUT_MS(default:10000)AELFSCAN_RETRY(default:1)AELFSCAN_RETRY_BASE_MS(default:200)AELFSCAN_RETRY_MAX_MS(default:3000)AELFSCAN_MAX_CONCURRENT_REQUESTS(default:5)AELFSCAN_CACHE_TTL_MS(default:60000)AELFSCAN_CACHE_MAX_ENTRIES(default:500)AELFSCAN_MAX_RESULT_COUNT(default:200)AELFSCAN_MCP_MAX_ITEMS(default:50)AELFSCAN_MCP_MAX_CHARS(default:60000)AELFSCAN_MCP_INCLUDE_RAW(default:false)
Wallet Context Compatibility
- This skill is read-only and does not consume signer/private-key context for on-chain writes.
- It is compatible with the shared wallet-context protocol (
~/.portkey/skill-wallet/context.v1.json) used by write-capable skills. bun run deps:checkvalidates wallet-context schema version when a local context file exists.
License
MIT
Security
- Keep API tokens and private keys in env/config only.
- Never leak secret values in tool outputs.
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: AelfScanProject
- Source: AelfScanProject/aelfscan-skill
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.