
Bsc Dex Spread
io.github.donnywin85由 GitHub 帳號 donnywin85 發布v0.1.0更新於 Oct 24, 2026
Cross-DEX price & spread for PancakeSwap v2+v3 on BSC via x402. Tool get_dex_spread(pair, fee?).
概覽
本機 MCP 伺服器,提供一個工具,回傳 BSC 上 PancakeSwap v2 與 v3 的即時跨 DEX 價格與價差,依每次呼叫以 USDC 付費。
- 可以做什麼
- 查詢跨 DEX 定價:get_dex_spread 接收如 WBNB/USDC 的代幣對與可選的 PancakeSwap v3 費率級別,並探測 v2 與各 v3 級別。
- 回傳各交易場所價格、最佳買入與最佳賣出場所、以基點計的毛價差、各場所與總流動性,以及資料來源區塊號。
- 可用於套利篩選、最佳執行路徑與滑價估算,無須自行執行 BSC RPC 基礎設施或計算資金池。
- 適用情境
- 當助理需要 BSC 上即時且帶區塊標記的 PancakeSwap v2/v3 價差資料,且可接受逐次計費、不需帳號或 API key 時使用。README 指出已有免費且免金鑰的跨 DEX 價差替代方案,因此它較適合明確需要無上限付費通道的呼叫方。
- 執行需求
- 透過 npm 套件 bsc-dex-spread-mcp 以 stdio 在本機執行(需要 Node.js,可用 npx 或全域安裝)。需要 EVM_PRIVATE_KEY,即 0x 開頭的 Base 主網錢包私鑰,只需存入 USDC(不需 ETH),因為每次呼叫在 Base 上花費 0.01 USDC。可選的 GATEWAY_URL 可覆寫預設閘道位址。需要能連線該閘道的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Bsc Dex Spread,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
bsc-dex-spread
One MCP tool — get_dex_spread — returning live cross-DEX price and spread for
PancakeSwap v2 + v3 on BSC, paid $0.01 USDC per call from your own wallet.
Try it in 30 seconds
Inspecting the server costs nothing and needs no wallet:
It starts on stdio and lists its one tool. Add it to Claude Code:
Without a key the tool is still listed, and a call tells you exactly what is missing rather than failing obscurely:
Before you fund anything, know the free alternative. If you do not
specifically need the paid, uncapped path, arb-dex-mcp
and dex-data-mcp return cross-DEX
spread keyless and free on six chains. This server exists for callers who
want per-call billing with no free-tier ceiling — it is not the cheapest way in.
An MCP server that gives your agent one tool —
get_dex_spread — returning real-time cross-DEX price & spread data for
PancakeSwap v2 + v3 on BSC. Each call is a paid API call: $0.01 USDC on Base
mainnet, settled automatically over x402 from your own
wallet. No subscription, no account, no API key to request — the agent pays
per call.
Backed by a live x402 gateway: https://x402.donnyautomation.com Public usage/proof page: https://x402.donnyautomation.com/stats
The tool
get_dex_spread(pair, fee?)
Real-time cross-DEX price & spread for PancakeSwap v2+v3 on BSC.
pair(required) — token pair asSYM/SYM; the first symbol is the USD-priceable side. Examples:WBNB/USDC,WBNB/USDT,CAKE/WBNB.fee(optional) — a PancakeSwap v3 fee tier (100,500,2500,10000) to restrict the v3 probe. Omit to probe all v3 tiers and v2.
Returns per-venue prices, best buy / best sell venue, the gross cross-DEX spread in bps, liquidity (per-venue TVL + totals), and the source block number. Example:
Why an agent wants this
Cross-DEX spread is the raw signal behind arbitrage, best-execution routing, and slippage estimation. Instead of running BSC RPC infrastructure and multi-DEX pool math itself, an agent calls one tool and pays a cent for a fresh, block-stamped answer across PancakeSwap v2 + v3 venues.
Cost & wallet model — read this
You bring the wallet. This package ships no keys. The server signs each
payment with a private key it reads from its own environment
(EVM_PRIVATE_KEY), which you set in your MCP client's server config. That is
the design: the buyer (you) pays for the data with the buyer's wallet.
- Per call: $0.01 USDC on Base mainnet (
eip155:8453). - Fund USDC only — zero ETH needed. x402's
exactscheme is EIP-3009transferWithAuthorization: you sign an off-chain USDC authorization and the facilitator broadcasts it and pays the gas. A 0-ETH wallet settles fine. - Use a low-balance, dedicated wallet. Fund it with just a few dollars of USDC on Base and top it up as needed. Do not point this at your main wallet — the key sits in your MCP client config in plaintext, so treat it as a hot, disposable spending wallet.
Install & configure
Add it to your MCP client. Claude Desktop / Claude Code
(claude_desktop_config.json or .mcp.json):
EVM_PRIVATE_KEY — your Base-mainnet buyer wallet key (0x-prefixed), funded with
a few dollars of USDC on Base. Optional GATEWAY_URL overrides the endpoint
(defaults to https://x402.donnyautomation.com).
Restart your client; the agent will have get_dex_spread available and will pay
$0.01 USDC each time it calls it.
How it works
What has been verified, and what has not
Checked against the published artifacts on 2026-08-21:
npm install -g bsc-dex-spread-mcpandnpx -y bsc-dex-spread-mcpboth install and start; npm0.1.0matches this repo.- The gateway is live and answers
GET /call?pair=WBNB/USDCwith a valid x402 V2 challenge —402, apayment-requiredheader, $0.01 USDC (10000at 6 decimals) on Baseeip155:8453. - A keyless call reports the missing key clearly, as shown above.
- Not verified: end-to-end paid settlement. Confirming it would mean spending real USDC, which this documentation pass was not authorised to do. The payment path is unexercised here, so treat it as untested rather than proven, and make your first call a small one.
Where to go next
- Free, keyless cross-DEX data —
arb-dex-mcp(6 chains) ordex-data-mcp(22 tools). - Paid general-purpose agent utilities —
agent-utils-mcp. - The human-approval job queue behind these services —
approval-queue-starter. - Live proof of usage — https://x402.donnyautomation.com/stats.
License
MIT
來源:README.md,提交 142841c
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分