list-exchanges
Retrieve a complete list of supported cryptocurrency exchanges from the CCXT MCP Server for integration and trading purposes.
Instructions
List all available cryptocurrency exchanges
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list-exchanges"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/public.ts:18-27 (handler)The handler function for the 'list-exchanges' tool, which returns the list of supported exchanges (SUPPORTED_EXCHANGES) as a formatted JSON string in the MCP response format.
server.tool("list-exchanges", "List all available cryptocurrency exchanges", {}, async () => { return { content: [{ type: "text", text: JSON.stringify(SUPPORTED_EXCHANGES, null, 2) }] }; } ); - src/exchange/manager.ts:13-22 (helper)Constant array listing all supported cryptocurrency exchanges, which is used by the list-exchanges tool handler.
export const SUPPORTED_EXCHANGES = [ // 原有交易所 'binance', 'coinbase', 'kraken', 'kucoin', 'okx', 'gate', 'bybit', 'mexc', 'huobi', // 新增主流交易所 'bitget', 'coinex', 'cryptocom', 'hashkey', 'hyperliquid', // 延伸现有交易所的衍生品市场 'binanceusdm', 'binancecoinm', 'kucoinfutures', 'bitfinex', 'bitmex', 'gateio', 'woo', 'deribit', 'phemex', 'bingx' ]; - src/tools/public.ts:18-27 (registration)Registration of the 'list-exchanges' tool using server.tool, including description, empty schema (no params), and inline handler.
server.tool("list-exchanges", "List all available cryptocurrency exchanges", {}, async () => { return { content: [{ type: "text", text: JSON.stringify(SUPPORTED_EXCHANGES, null, 2) }] }; } );