CONNECT YOUR CLAUDE AGENT TO
AUTONOMOUS RISK INTELLIGENCE.
BASTION MCP gives any Claude agent access to a fine-tuned 72 billion parameter AI model that analyzes 560+ real-time market signals — liquidations, whale flows, funding rates, order flow, VPVR, market structure — and returns specific trading actions with institutional-grade reasoning.
INSTALLATION
Run in your terminal — setup wizard handles everything:
npx bastion-agent
Checks Python, installs dependencies, validates your API key, and auto-configures Claude Code. 90+ tools live in seconds.
VERIFY CONNECTION
After installation, test by asking Claude:
"What's the current BTC price?"
Claude will call bastion_get_price automatically. If it works, you're connected.
49 TOOLS AVAILABLE
Each tool is called automatically when relevant to the conversation.
Evaluate a crypto futures position using BASTION's AI risk intelligence engine. Sends a position to the fine-tuned 72B model which analyzes 560+ real-time signals and returns a specific action with reasoning.
"Evaluate my BTC long: entered at $95,000, now $97,500, 10x leverage, stop $93k, TP1 $100k"
Ask BASTION's neural AI anything about crypto markets. Context-aware — knows current conditions, whale activity, structure.
"Is ETH a buy right now? What does the order flow look like?"Get the current live price of a cryptocurrency.
"What's the current SOL price?"Aggregated market intelligence: price, CVD, open interest, funding rates, volatility.
"Show me ETH market data — order flow, OI, funding, volatility"Liquidation data: recent events, clusters, cascade risk zones.
"Where are the BTC liquidation clusters? Any cascade risk?"Whale transactions across 11 blockchains. Tracks large transfers (>$1M) with exchange attribution.
"Show me whale transactions over $5M"Cross-exchange funding rates. Positive = longs paying shorts, negative = shorts paying longs.
No parameters required.
"What are the funding rates across exchanges?"Generate institutional-grade MCF Labs research report with ratings, conviction scores, target prices, risk factors, trade structures.
"Generate an institutional research report on SOL"List existing MCF Labs research reports. Filter by type or symbol.
"Show me the latest whale intelligence reports"Optimal position sizing with Monte Carlo simulation. 50,000 sims for TP/SL probability and expected value.
"Calculate position size: BTC long $95k, stop $93k, TP $100k, 5x leverage, $10k account"Open interest across exchanges. Rising OI = new money entering, falling OI = positions closing.
OI changes across all major pairs — identify where leveraged money is flowing. No parameters.
Cumulative Volume Delta — tracks aggressive buying vs selling pressure over time.
Detailed order flow — aggressive buyers vs sellers, large orders, and book imbalances.
Funding rate arbitrage — cross-exchange differentials for delta-neutral yield strategies.
Liquidation heatmap — shows where clusters are building. These act as price magnets.
Taker buy/sell ratio. >1 = aggressive buying, <1 = aggressive selling. Real-time sentiment.
Top trader positions — how the biggest traders on Binance/Bybit are positioned (long/short ratio).
Market maker gamma magnet levels — price levels where MM exposure creates pinning behavior.
Options data — OI, put/call ratio, max pain, notable flow indicating institutional positioning.
Exchange inflow/outflow — large inflows precede selling, outflows suggest accumulation.
On-chain metrics — active addresses, tx counts, MVRV, NVT, and other fundamental indicators. No parameters.
Aggregated crypto news from CoinDesk, Cointelegraph, and other major outlets.
Crypto Fear & Greed Index — 0 (extreme fear) to 100 (extreme greed). Composite sentiment. No parameters.
Macro market signals — DXY, yields, equity indices, gold, and their crypto correlation. No parameters.
BTC/ETH ETF flow data — daily net inflows/outflows tracking institutional buying and selling. No parameters.
Stablecoin market data — USDT/USDC/DAI supply, flows, and exchange reserves. Inflows precede buying. No parameters.
FRED economic data — rates, CPI, unemployment, GDP, and hundreds of macro indicators.
Polymarket prediction markets — regulatory decisions, ETF approvals, price targets.
All open positions across connected exchanges with entry, current price, PnL, and leverage. No parameters.
Total portfolio balance with per-exchange breakdown and available margin. No parameters.
List all connected exchanges with connection status. No parameters.
Run AI risk evaluation on ALL open positions simultaneously through the 72B model. No parameters.
Scan for trading signals across all supported pairs using the AI engine. No parameters.
Autonomous trading engine status — running state, armed status, config, and execution stats. No parameters.
Engine execution history — recent actions taken, positions evaluated, and reasoning.
Active risk alerts, liquidation warnings, whale alerts, and user price alerts. No parameters.
Candlestick OHLCV data for charting and analysis.
Volatility metrics + regime detection (low/normal/high/extreme) with ATR data.
Current trading session stats — win rate, PnL, trade count, and risk metrics. No parameters.
CHART GENERATION, DNA, STRESS, & MORE
Generate OHLCV candlestick chart as SVG. Server-side rendering — no client dependencies needed.
Volume Profile Visible Range heatmap as SVG. Shows price levels with highest trading activity.
Liquidation cluster heatmap visualization as SVG. Shows where leveraged positions will get liquidated.
Portfolio equity curve chart as SVG. Plots equity snapshots over time with drawdown overlay.
Encode position market conditions into a DNA fingerprint. Captures vol regime, funding, OI, fear/greed, and more into a compact feature vector for pattern matching.
Search stored DNA entries by symbol and direction. Returns matching fingerprints with outcomes.
Find historically similar positions by feature similarity. Cosine similarity matching against stored DNA fingerprints.
Monte Carlo stress test across disaster scenarios — crash, squeeze, cascade, black swan, rate hike. 5000 simulations per scenario.
Natural language to scenario parameters. Describe a market event and get structured simulation inputs.
Step-by-step liquidation cascade simulation. Models how an initial drop triggers cascading liquidations.
Data-driven counter-arguments against any trade. Fetches live signals and builds the strongest case against your thesis.
Challenge a specific trading thesis with live market signals. Lightweight version of devils_advocate.
Create alert from natural language. Example: "Alert me when BTC funding flips negative and OI drops 5%".
List all active smart alerts with parsed conditions and status.
Check all alerts against current market conditions. Returns triggered alerts.
Cancel a smart alert by ID.
List all 6 strategy personas — Conservative, Moderate, Aggressive, Scalper, Swing, DCA. Each has unique risk limits and rules.
Get full persona details — max leverage, position limits, drawdown tolerance, and decision rules.
Evaluate a trade through a persona's decision lens. Returns APPROVED/CAUTION/REJECT with violations and recommendations.
Full portfolio diagnostic — cross-position correlation matrix (48h hourly Pearson), concentration risk, net directional exposure, volatility sensitivity, cascade risk, portfolio risk grade A-F.
Allocate a max-loss risk budget across positions using volatility-adjusted sizing. Given total USD willing to lose, calculates optimal sizes, leverage limits, and stop distances.
Detect cross-asset correlation shocks. Compares 24h vs 72h Pearson correlations — delta > 0.3 flags a shock. Identifies decorrelation events and regime shifts.
Composite sentiment scoring. Weighted: fear/greed (20%), funding (25%), OI momentum (30%), volatility (25%). Temperature labels: OVERHEATED, HOT, WARM, COOL, COLD.
Generate a structured 24h trading plan from live market conditions. Determines bias, calculates S/R levels, generates entry scenarios with stops/TPs, position sizing, risk rules, and contingency plans.
Emergency kill switch — close ALL positions across all exchanges, cancel ALL orders, disarm autonomous engine, send notifications. Logs market state for post-mortem review. Irreversible.
Scan recent price history for flash crashes, sharp moves, volume anomalies, and wick traps. Returns ranked events with severity, move %, and timestamps for detailed autopsy.
Full forensic autopsy of a market event. Reconstructs timeline, identifies warning signals, calculates who got liquidated, analyzes volume patterns, and determines the optimal play in hindsight.
Generate your Risk DNA — behavioral fingerprint from trading history. Personality type (DISCIPLINED, SNIPER, GAMBLER, etc.), leverage profile, symbol preferences, direction bias, pattern detection.
Deep pattern mining — correlate outcomes against leverage ranges, symbol+direction combos, and setup tags. Finds your proven edges and your money-leaking patterns.
MCP RESOURCES
System status: model version, GPU health, API latency, services.
{
"model_version": "v6",
"model": "BASTION 72B",
"gpu_cluster": "4x NVIDIA H200 (564GB VRAM)",
"api_status": "operational"
}Full list of 30 supported cryptocurrency symbols with data coverage notes.
Model details: version, accuracy breakdowns, supported actions, data sources.
{
"version": "v6",
"model": "BASTION 72B",
"parameters": "72 billion",
"accuracy": { "combined": "75.4%", "btc": "71.7%", "eth": "72.7%", "sol": "81.8%" },
"infrastructure": "4x NVIDIA H200 (564GB VRAM)"
}REST API ENDPOINTS
Direct HTTP access to all BASTION services. Base URL: https://bastionfi.tech
These endpoints power the PULSE dashboard and are available for direct integration. All endpoints return JSON. Authentication required for account-specific operations.
■MARKET DATA
■INTELLIGENCE & ON-CHAIN
■RISK & TRADING
■ACCOUNT & TRADING ENGINE
Full API reference: bastionfi.tech/api/swagger — interactive Swagger UI with all 140+ endpoints.
ARCHITECTURE
Claude Agent
|
| SSE (Authorization: Bearer key)
v
BASTION MCP Server ── bastionfi.tech/mcp
|
v
BASTION API Gateway ── 560+ real-time endpoints
|
|── Derivatives Analytics ... OI, funding, liquidations, CVD
|── On-Chain Intelligence ... whale tracking (11 blockchains)
|── Market Structure ........ VPVR, pivots, auto-support
|── Live Price Feeds ........ multi-exchange aggregation
|
v
BASTION 72B Model ── 4x NVIDIA H200 (564GB VRAM)
|
v
Structured Response ──> back to Claude
API KEYS
An API key authenticates your Claude agent with BASTION MCP. Keys are passed via the Authorization header.
Authorization: Bearer bst_live_xxxxxxxxxxxxxxxxxxxx
RATE LIMITS
Rate limit headers included in every response. Exceeding returns 429.