Skip to main content
Glama

arb-dex-mcp

An MCP server that gives an AI agent live cross-DEX market data on six EVM chains — BSC, Polygon, Arbitrum, Base, Avalanche and Optimism.

Every number is read from on-chain pool state at a stated block: per-venue pool price, pool TVL, and the gross cross-venue spread with the optimal trade size that captures it. Nothing is modelled, estimated or backfilled, and each payload carries its own scope note — so an agent that quotes a figure also has the caveats attached to it.

Backed by the Multi-Chain DEX Prices & Liquidity API.

Tools

Tool

What it answers

Key needed

get_chains

Which chains are covered, their chain IDs, tokens and DEX venues

Optional — falls back to the free snapshot

get_pairs

What is priceable on one chain: token universe, venues, pair syntax

Optional — falls back to the free snapshot

get_prices

One pair's price at every venue holding a pool for it, plus reserves, TVL, fee tier and the cross-DEX spread

Required

get_spreads

A whole chain's cross-venue dislocations, ranked by gross USD at the optimal size

Optional — free hourly snapshot without a key, fresh on-chain sweep with live: true

Without a key the server still runs and returns real data from the free public surface, labelled as such. It never fabricates a row or silently degrades: a paid call with no key returns an explicit key-required error with the signup link.

Spreads are gross — before gas, MEV and slippage beyond the optimal size. Not a profit estimate and not trade advice. A wide spread against a shallow pool is worth very little, and get_spreads says so per row rather than letting a big basis-point number mislead.

Related MCP server: ProfitSpot MCP

Install

git clone https://github.com/donnywin85/arb-dex-mcp.git
cd arb-dex-mcp
npm install

Requires Node 18+.

Get a key

The paid tools call the API through RapidAPI using your own key. This package ships no credentials of any kind.

  1. Subscribe (there is a free tier): https://rapidapi.com/donnydev/api/multi-chain-dex-prices-liquidity

  2. Copy your X-RapidAPI-Key from the RapidAPI dashboard.

  3. Put it in RAPIDAPI_KEY in the config below — never in code, and never in a commit.

Claude Desktop

claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\):

{
  "mcpServers": {
    "arb-dex": {
      "command": "node",
      "args": ["/absolute/path/to/arb-dex-mcp/src/index.mjs"],
      "env": {
        "RAPIDAPI_KEY": "your-rapidapi-key-here"
      }
    }
  }
}

Restart Claude Desktop; the four tools appear under the connectors icon.

Claude Code

claude mcp add arb-dex --env RAPIDAPI_KEY=your-rapidapi-key-here -- node /absolute/path/to/arb-dex-mcp/src/index.mjs

Then /mcp to confirm it connected.

Try it

Ask your agent:

  • "Which chains and DEX venues does arb-dex cover?"

  • "What is WBNB/USDT trading at on every BSC venue right now?"

  • "Show me the cross-DEX spreads on Polygon — are any actually capturable?"

  • "Run a live spread sweep on Arbitrum and rank by gross USD."

Configuration

Env var

Default

Purpose

RAPIDAPI_KEY

Your RapidAPI key. Required for paid tools.

ARB_DEX_TIMEOUT_MS

45000

Request timeout. A live full-chain sweep is a real on-chain read and can take ~30s.

ARB_DEX_FREE_BASE_URL

production origin

Override the free-surface host.

ARB_DEX_RAPIDAPI_HOST

multi-chain-dex-prices-liquidity.p.rapidapi.com

Override the RapidAPI host.

See .env.example.

Test

npm run selftest                    # keyless: exercises the free fallbacks
RAPIDAPI_KEY=... npm run selftest   # keyed: exercises the paid routes

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.

Known gap

The API's paid measurement archive (/v1/history/*) is live on the origin but is not yet registered on the RapidAPI listing, so calls through the proxy 404. A get_history tool is therefore deliberately absent rather than shipped broken; it lands once the listing exposes those routes.

License

MIT

Install Server
F
license - not found
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    Cross-chain DeFi intelligence MCP server for AI agents. 7 tools for yield discovery, pool analysis, profit simulation, risk scoring, whale tracking, impermanent loss calculation, and DeFi overview across 86 chains and 6,500+ liquidity pools.
    7
    1
    AGPL 3.0
  • A
    license
    A
    quality
    D
    maintenance
    An MCP server that provides AI agents with real-time access to DEX liquidity pool data, enabling smarter trading, analytics, and automated strategies.
    10
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • Live financial data MCP: FX, crypto, stocks, news, URL reader. x402 on Base: $0.001/call.

  • Multi-aggregator swap router for AI agents on Base. 10 bps fee. MCP-native, non-custodial.

  • Crypto intelligence MCP for market data, DeFi, wallets, security, DEX, NFTs, and Solana.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/donnywin85/arb-dex-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server