
Aster Agent Gateway
io.github.alekskram由 GitHub 账号 alekskram 发布v0.1.3更新于 Oct 24, 2026
Read-only MCP gateway to Aster DEX: 24/7 gold, oil and equity perps, funding with real intervals.
概览
只读、无需密钥的 Aster DEX 行情 MCP 网关,提供合约与现货、资金费率、订单簿、K 线、金库资金流和标记-指数价差数据。
- 可以做什么
- 浏览市场与交易对:合约和现货总览、带过滤与精度规则的交易对清单
- 查看市场微观结构:订单簿、按最新价/标记价/指数价获取 K 线、近期成交
- 分析资金费率:含各市场不同结算周期与上下限的费率总览、年化费率筛选器
- 筛选 TradFi 永续(金属、能源、股票、国债、外汇)并按标记价与指数价价差排名
- 查看未平仓量快照,以及 Solana 与可选 EVM 链上的金库存款流
- 按地址查询公开账户余额、挂单与成交记录
- 适用场景
- 适合让助手研究 Aster DEX 市场、比较不同 1 至 8 小时结算周期的资金费率,或跟踪 24/7 交易的 TradFi 永续与现货交易对,而无需自己写 API 代码或持有密钥。
- 运行要求
- 以 Python 包形式通过 uvx 在本地运行(需 Python 工具链);默认 stdio,也可用本地 HTTP 模式监听 8904 端口。无需 API 密钥或账户。需能访问 Aster 公共接口与 Solana RPC;EVM 金库日志需可选设置 ASTER_EVM_RPC_URL(或按链区分的变体)。
安装
在 SourceWeft 中
- 打开 控制台中的 Aster Agent Gateway,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
aster-agent-gateway
[CI] [PyPI] [PyPI downloads] [MCP Catalog] [License: MIT] [Python 3.11+]
Aster lists roughly 580 futures, and about 32 of them are things you would not expect on a crypto DEX: gold, oil, treasuries, single equities and index perps that trade 24/7 while the underlying market sleeps. This MCP server puts the whole board, plus ~68 spot pairs, funding, order books, klines and vault deposit flows, in front of an AI agent. Read-only and keyless; public endpoints only (fapi.asterdex.com/fapi/v3, sapi.asterdex.com/api/v3, tapi.asterdex.com/info, Solana RPC, optional EVM RPCs), cached and rate-limited.
Use cases
Funding first, because this is where Aster is different. Intervals vary per market, 1h to 8h; annualize naively and an 8h market reads 8x too cold. The screener computes every row from its own interval and shows cap/floor next to it, so a 4,148%/yr print comes with the context that explains it.
Then the TradFi board at 3am: gold at $4,365 with live volume, oil paying longs to hold (negative funding, -0.0001%/1h when we looked), Micron up 4.8% overnight. One API, same conventions as the crypto rows.
mark_index_divergence ranks all ~756 markets by mark-vs-index spread. The morning we captured it, RTXUSDT topped both that board (505 bps rich) and the funding board at once, which is the classic pre-squeeze picture. Vault deposit flows show who parks capital where; OI snapshots are per-symbol and honest about the fact that Aster has no keyless OI history.
Full walkthroughs: examples/use-cases.md.
Quickstart
Claude Code:
stdio (default, for local agents):
or from a checkout:
Claude Desktop / Cursor config:
Hosted form, streamable HTTP on port 8904:
Codex (~/.codex/config.toml)
ZCode: register the server (copy-paste)
Tools
All 13 tools are read-only (annotated readOnlyHint: true, destructiveHint: false).
Why a gateway and not the raw API?
Aster's fapi/sapi/tapi endpoints are plain REST. The traps are in the semantics:
Rate limits
Two REST buckets, locally enforced and weight-aware:
- fapi 2400 weight/min, sapi 6000/min (header
X-MBX-USED-WEIGHT-1Mread after every call). Above 80% of a bucket the client self-throttles; 429 backs off honoringRetry-After; a 418 (repeated 429 = IP ban) triggers a 60s refusal cooldown. Depth/kline limits snap to priced tiers so callers cannot accidentally burn weight. - Solana 10 req/min, tapi 30/min, EVM 20/min local budgets (separate ledgers, fail-fast honest errors).
TTL caches: exchangeInfo 3600s, fundingInfo 600s, premiumIndex and tickers 15s, depth 5s, klines 60s, trades 10s, openInterest 30s.
Data notes
- Every numeric from the API is a STRING upstream; parsed with a
never-raising helper -
nullalways means "not available", never zero. - Every upstream failure returns an error dict
{"error", "source", "reason"}, never a traceback. - No OI history exists keyless (
/futures/data/openInterestHist404s) - the gateway says so instead of inventing data. - EVM vault logs need
ASTER_EVM_RPC_URL(or per-chainASTER_EVM_RPC_URL_{BSC,ETH,ARB}); free public RPCs reject vault queries with -32005. Unset -> honest "no RPC configured". - tapi account privacy: most accounts are private; empty results are reported as privacy, not as data.
- Cached responses carry
age_seconds/fetched_atfreshness fields.
Part of the suite
Four sibling read-only MCP gateways, one style: keyless, cached, honest degradation.
All four are on glama.ai and PyPI; any of them installs with uvx <name>.
License
MIT.
来源:README.md,提交 6f9c622
工具
0版本历史
2- v0.1.3最新Sep 23, 2026
- v0.1.2Sep 22, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
