multi-exchange-spread
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_LOCALE | No | Selects the language of the instructions, the four tool descriptions, every parameter description and every error message. Accepts en, es, or ru; an unknown value falls back to English rather than failing. | en |
| MCP_TRANSPORT | No | Transport used when running the server: stdio (default), http on port 8000, or sse on port 8000. | stdio |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Cross-exchange spot spreads. get_spread shows the best bid and ask from seven venues for one pair and names the cheapest place to buy and the dearest to sell. scan_spreads ranks the whole market by the spread left after your fees. estimate_trade walks both real order books for a given dollar size and reports the profit after both fees and the largest size that still works. Prices come from venue tickers, which can lag their own books by tens of basis points on volatile pairs: treat scan rows as candidates and confirm with estimate_trade before believing them. Default fee is 10 bps per side, so a round trip costs 20 bps; pass your real taker fee.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_spreadA | Best bid and ask for one pair on every venue that lists it, the cheapest venue to buy and the dearest to sell, the gross spread, the spread left after fees, and how many dollars rest at the touch. Example: symbol='BTC/USDT'. |
| scan_spreadsA | Ranks pairs by the cross-venue spread left after fees. Gathers every venue's whole book, keeps the most liquid pairs that at least two venues quote, then compares them. Rows wider than 200 bps are marked suspect: on a pair two venues both list, that usually means a stale ticker, not free money. Example: min_net_bps=0, limit=20. |
| estimate_tradeA | Walks the ask side of one venue and the bid side of another to fill a given dollar amount, then reports both VWAPs, the gross profit, both fees, the net profit, and the largest size that still clears the fees. This is the tool that decides whether a scan row is real. Example: symbol='BTC/USDT', notional_usd=25000. |
| list_venuesA | Lists the exchanges this server reads, and with probe=true asks each one for a reference pair and reports latency and how many pairs it publishes. Call it first when a scan looks empty. Example: probe=true. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
Each tool occupies a distinct scope: get_spread is a single-pair snapshot, scan_spreads is a ranked cross-pair list, estimate_trade is a fill/execution simulation, and list_venues is venue metadata/health. The descriptions even state the division of labor ('this is the tool that decides whether a scan row is real', 'call it first when a scan looks empty'), leaving little room for misselection.
All four names follow a uniform snake_case verb_noun pattern (get_, scan_, estimate_, list_) and read predictably. No mixed conventions or vague bare verbs.
Four tools is a tight, well-scoped set for a spread-analytics server, and each one covers a distinct stage (discover venues, find candidates, inspect a pair, validate a trade). Nothing looks redundant or tacked on.
The surface covers the natural workflow end to end: venue discovery/health, spread scanning, per-pair detail, and feasibility estimation. Minor gaps exist, such as no historical/time-series spread queries or venue-scoped filtering, but agents can work around these.