Newcontext-mode—Save 98% of your AI coding agent's context windowLearn more
MCP Directory
ServersClientsBlog

context-mode

Save 98% of your AI coding agent's context window. Works with Claude Code, Cursor, Copilot, Codex, and more.

Try context-mode
MCP Directory

Model Context Protocol Directory

MKSF LTD
Suite 8805 5 Brayford Square
London, E1 0SG

MCP Directory

  • About
  • Blog
  • Documentation
  • Contact

Menu

  • Servers
  • Clients

© 2026 model-context-protocol.com

The Model Context Protocol (MCP) is an open standard for AI model communication.
Powered by Mert KoseogluSoftware Forge
  1. Home
  2. Servers
  3. asterdex-mcp-server

asterdex-mcp-server

GitHub

Provide a Model Context Protocol server delivering real-time data, analysis, and trading tools for Aster DEX perpetual futures.

0
1

asterdex-mcp-server

56-tool MCP server for Aster DEX perpetual futures trading

License: MIT
MCP Compatible
Node.js
TypeScript

A comprehensive Model Context Protocol server that gives Claude (and any MCP-compatible AI) full access to Aster DEX perpetual futures — from real-time market data and institutional-grade analysis to live order execution and automated strategies.

Why This Exists

Most DEX integrations are thin API wrappers. This server includes the analytical layer that makes the data actionable:

CapabilityThis ServerBasic Wrappers
VPVR (Volume Profile)POC, VAH, VAL, VWAP, Delta—
Cross-Exchange AnalysisAster vs Hyperliquid vs Binance—
Pump / Breakout DetectionMFI, StochRSI, OBV, structural scoring—
Market Regime DetectionBTC EMA/RSI regime with confidence band—
Binance Flow SignalsOI history, top-trader positioning, taker flow—
Accumulation DetectionPre-move institutional signals—
Strategy AutomationFunding farm, grid, pump strategies—
Spot + PerpsBoth markets, transfers between—
QFL Base SignalsCryptoBaseScanner integration—
Scale Grid EngineMulti-level grid with risk management—

Tools Reference (56 total)

Market Data

ToolDescription
get_market_dataPrice, ticker, orderbook, funding rates, exchange info
get_klinesHistorical candlestick data
get_recent_tradesRecent public trades
scan_marketsScan all markets sorted by volume, funding, change, OI, or spread
get_market_intelligenceComprehensive report: top gainers, losers, volume leaders, funding opportunities

Perpetual Trading

ToolDescription
execute_orderMarket/limit orders with TP/SL and trailing stops
manage_ordersCancel orders, batch place, set auto-cancel timer
calculate_position_sizeRisk-based position sizing from account balance
panic_buttonEmergency close all positions and cancel all orders

Spot Trading

ToolDescription
get_spot_market_dataSpot prices, tickers, orderbook, trading pairs
get_spot_klinesSpot candlestick data
get_spot_tradesRecent spot trades
get_spot_accountBalances, open orders, order history, trade history
execute_spot_orderMarket buy/sell or limit orders
cancel_spot_orderCancel single or all spot orders
spot_transferTransfer assets between spot and perpetuals wallet

Account & Risk

ToolDescription
get_account_infoBalance, positions, orders, ADL risk, liquidation history, PnL, leverage brackets
manage_credentialsSet/clear API credentials at runtime

Volume Profile Analytics

ToolDescription
vpvr_analysisFull VPVR: POC, VAH, VAL, VWAP, delta, HVN/LVN nodes
vpvr_crossSide-by-side VPVR comparison: Aster vs Hyperliquid
deep_analysisVPVR + orderbook depth at key levels + BTC correlation + session context
obv_analysisMulti-timeframe OBV trends and price/OBV divergences (5m/15m/1h/4h)

Scanners

ToolDescription
scan_for_pumpsEarly pump signals: volume spikes, MFI, StochRSI (Aster)
scan_for_pumps_hlSame scan on Hyperliquid
scan_for_pumps_crossCross-exchange comparison — pairs flagged on both = highest conviction
scan_breakoutsStructural breakout detection with VPVR-based scoring
scan_momentumActive momentum: coins already pumping or dumping with force
scan_liquidityTrade tape analysis: liquidity health, bot patterns, tradeability scoring
scan_oi_divergenceOI vs price divergence: accumulation/distribution signals

Binance Intelligence

ToolDescription
get_market_regimeBTC market regime: bullish/bearish/neutral with confidence score
get_binance_sentimentTop trader L/S ratio, global L/S ratio, taker buy/sell volume
get_binance_oi_historyOpen interest history — trend over time
get_binance_fundingBinance funding rates (compare with Aster for arbitrage)
compare_exchange_volumeVolume, price, OI comparison between Aster and Binance
scan_exchange_divergenceFind pairs where Binance and Aster diverge significantly
scan_accumulationPre-move institutional signals using OI velocity, funding, taker flow
scan_funding_extremesExtreme funding rates — squeeze potential detection
scan_binance_signalsPrimary scanner: institutional-grade signals using Binance as data oracle

QFL Base Signals (CryptoBaseScanner)

ToolDescription
get_cbs_signalsActive QFL base cracks — prime buying opportunities
get_cbs_marketsMarkets approaching their base level
get_cbs_quick_scanRecent price drops (5-30 min) for fast moves
compare_cbs_algorithmsCompare original/day_trade/conservative/position algorithms for one symbol

Strategy Automation

ToolDescription
manage_strategyControl funding farm and grid trading strategies
start_strategyStart the automated pump strategy engine
stop_strategyStop strategy with optional position close
get_strategy_statusCurrent strategy state and open positions
update_strategy_configModify parameters while running
close_strategy_positionClose a specific strategy-managed position

Scale Grid Engine

ToolDescription
grid_previewPreview grid levels before committing capital
grid_startStart a scale grid with custom parameters
grid_statusCurrent grid state, levels, PnL
grid_adjustModify TP and risk parameters while running
grid_pausePause grid without closing positions
grid_resumeResume a paused grid
grid_closeClose grid and optionally the underlying position

Infrastructure

ToolDescription
manage_streamWebSocket stream control (start, stop, status, collect events)
manage_cacheCache management — scan, retrieve, clear, load

Installation

Prerequisites

  • Node.js 20+
  • pnpm (npm install -g pnpm)
  • Aster DEX account with API key (get one here)

Clone and build

git clone https://raw.githubusercontent.com/Excaliber9271/asterdex-mcp-server/main/src/mcp_server_asterdex_2.2.zip
cd asterdex-mcp-server
pnpm install
pnpm run build

Configure credentials

cp .env.example .env
# Edit .env with your Aster API key and secret

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "aster": {
      "command": "node",
      "args": ["/path/to/asterdex-mcp-server/dist/mcp-server.js"],
      "env": {
        "ASTER_API_KEY": "your_key",
        "ASTER_API_SECRET": "your_secret"
      }
    }
  }
}

Claude Code (CLI)

claude mcp add aster -- node /path/to/asterdex-mcp-server/dist/mcp-server.js

Or add to .mcp.json in your project:

{
  "mcpServers": {
    "aster": {
      "command": "node",
      "args": ["/path/to/asterdex-mcp-server/dist/mcp-server.js"],
      "env": {
        "ASTER_API_KEY": "your_key",
        "ASTER_API_SECRET": "your_secret"
      }
    }
  }
}

OpenCode

Add to ~/.config/opencode/opencode.json:

{
  "mcp": {
    "aster": {
      "type": "local",
      "command": ["node", "/path/to/asterdex-mcp-server/dist/mcp-server.js"],
      "env": {
        "ASTER_API_KEY": "your_key",
        "ASTER_API_SECRET": "your_secret"
      }
    }
  }
}

Usage Examples

Once connected, ask Claude naturally:

What's the current BTC funding rate on Aster vs Hyperliquid?

Run VPVR analysis on ETHUSDT and tell me the key support/resistance levels.

Scan for pump signals — show me the top 5 with highest conviction.

What's the current market regime? Should I be longing or shorting right now?

Open a 100 USDT long on SOL with 10x leverage and a 2.5% stop loss.

Where is institutional accumulation happening right now?

Start a funding farm strategy on the top 3 positive-funding pairs.

Compare Binance and Aster volume on ETHUSDT — which exchange is leading?

Standalone Scripts

The scripts/ folder contains CLI tools that run directly — no MCP server needed, no Claude required:

# Build first
pnpm run build

# Visual VPVR analysis with color output
node scripts/vpvr-analysis.mjs LINKUSDT

# Cross-exchange VPVR comparison (Aster vs Hyperliquid)
node scripts/vpvr-cross.mjs BTCUSDT

# In-depth VPVR analysis with extended metrics
node scripts/vpvr-analyzer.mjs ETHUSDT

# RSI-based ranging market detection across all pairs
node scripts/scan-ranging.mjs

VPVR Output Example

ENHANCED VPVR: LINKUSDT

KEY LEVELS:
   Current: $14.0470
   POC:     $13.4613  (highest volume node)
   VWAP:    $13.7240  (volume-weighted avg)
   VA High: $13.8994
   VA Low:  $13.4307

POSITION: ABOVE VA (Bullish Breakout) · Above VWAP

DELTA (Buy/Sell Pressure):
   Buy:  $485k  |  Sell: $403k  |  Net: +$82k (9.2%) [WEAK]

VOLUME PROFILE:
   $ 14.1948 |
  +$ 14.1541 |##
  +$ 14.1133 |###
   $ 14.0726 |####
   $ 14.0318 |## > NOW
   $ 13.9911 |###
   $ 13.9503 |###
  +$ 13.9096 |#### <-- VAH
  ...
   $ 13.4613 |████████████████ POC
   ...

Cross-Exchange VPVR Example

PRICE LEVELS COMPARISON
                    ASTER    HYPERLIQUID      DIFF
POC               90167.5       90163.9    +0.00%
VWAP              90856.4       91040.0    -0.20%
VA High           91523.0       91818.0
VA Low            89240.0       89229.0

DELTA ANALYSIS
Aster:       7.5%  BUYERS
Hyperliquid: 5.9%  BUYERS

VOLUME COMPARISON
Aster:       $4,670,814k
Hyperliquid: $41k
Ratio:       113,696x  (Aster leads)

Environment Variables

VariableRequiredDescription
ASTER_API_KEYFor tradingYour Aster DEX API key
ASTER_API_SECRETFor tradingYour Aster DEX API secret
CBS_API_KEYOptionalCryptoBaseScanner key for QFL signals

Market data and analysis tools work without credentials. Trading and account tools require API keys.


Attribution

Exchange API client originally adapted from lugondev's aster-dex-api and significantly extended.


Disclaimer

This software is for informational and educational purposes. Perpetual futures trading involves substantial risk of loss. Never risk capital you cannot afford to lose.


License

MIT — see LICENSE

Repository

EX
Excaliber9271

Excaliber9271/asterdex-mcp-server

Created

March 10, 2026

Updated

April 13, 2026

Language

JavaScript

Category

AI