AfterFees

io.github.linyejia由 GitHub 账号 linyejia 发布v0.18.9更新于 Oct 30, 2026

Crypto funding-rate arbitrage across 50 exchanges, net of fees and order-book slippage. Read-only.

已验证Streamable HTTP可网页运行金融数据与分析

概览

AI 生成的概览

只读的加密货币资金费率套利分析,覆盖 50 家交易所,所有净收益均已扣除吃单手续费和订单簿滑点。

可以做什么
  • 对多空资金费率套利组合排序,查看单币在各交易所的资金费率,并拆解单个组合的手续费、滑点与盈亏平衡
  • 比较执行成本、借币利率、交割合约基差、期限结构与跨交易所转账路径
  • 查看已结算资金费率历史、持有情景、价差K线与 AfterFees 自身的每日选单回测记录
  • 使用手动计算器,按你提供的价格计算双腿交易、Pendle Boros 锁定与转账结果
  • 查询交易所覆盖范围、费率与数据服务状态
  • 列出某个组合需要手动下的两笔订单,并查看已连接只读密钥下的对冲持仓
适用场景
适合让助手在考虑真实成本而非毛费率差的前提下筛选或解释加密资金费率、基差与转账套利,或在自行下单前按指定规模检验某个交易想法。
运行要求
托管远程端点,使用 streamable HTTP,无需安装。匿名层无需令牌,但固定为每边 10,000 美元、持有 168 小时,每个地址每分钟 60 次请求。Pro 令牌通过 Authorization Bearer 请求头提供,可解锁全部工具、自定义规模与 Pro 限额;my_positions 还需在 AfterFees 账户中连接只读交易所密钥。
安装前请注意
Pro 令牌是敏感凭据,通过 Authorization 请求头传递,请勿写入共享配置。匿名结果固定为单一规模与持有期,部分工具无令牌会直接报错。许多数字是预测或估算,部分行的滑点并非精确值。该服务本身不会交易或转移资金,但 order_checklist 的输出需由你手动执行,请自行核对。不构成投资建议。

安装

在 SourceWeft 中

  1. 打开 控制台中的 AfterFees,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.linyejia%2Fafterfees/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "afterfees": {
      "type": "http",
      "url": "https://afterfees.xyz/mcp"
    }
  }
}

README

AfterFees MCP server

Crypto funding-rate arbitrage for AI assistants, with every number net of fees and order-book slippage.

AfterFees prices ~75,000 long/short pairs across 50 exchanges (CEX, perp DEXs, Hyperliquid HIP-3) and tells you what a trade would actually earn at your size: funding minus taker fees on all four fills, slippage walked on the live order books, borrow interest, stablecoin conversion and holding period. Most screeners show the gross rate spread; once costs and real order-book depth are counted, often only a handful of the tens of thousands of pairs can be opened at $10,000 per side. This server gives your assistant the same numbers as afterfees.xyz.

  • Hosted, nothing to install. Streamable HTTP at https://afterfees.xyz/mcp.
  • Read-only. 27 tools; none can place an order or move funds.
  • No token needed to try it. The anonymous tier answers with exactly what an anonymous visitor of the site sees ($10,000 per side, held 7 days), 60 requests per minute per IP address.
  • Neutral. No exchange referral links or listing fees; rankings are not influenced by any exchange.

Connect

Claude (desktop or claude.ai): Settings → Connectors → Add custom connector → URL https://afterfees.xyz/mcp

Claude Code:

bash
claude mcp add --transport http afterfees https://afterfees.xyz/mcp

Cursor (~/.cursor/mcp.json):

json
{ "mcpServers": { "afterfees": { "url": "https://afterfees.xyz/mcp" } } }

VS Code (.vscode/mcp.json):

json
{ "servers": { "afterfees": { "type": "http", "url": "https://afterfees.xyz/mcp" } } }

With a Pro token (your own size and holding period, every tool, Pro limits), add the header Authorization: Bearer <your token> — for example claude mcp add --transport http afterfees https://afterfees.xyz/mcp --header "Authorization: Bearer arb_...". Tokens are created on afterfees.xyz/developers.

Try asking

  • "Which funding-rate arbitrage trades are actually profitable right now after fees and slippage?"
  • "Compare BTC funding on every exchange and tell me the best long/short pair at $50k."
  • "Break down the costs of the top pair: fees, slippage on each leg, breakeven time."
  • "How did AfterFees' daily picks do last week — predicted vs realised?"
  • "What does it cost to enter $100k on Hyperliquid vs Binance?"
  • "Can I lock a fixed funding rate on Pendle Boros for ETH, and what does it net?"

Tools

ToolWhat it returns
best_opportunitiesRanked long/short pairs with the net after fees and slippage at the stated size, tier and reasons
coin_overviewOne coin's funding on every exchange plus its best pairs
pair_breakdownEvery number of one pair: funding per leg, fees, order-book VWAP and slippage, breakeven (Pro token)
funding_ratesCurrent perpetual funding rates (gross) by coin or exchange
borrow_ratesMargin borrow rates, limits and inventory (for spot-short legs)
fixed_vs_floatingPendle Boros: fixed funding you can lock, net of fees, vs the floating benchmark
execution_costTaker fee + order-book slippage for a USD size of one coin on every exchange
basis_tradesSpot or perp against a dated future held to delivery
transfer_routesBuy on one exchange, withdraw on a shared network, sell on another
pair_historyFunding actually settled on both legs over 7–365 days at your size
term_structureAnnualised basis of every delivery future of one coin
venue_execution_cost$10k / $100k / $1M entry cost on one exchange
service_statusWhether data is live, which feeds are down, availability
order_checklistThe two orders to place by hand for one pair, in each exchange's own units
holding_scenariosOne pair's net held 8 h to 30 days
manual_calculatorNet, APR and breakeven for legs you describe
boros_lock_calculatorLocked net on Boros at an implied APR you give
transfer_calculatorCross-exchange transfer net at prices you give
boros_marketOne Boros market in detail
boros_futures_basisBoros implied APR vs futures basis of the same maturity
exchangesEvery exchange covered: fully calculated or watch-only, fees, status
exchange_overviewOne exchange: fees and sources, intervals, OI, extremes
coinsCoins listed on two or more exchanges
track_recordThe daily top picks: predicted net vs net realised from settled funding
dex_scanCEX ↔ DEX price gaps on verified contracts (Pro token)
spread_chartPrice spread candles between two instruments
my_positionsYour hedged positions across connected read-only keys (Pro token)

Every net figure says how its slippage was counted (net_basis): exact = walked on the live order books, reference = top of book only, before_slippage = no book. The method behind every number is published at afterfees.xyz/methodology.

About

AfterFees is built by Origin Trade Labs. Estimates from current data, not investment advice; we never hold funds or trade for you. Questions and feedback: the Feedback button on afterfees.xyz.

This repository holds the server's listing (this README and server.json for the MCP Registry); the server itself is hosted.

来源:README.md,提交 85bd32c

工具

27

best_opportunities

Best funding-rate arbitrage opportunities

Ranked funding-rate arbitrage pairs (long one market, short another) with the net result after taker fees and order-book slippage at your size, max size, breakeven, settled 7-day replay, tier (actionable / watch) and reasons.

输入参数basemodelimitnotionalholding_hoursactionable_only

coin_overview

One coin across exchanges

Funding rate of one coin on every exchange (rate, interval, APR, predicted, OI, volume, settled 7-day sum) plus its best pairs, net after fees and slippage at your size.

输入参数base必填notional

pair_breakdown

Every number of one pair

Full calculation of one pair: funding per leg and settlement count, taker fees, order-book VWAP and slippage per trade, carry, net, net if rates halve, breakeven, capacity, settled 7/30-day replay. pair_key comes from best_opportunities or coin_overview. Needs a Pro API token (Authorization: Bearer arb_…); not available on the anonymous tier.

输入参数notionalpair_key必填holding_hours

funding_rates

Funding rates

Current perpetual funding rates (gross, before costs). With base: that coin on every exchange, highest first. Without: the top N markets by absolute APR (OI filter applies).

输入参数baselimitmin_oi_usd

borrow_rates

Margin borrow rates

Margin borrow rates per coin and exchange (VIP0, current and 24 h / 7 d averages, limits, inventory) with the most negative perp funding: the two halves of a reverse spot-perp carry.

输入参数baselimit

fixed_vs_floating

Fixed vs floating funding (Pendle Boros)

Pendle Boros markets: the fixed funding rate you can lock (net of Boros fees and fill at your size) against the term-matched floating benchmark, advantage, win rate, capacity. side=short locks an income, side=long locks a cost.

输入参数basesidelimitnotional

execution_cost

Execution cost to enter a position

Taker fee + order-book slippage to buy or sell a given USD size of one coin on every exchange (perps and spot), cheapest first.

输入参数base必填size_usd

basis_trades

Basis trades against delivery futures

Spot or perp against a dated future held to delivery, on one exchange or across two (perp on one, future on another), and two same-day futures on different exchanges: net to expiry after fees and slippage at your size, net APR, basis APR, max size, tier and reasons.

输入参数baselimitscopenotionalactionable_only

transfer_routes

Cross-exchange transfer (spot) arbitrage routes

Buy a coin on one exchange, withdraw it on a network both exchanges share (same chain and contract, never matched by ticker), sell on another: real-transfer net after taker fees, order-book slippage and the withdrawal fee at your size, pre-funded net, capacity at net >= 0 / 0.3% / 1%, arrival estimate, hedge cost on a perp, status and reasons. view=traps lists spreads that exist only because deposits or withdrawals are closed.

输入参数baseviewlimitstatusnotionalinclude_hedge

pair_history

Settled-rate replay of one pair (7 to 365 days)

Funding actually settled on both legs over 7 / 30 / 90 / 180 / 365 days, applied to today's orientation at your size: net after the four trading costs, max drawdown, negative days, daily sign flips, how far back each exchange's history reaches. Ranges beyond 7 days need Pro.

输入参数rangenotionalpair_key必填

term_structure

Futures term structure of one coin

Annualised basis of every delivery future of one coin on every exchange we cover, next to perp funding.

输入参数base必填

venue_execution_cost

Execution cost on one exchange

Taker fee plus order-book slippage to enter $10k / $100k / $1M long and short on one exchange's biggest markets, in basis points.

输入参数limitvenue必填

service_status

Service status

Whether AfterFees data is live right now, which exchange feeds are down, and availability over 1 / 7 / 30 / 90 days.

无需输入参数。

order_checklist

Order checklist for one pair

The two orders to place by hand for one pair: action, exchange, symbol, quantity in the exchange's own unit (contracts where one contract is not one coin), notional, assumed leverage and a link to each contract's trading page (no referral parameters). AfterFees never trades.

输入参数notionalpair_key必填

holding_scenarios

One pair over different holding periods

Net after fees and slippage of one live pair held 8 h, 1 d, 3 d, 7 d and 30 d, optionally with your own assumed funding rate per leg (percent per funding period, keyed by instrument_id).

输入参数notionalpair_key必填assumed_rates_pct

manual_calculator

Funding arbitrage calculator (typed-in legs)

Net, net APR, breakeven and funding-halved case for two legs you describe (no live data): each leg {side: long|short, rate_pct per period, interval_hours, taker_bps, first_in_hours?}.

输入参数legs必填leveragenotionalslippage_bpsholding_hours

boros_lock_calculator

Boros fixed-rate lock calculator

Locked net (income) or cost APR on Pendle Boros at an implied APR you give, after the taker and settlement fees and the entry cost, its advantage over a floating APR you expect and the break-even floating rate. Percent inputs.

输入参数days必填sidenotionalrate_pct必填entry_usdtaker_pctsettle_pctfloating_pct

transfer_calculator

Cross-exchange transfer calculator

Buy on exchange A, withdraw, sell on exchange B at prices you give: real-transfer and prefunded net, break-even premium. Fees in percent, withdrawal fee in coins.

输入参数buy必填sell必填tripsamountfee_a_pctfee_b_pctusdt_backwithdraw_coin

boros_market

One Pendle Boros market

Detail of one Boros market (id from fixed_vs_floating): fixed rate at your size net of fees, floating benchmarks, advantage, win rate, capacity, reasons.

输入参数sidenotionalmarket_id必填

boros_futures_basis

Boros implied rate vs futures basis

Lock funding on Boros against a delivery future of the same maturity: implied APR vs basis APR, net after fees and slippage at your size.

输入参数limitnotional

exchanges

Exchanges covered

Every exchange AfterFees reads: kind, fully calculated or watch-only, status, markets, taker / maker fee, open interest, 24 h volume.

无需输入参数。

exchange_overview

One exchange

One exchange: fees and their source, funding intervals, open interest, volume, highest and lowest funding and its best after-fee pairs.

输入参数venue必填

coins

Coins covered

Coins with a perp on two or more exchanges: exchange count, open interest, highest and lowest funding APR and the best after-fee pair.

输入参数grouplimit

track_record

Public track record

How AfterFees' daily top picks actually did: predicted net vs net realised from settled funding over the hold, hit rate, mean error, latest picks.

无需输入参数。

dex_scan

CEX ↔ DEX arbitrage scan

Tokens our exchanges list with a verified contract on Ethereum, BNB Chain, Base, Arbitrum or Solana whose DEX price is more than 1% away: net at $1k / $5k / $10k after aggregator price impact, swap gas, the token transfer gas and the exchange's withdrawal fee, status and reasons. Pro. Needs a Pro API token (Authorization: Bearer arb_…); not available on the anonymous tier.

输入参数baselimit

spread_chart

Price spread of two legs

Candles of (A − B) / B between any two instruments (book mids where stored, else marks). Free: 1 h candles and longer over up to 7 days; Pro: 1 m and up, up to 365 days.

输入参数daysleg_a必填leg_b必填candleexecutable

my_positions

My hedged positions (read-only keys)

Your positions across the read-only exchange keys connected to your AfterFees account, grouped into hedges: delta drift, distance to liquidation, funding received, issues. Needs a Pro account token; AfterFees only accepts read-only keys. Needs a Pro API token (Authorization: Bearer arb_…); not available on the anonymous tier.

无需输入参数。

版本历史

1
  1. v0.18.9最新Oct 30, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分