BlazePhoenix on-chain DEX aggregator

xyz.blazephoenixv2.0.0更新於 Oct 1, 2026

On-chain DEX aggregator: quotes and verified swap calldata computed on your own RPC. No API key.

已驗證Streamable HTTP可網頁執行FinanceDeveloper Tools

概覽

AI 產生的概覽

讓助理取得鏈上 DEX 兌換報價、經驗證的未簽名兌換 calldata、模擬結果,以及五條鏈上的部署資料。

功能
提供透過鏈上 Quoter 合約取得兌換報價的工具,回傳扣除費用後的淨輸出、Router 強制執行的最低輸出、價格影響與風險判定。也可建構未簽名的 Router calldata、從指定帳戶試跑兌換、檢查質押償付能力、讀取代幣中繼資料,以及列出或驗證協定部署。遠端版本則回傳要執行的 eth_call 並解碼節點回傳結果。
適用情境
適合助理在 Base、Ethereum、Optimism、Arbitrum 或 Robinhood Chain 上準備或檢查 DEX 兌換,而不必信任某個定價伺服器。適用於希望在自行簽名前取得可自行驗證的報價與 calldata 的代理。
執行需求
本機伺服器透過 npx 執行,需要 Node.js,以及至少一個透過環境變數提供的 RPC 端點,例如 BLAZEPHOENIX_RPC_URL 或依鏈設定的 BLAZEPHOENIX_RPC_BASE 等變數。遠端端點不需要金鑰,也不執行 RPC 呼叫。不需要帳戶或 API 金鑰。
安裝前請注意
本機伺服器僅從環境變數讀取 RPC URL;這些 URL 可能內嵌服務商金鑰,應避免放入共用設定。所有工具據稱皆為唯讀,伺服器不會簽名也不持有金鑰,但 build_swap 回傳的 calldata 必須自行審查並在自己的錢包中簽名。使用前應在鏈上核實報價與 calldata。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 BlazePhoenix on-chain DEX aggregator,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

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

README

BlazePhoenix MCP server

[solvency]

On-chain DEX aggregator tools for AI agents. The defining property: every quote is computed by the on-chain Quoter contract (previewPlan, a free eth_call), the same logic that executes the swap, and it runs on your own RPC. There is no pricing server to trust, and every number an agent relays is reproducible by anyone.

  • Local server: @blazephoenix/mcp over stdio. Quotes, unsigned calldata, simulation and solvency, all read through the node you configure.
  • Remote endpoint: https://blazephoenix.xyz/mcp (streamable HTTP, stateless). Deployment registry, ABIs and the pure quote codec. It performs no RPC call.
  • Auth: none · API key: none
  • Chains: Base (8453), Ethereum (1), Optimism (10), Arbitrum (42161), Robinhood Chain (4663)

Local server

bash
claude mcp add blazephoenix -e BLAZEPHOENIX_RPC_BASE=<your Base node URL> -- npx -y @blazephoenix/mcp

Any MCP client (JSON config):

json
{  "mcpServers": {    "blazephoenix": {      "command": "npx",      "args": ["-y", "@blazephoenix/mcp"],      "env": { "BLAZEPHOENIX_RPC_BASE": "<your Base node URL>" }    }  }}

The RPC comes from the environment only, never from a tool argument:

VariableMeaning
BLAZEPHOENIX_RPC_URLOne node, used for every chain it serves
BLAZEPHOENIX_RPC_BASE, _ETH, _OPTIMISM, _ARBITRUM, _ROBINHOODA node per chain. Use either this or BLAZEPHOENIX_RPC_URL, not both

A value may hold several URLs separated by commas; they are your fallback order. The server never prints your URLs, since they may carry a key.

Tools

ToolWhat it does
get_quoteSwap quote through your RPC: net output after the fee, the minimum the Router enforces, price impact and the Phoenix Check verdict (ok / caution / danger / blocked, fails closed). exact: true dry-runs every concentrated leg.
build_swapQuote and return verified unsigned Router calldata, with the minimum output and deadline baked in.
simulate_swapBuild the swap and dry-run it from a given account with an eth_call.
check_solvencyLive staking solvency: isSolvent() and the decoded solvency() struct.
get_token_infoSymbol, decimals and name of a token, read from the chain.
get_deploymentsThe versioned deployment registry: Core, Hub, Solver, Quoter and Router per chain and version.
verify_deploymentCheck that the registry addresses for a chain and version match what is deployed on-chain.

Every tool is read-only. The server never signs and never holds a key. build_swap returns calldata for you to review and sign in your own wallet, and the SDK's wallet-taking execute() is deliberately not exposed.

Remote endpoint

bash
claude mcp add --transport http blazephoenix https://blazephoenix.xyz/mcp
json
{ "mcpServers": { "blazephoenix": { "type": "http", "url": "https://blazephoenix.xyz/mcp" } } }
ToolWhat it does
prepare_quoteThe exact eth_call to run on your node for a quote, plus a request object
decode_quoteTurns your node's answer into the quote, the Phoenix Check verdict and verified calldata (pure)
get_deploymentsThe versioned deployment registry
get_abiGenerated ABI of a protocol contract

The source of the endpoint is in Blaze-Phoenix-API.

Install as a plugin or extension

Claude Code plugin (hosted MCP endpoint plus the BlazePhoenix agent skill):

bash
claude plugin marketplace add blazephoenixxyz-crypto/blazephoenix-mcpclaude plugin install blazephoenix@blazephoenix

Gemini CLI extension (hosted MCP endpoint plus a context file):

bash
gemini extensions install https://github.com/blazephoenixxyz-crypto/blazephoenix-mcp

Both connect https://blazephoenix.xyz/mcp, which needs no key and performs no RPC. For the full toolset on your own node, use the local server.

Verify instead of trusting

Nothing here requires trusting BlazePhoenix:

bash
# the solvency claim, straight from the chain, bypassing the site entirelycast call 0x3f60C7aa0c36a78D200405feBE143d2Cf3fA0c77 "isSolvent()(bool)" --rpc-url https://mainnet.base.org
# re-execute any published fact live, with its block heightcurl -s "https://blazephoenix.xyz/api/verify?fact=solvency-live"
# reproduce every live claim in ~60 secondscurl -sO https://blazephoenix.xyz/repro/verify-everything.sh && bash verify-everything.sh

Build and test

bash
npm installnpm run buildnpm test

The test spawns the built server over stdio with no RPC configured and checks the tool surface, that failures come back as tool results, and that no tool takes an RPC, key or signer argument or signs anything.

More machine surfaces

Security

To report a vulnerability, see SECURITY.md.

License

The code is MIT (see LICENSE). This documentation is CC BY 4.0. The protocol contracts are BUSL-1.1 (free to read, audit and verify; production use before the 2030 change date requires a license). The mechanisms and terminology (Iron Law Φ, Monoslot, Master Conservation Identity) are original BlazePhoenix work: attribute with a link.

Contact: [email protected] · Security: https://blazephoenix.xyz/.well-known/security.txt

來源:README.md,提交 eb3ed94

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v2.0.0最新Oct 1, 2026