- Home
- MCP servers
- Trading
Trading
- javascript
0
GitHub Stars
javascript
Language
4 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"useelk-trading-mcp-server": {
"command": "npx",
"args": [
"trading-mcp-server"
],
"env": {
"EXCHANGE": "mexc",
"MEXC_SECRET": "your_secret",
"MEXC_API_KEY": "your_key",
"TRADING_MODE": "demo"
}
}
}
}You have a Trading MCP Server that enables Claude Desktop to trade and scan markets across multiple exchanges via CCXT. It provides real-time market data, technical analysis tools, order management, and both spot and perpetual futures trading in a safe demo mode for practice before going live.
How to use
Connect Claude Desktop to the MCP server to access a wide range of trading tools and real-time market data. You can fetch prices, view order books, run technical analysis indicators, place and manage orders, and perform multi-exchange scans to identify trading opportunities. Use demo mode to test strategies without real funds, then switch to live mode when you are ready.
How to install
Prerequisites: you need a working Node.js environment with npm installed.
Install the MCP server package.
npm install trading-mcp-server
Create a configuration file with your exchange credentials and trading mode. Example .env content:
EXCHANGE=mexc
MEXC_API_KEY=your_api_key
MEXC_SECRET=your_secret
TRADING_MODE=demo
MARKET_TYPE=spot
Add the MCP server to Claude Desktop by specifying the runtime command and the environment variables as shown in this configuration snippet.
{
"mcpServers": {
"trading": {
"command": "npx",
"args": ["trading-mcp-server"],
"env": {
"EXCHANGE": "mexc",
"MEXC_API_KEY": "your_key",
"MEXC_SECRET": "your_secret",
"TRADING_MODE": "demo",
"MARKET_TYPE": "spot"
}
}
}
}
Restart Claude Desktop to apply the new MCP server configuration.
Configuration and security notes
Start with demo mode to simulate trading while you learn the workflow. Use conservative API keys with no withdrawal permissions for safety. When you are ready, switch to live mode carefully and test with small position sizes.
The server supports multiple exchanges through CCXT, including MEXC, Binance, Bybit, OKX, and many more. You can configure which exchange and market type you use via the environment variables in your .env file.
Examples and tips
Common tasks you will perform include checking balances and positions, getting current prices, placing and canceling orders, and performing technical analysis to guide trading decisions. Use the scanning tools to find wide spreads or strong TA signals and then act on the opportunities with controlled risk in demo mode.
Changelog and updates
New features and improvements are released over time, including additional trading tools, enhanced TA indicators, expanded market scanning, and better error handling. Always test changes in demo mode before adopting them in live trading.
Available tools
get_balance
Get account balance for spot or futures to review available funds.
get_positions
Retrieve open futures positions along with P&L details.
get_ticker
Fetch the current price for a spot or perpetual pair.
get_multiple_tickers
Obtain ticker data for multiple symbols in one call.
get_orderbook
Retrieve the current order book depth for a symbol.
get_ohlcv
Get historical OHLCV candlestick data for analysis.
get_all_pairs
List all USDT pairs with volume and spread information.
get_spread
Get bid-ask spread for a given trading pair.
place_order
Place a spot or perpetual order; in demo mode this is simulated.
cancel_order
Cancel a specific open order.
cancel_all_orders
Cancel all open orders, with optional symbol filtering.
get_open_orders
List all currently open orders.
set_leverage
Set leverage for perpetual futures trading (range 1-125x).
get_leverage
Query the current leverage setting.
analyze_symbol_ta
Run a full technical analysis on a symbol and return buy/sell/hold signals.
get_indicator
Fetch a specific technical indicator value or all indicators.
find_ta_signals
Scan all USDT pairs for TA-based trading signals with confidence ranking.
scan_spreads
Scan for wide spreads to identify market-making opportunities.
scan_best_opportunities
Comprehensive scan combining volume, spread, and TA signals to rank opportunities.
get_mode
Return the current trading mode (demo or live).