AfterFees

io.github.linyejiaPublished by GitHub account linyejiav0.18.9Updated Oct 30, 2026

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

VerifiedStreamable HTTPWeb executableFinanceData & Analytics

Overview

AI-generated overview

Read-only crypto funding-rate arbitrage analytics across 50 exchanges, with every net figure after taker fees and order-book slippage at a stated size.

What you can do
  • Rank and inspect long/short funding-rate pairs, coin funding across exchanges, and full pair breakdowns with fees, slippage and breakeven
  • Compare execution costs, borrow rates, delivery-future basis, term structure and cross-exchange transfer routes
  • Review settled funding history, holding scenarios, spread candles and AfterFees' own track record
  • Run manual calculators for two-leg trades, Pendle Boros locks and transfers at prices you supply
  • Check exchange coverage, fees and data service status
  • List the two orders to place by hand for a pair, and view hedged positions from connected read-only exchange keys
When to use it
Useful when you want an assistant to screen or explain crypto funding-rate, basis and transfer arbitrage with realistic costs rather than gross rate spreads, or to sanity-check a trade idea at a given size before placing orders yourself.
Requirements
Hosted remote endpoint over streamable HTTP; nothing to install. No token needed for the anonymous tier, which is fixed at $10,000 per side held 168 hours and 60 requests per minute per address. A Pro token sent as an Authorization Bearer header unlocks every tool, your own size and Pro limits; my_positions also needs read-only exchange keys connected to your AfterFees account.
Before you install
The Pro token is a secret sent in the Authorization header; keep it out of shared configs. Anonymous results are fixed to one size and holding period, and some tools return errors without a token. Many figures are projections or estimates, and some rows are not exact on slippage. The server never trades or moves funds, but order_checklist output is meant to be executed by hand, so verify it. Not investment advice.

Installation

In SourceWeft

  1. Open AfterFees in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.linyejia%2Fafterfees/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "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.

Source: README.md at commit 85bd32c

Tools

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.

Parametersbasemodelimitnotionalholding_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.

Parametersbaserequirednotional

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.

Parametersnotionalpair_keyrequiredholding_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).

Parametersbaselimitmin_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.

Parametersbaselimit

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.

Parametersbasesidelimitnotional

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.

Parametersbaserequiredsize_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.

Parametersbaselimitscopenotionalactionable_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.

Parametersbaseviewlimitstatusnotionalinclude_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.

Parametersrangenotionalpair_keyrequired

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.

Parametersbaserequired

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.

Parameterslimitvenuerequired

service_status

Service status

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

Takes no parameters.

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.

Parametersnotionalpair_keyrequired

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).

Parametersnotionalpair_keyrequiredassumed_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?}.

Parameterslegsrequiredleveragenotionalslippage_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.

Parametersdaysrequiredsidenotionalrate_pctrequiredentry_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.

Parametersbuyrequiredsellrequiredtripsamountfee_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.

Parameterssidenotionalmarket_idrequired

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.

Parameterslimitnotional

exchanges

Exchanges covered

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

Takes no parameters.

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.

Parametersvenuerequired

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.

Parametersgrouplimit

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.

Takes no parameters.

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.

Parametersbaselimit

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.

Parametersdaysleg_arequiredleg_brequiredcandleexecutable

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.

Takes no parameters.

Version history

1
  1. v0.18.9LatestOct 30, 2026

Score

100% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts