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 分