
Cross-DEX Prices & Spreads
io.github.donnywin85由 GitHub 帳號 donnywin85 發布v1.0.1更新於 Oct 24, 2026
Live cross-DEX pool prices, liquidity and spreads on 6 EVM chains, read from on-chain pool state.
概覽
唯讀 MCP 伺服器,讓助理取得六條 EVM 鏈上跨 DEX 的即時池價格、流動性與毛價差,並可查詢量測檔案。
- 可以做什麼
- 列出涵蓋的鏈、鏈 ID、代幣與 DEX 場所,並查看某條鏈上可定價的對象
- 查詢某一交易對在所有持有該池的場所的價格,含儲備、TVL、費率級距與跨 DEX 價差
- 掃描整條鏈的跨場所價差,依最佳交易規模下的毛美元金額排序
- 檢視量測檔案的涵蓋範圍:列數、追蹤交易對、出現過的鏈、時間跨度與保留期
- 讀取某一交易對在 24 小時、7 天或 30 天內的分場所價格與流動性序列(付費方案)
- 適用情境
- 當助理需要 BSC、Polygon、Arbitrum、Base、Avalanche 或 Optimism 上目前的鏈上 DEX 報價或價差資料,或想確認某個價差是持續存在還是僅單次取樣時適用。它提供唯讀市場資料,並非交易或收益估算工具。
- 執行需求
- 透過 npx 以 stdio 在本機執行,需要 Node 18 以上版本。選用的 RAPIDAPI_KEY(來自對底層 API 的 RapidAPI 訂閱,有免費方案)可解鎖付費工具;未提供時伺服器仍可啟動,並以免費每小時快照作答。ARB_DEX_TIMEOUT_MS 預設 45000 毫秒,因為全鏈即時掃描可能耗時約 30 秒。需要連線至該 API 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Cross-DEX Prices & Spreads,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
arb-dex-mcp
Live cross-DEX crypto prices for your AI agent — per-venue pool price, pool liquidity and the gross cross-venue spread on 6 EVM chains, read straight from on-chain pool state.
[npm] [npm downloads] [provenance] [MCP Registry] [Indexed on TensorBlock MCP Index] [Listed on mcpservers.org] [license]
Chains: BSC · Polygon · Arbitrum · Base · Avalanche · Optimism. Venues: PancakeSwap (v2 + v3), Uniswap v3, SushiSwap, QuickSwap, Biswap, ApeSwap, BaseSwap, Trader Joe, Pangolin — every v2-style pool and every v3 fee tier separately, because a $12k 1% pool and a $19M 0.01% pool are not the same quote.
Nothing is modelled, estimated or backfilled. Every payload states its own block number and carries its own scope note, so an agent that quotes a figure also has the caveats attached to it.
Works with no API key against a free hourly public snapshot. Docs · npm
Quickstart
Nothing to clone or build. Your MCP client fetches the package. Requires Node 18+.
Claude Desktop
claude_desktop_config.json — macOS ~/Library/Application Support/Claude/,
Windows %APPDATA%\Claude\:
Restart Claude Desktop; the six tools appear under the connectors icon.
Drop the env block entirely to run keyless — the server still starts and the
free-snapshot tools still answer.
Claude Code
Keyless:
Then /mcp to confirm it connected.
Cursor
~/.cursor/mcp.json (global) or .cursor/mcp.json (per project):
Cursor → Settings → MCP shows the server and its tools once the file is saved.
Any other MCP client
Same three facts: command npx, args ["-y", "arb-dex-mcp"], transport stdio,
optional env RAPIDAPI_KEY.
Try it
Real prompts, and the real shape that comes back. Payloads below were measured live on 2026-08-15; they are trimmed for width but nothing is invented.
1. "What is WBNB/USDT trading at on every BSC venue right now?"
get_prices reads every pool holding the pair — v2 pairs and each v3 fee tier separately —
at one stated block:
Read the two spread numbers against each other. The raw mid spread is 43 bps — and the
gross capturable spread is 0. The 609.10 quote lives in a $12k pool; the size that would
actually clear it moves the price past the gap before you get there. A tool that reported only
the 43 bps would be handing an agent a number it cannot trade. This one reports both, and
optimalInput is where the honesty lands.
2. "Show me the cross-DEX spreads on Base — are any actually capturable?"
get_spreads sweeps a whole chain and ranks by gross USD at the optimal size, not by
headline basis points:
found: 0 is a real answer and it is the common one. Eleven pairs scanned, nothing cleared
the floor. Venues under $1,000 TVL are dropped outright. When rows do come back, each carries
capturable, warning and shallowestSideTvlUsd so a big basis-point number cannot mislead on
its own. This tool will tell your agent there is nothing there — which is the whole point of
asking it.
3. "How much history does arb-dex actually have, and for which chains?"
get_history_summary sizes the archive before you query it:
Coverage is only what was measured. A gap stays a gap — rowsByEra says how much detail each
era of rows carries, and ARB/USDC having 98 observations but 0 qualified is the archive
telling you that pair has never once cleared the spread floor.
Tools
The two history tools read the service's own measurement archive, so they answer the question
the live tools cannot: whether a dislocation persisted or was a single sample. Sampling is
roughly hourly, and gaps are never interpolated or backfilled. Call get_history_summary first
to see what span exists before asking for a window.
What it will not do
- Spreads are gross — before gas, MEV and slippage beyond the optimal size. Not a profit estimate and not trade advice.
- It never fabricates a row. Without a key,
get_chains,get_pairsandget_spreadsanswer from the free public surface and each carries alimitationfield naming exactly what a key would add.get_prices,get_history_summaryandget_historyreturn an explicit key-required error with the signup link rather than a thinner answer dressed up as a full one. - It does not execute trades, hold funds, or touch a wallet. It is read-only market data.
- This package ships no credentials of any kind. The key is yours and stays in your config.
Get a key
The paid tools call the API through RapidAPI using your own key.
- Subscribe — there is a free tier: https://rapidapi.com/donnydev/api/multi-chain-dex-prices-liquidity
- Copy your
X-RapidAPI-Keyfrom the RapidAPI dashboard. - Put it in
RAPIDAPI_KEYin the config above — never in code, and never in a commit.
Plans
Five of the six tools work on the free tier. Only the per-pair history series is gated:
Calling get_history below PRO returns an explicit tier_required error naming the plan and
the upgrade URL — it does not fail silently or return an empty series.
Configuration
Set these in your MCP client's env block (see the configs above). .env.example ships in the
package and documents the same variables for local runs from a clone.
Test
The test suite is not in the npm tarball — run it from a clone:
The test spawns the server over stdio and calls every tool against the real production API — nothing is mocked. It asserts on live values (block number, per-venue prices, scanned-pair counts), so a run that passes is evidence the data path works end to end.
Links
- npm: https://www.npmjs.com/package/arb-dex-mcp
- Docs: https://donnywin85.github.io/arb-dex-mcp/
- Official MCP Registry:
io.github.donnywin85/arb-dex-mcp - TensorBlock MCP Index: https://www.tensorblock.co/mcp/servers/github-donnywin85-arb-dex-mcp-7dd9a70c
- Source: https://github.com/donnywin85/arb-dex-mcp
- The API behind it: https://rapidapi.com/donnydev/api/multi-chain-dex-prices-liquidity
License
MIT — see LICENSE.
來源:README.md,提交 475e0e7
工具
0版本歷史
1- v1.0.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分