MCP 服务器

BlazePhoenix on-chain DEX aggregator

xyz.blazephoenix/mcp
加密货币与 Web3 公开且可连接 MCP 2026-07-28

此 MCP 可以做什么

Prepares and decodes on-chain DEX swap quotes and calldata using user-provided RPC infrastructure.

decode_quote
Decode a quote result
Decode the eth_call result YOUR node returned for a prepare_quote call: net output after the 0.28% fee, the minimum the Router enforces on-chain, price impact, the Phoenix Check verdict (ok / caution / danger / blocked — fails closed; quote it when asked if a swap is safe) and, with a recipient, verified unsigned calldata. Pure computation.
只读 幂等
输入模式
{'type': 'object', 'required': ['request', 'result'], 'properties': {'result': {'type': 'string', 'description': 'the 0x hex result of the eth_call on your node'}, 'request': {'type': 'object', 'description': 'the `request` object prepare_quote returned, verbatim'}}}
get_abi
Contract ABI
The JSON ABI of one BlazePhoenix contract, generated from the Solidity sources, with the source revision it was built from. Use it to encode your own calls to the addresses get_deployments returns, or pass `errors` to decode a revert reason from a failed swap or quote. Returns { contract, revision, abi }; an unknown name returns ok:false with the accepted list. Pure lookup, no RPC.
只读 幂等
输入模式
{'type': 'object', 'required': ['contract'], 'properties': {'contract': {'enum': ['quoter', 'router', 'solver', 'hub', 'core', 'errors'], 'type': 'string', 'description': 'quoter (quotes and previews) | router (swap entry point) | solver | hub | core | errors (the protocol custom-error set, for decoding reverts)'}}}
get_deployments
Deployment registry
The versioned BlazePhoenix deployment registry: Core, Hub, Solver, Quoter and Router addresses per chain and protocol version (1.0.0 live; 2.0.0 the final generation), and which version each chain runs now.
只读 幂等
输入模式
{'type': 'object', 'properties': {}}
prepare_quote
Prepare an on-chain quote
Prepare an on-chain BlazePhoenix quote to run on YOUR OWN RPC. Returns the exact eth_call (Quoter address + calldata, as a ready JSON-RPC request and a curl line) plus a `request` object. Run the call on your node, then pass `request` and the result hex to decode_quote. This server performs no RPC. For one-step quotes, swaps and solvency on your own RPC, run the local server: claude mcp add blazephoenix -e BLAZEPHOENIX_RPC_BASE=<your node> -- npx -y @blazephoenix/mcp
只读 幂等
输入模式
{'type': 'object', 'required': ['chain', 'in', 'out', 'amountIn'], 'properties': {'in': {'type': 'string', 'description': 'input token — 0x address, or ETH / WETH / USDC / BZPX'}, 'out': {'type': 'string', 'description': 'output token — 0x address, or ETH / WETH / USDC / BZPX'}, 'chain': {'type': 'string', 'description': 'base | eth | optimism | arbitrum | robinhood (or a chain id)'}, 'exact': {'type': 'boolean', 'description': 'true → previewPlanExact (execution-grade dry-run, no calldata)'}, 'version': {'type': 'string', 'description': 'protocol version: latest (default) | 1 | 2 | 2.0.0'}, 'amountIn': {'type': 'string', 'description': 'input amount in base units (wei-style integer string)'}, 'recipient': {'type': 'string', 'description': 'optional 0x address; with it, decode_quote returns signable calldata'}, 'userMinOut': {'type': 'string', 'description': 'optional explicit minimum output, base units'}, 'deadlineSec': {'type': 'integer', 'description': 'deadline horizon in seconds, 10–3600 (default 120)'}, 'slippageBps': {'type': 'integer', 'description': '0–5000 (default 50); never below the on-chain floor'}}}
已添加
get_abi
2026年10月2日 02:40
已添加
get_deployments
2026年10月2日 02:40
已添加
decode_quote
2026年10月2日 02:40
已添加
prepare_quote
2026年10月2日 02:40