BASTION BASTION
MCP PROTOCOL // AGENT INTELLIGENCE LAYER

your agent.
our arsenal.

Connect your Claude agent to BASTION's 147 MCP tools and 560+ real-time signals. Your agent thinks. BASTION sees.

Works with Claude
Powered by BASTION AI
0 MCP Tools
0 Live Signals
0 AI Model
<3s Latency
// GETTING_STARTED

setup in 4 steps

From zero to a working AI agent in under 2 minutes.

1

Create Account

Sign up at bastionfi.tech. Free tier includes all 147 MCP tools.

Sign up →
2

Get API Key

Go to Account → API Keys. Click Generate. Copy your bst_ key.

Generate key →
3

Add to Claude

Paste 3 lines of JSON into your Claude Code or Desktop config. See below.

30 seconds
4

Start Talking

Tell Claude: "Use BASTION to check BTC risk". Your agent handles the rest.

See example prompts ↓
// ARCHITECTURE

how it works

Your Claude agent connects to BASTION via MCP. It gets intelligence. It makes decisions. You stay in control.

STEP 01

Your Claude Agent

Add 3 lines of JSON to your Claude Code or Claude Desktop config. Your agent instantly gets access to 147 tools — risk evaluation, market data, whale tracking, derivatives flow, and more.

30 seconds. No SDK. No wrapper.
BASTION
STEP 02

BASTION Intelligence

Your agent calls BASTION tools via MCP to analyze markets, evaluate positions, track whales, read order flow — all the data a human trader would need, delivered in milliseconds.

560+ signals. 147 tools. Real-time.
STEP 03

Agent Takes Action

Your agent decides what to do based on BASTION intelligence — hold, exit, take profit, reduce size. It uses YOUR exchange API to execute. BASTION never touches your funds.

Your keys. Your agent. Your control.
// QUICKSTART

connect in 30 seconds

Choose your Claude client. Paste the config. Done.

Claude Code
CLI TERMINAL
~/.claude/.mcp.json
{
  "mcpServers": {
    "bastion": {
      "type": "sse",
      "url": "https://bastionfi.tech/mcp/sse"
    }
  }
}

// ─── OR use Streamable HTTP (newer protocol) ───
{
  "mcpServers": {
    "bastion": {
      "type": "streamable-http",
      "url": "https://bastionfi.tech/mcp/stream"
    }
  }
}

1. Save this to ~/.claude/.mcp.json

2. Restart Claude Code

3. Ask: "Use BASTION to check BTC risk"

FOR YOUR OWN POSITIONS

A. Create account at bastionfi.tech

B. Connect your exchange (Account → Exchange Connections)

C. Generate an API key (Account → API Keys)

D. Tell Claude: "Check my positions with BASTION, my api_key is bst_..."

Test Your Connection
// COPY_PASTE_PROMPTS

talk to your agent

Copy these prompts directly into Claude Code or Claude Desktop. Your agent knows what to do.

Replace bst_YOUR_KEY with your actual API key from Account → API Keys. Public tools work without a key.

Risk Evaluation

Requires API key + connected exchange

Use BASTION with my api_key bst_YOUR_KEY to check all my open positions. For each position, run a full risk evaluation. Tell me which ones I should hold, take profit on, or exit. Give me clear reasoning for each.
Whale Intelligence

No API key needed — on-chain + derivatives data

Use BASTION to check whale activity, open interest changes, CVD, funding rate anomalies, and the liquidation heatmap for ETH. Are whales accumulating or distributing? Is there a liquidation cluster nearby that could cause a squeeze?
Research Report

No API key needed — generates institutional-grade report

Use BASTION to generate a comprehensive research report on SOL. Pull market data, derivatives flow (OI, CVD, funding, taker ratio), whale activity, exchange flows, macro signals, and fear/greed. Format it like an institutional research note with a final recommendation.
Pre-Trade Check

No API key needed — validates trade idea with data

I'm thinking about going LONG on BTC at this level with 5x leverage. Use BASTION to check if this is a good idea. Look at the volatility regime, funding rates, OI trend, whale positioning, and liquidation clusters. Give me a go/no-go with your reasoning.
Continuous Monitor

Requires API key — loop-based portfolio guard

Use BASTION with my api_key bst_YOUR_KEY. Every 5 minutes: check all my open positions, run risk evaluation on each one, and alert me immediately if any position gets an EXIT, REDUCE, or TP_PARTIAL recommendation. Keep running until I tell you to stop.

These are just starting points. Your Claude agent can combine any of BASTION's 147 tools creatively.

Try prompts in the Playground
// 147_MCP_TOOLS

what your agent can do

147 tools across 10 categories. Everything a professional crypto trader would want — delivered to your AI agent.

Core AI

72B parameter model evaluates positions, analyzes markets, and chats with institutional-grade intelligence.

bastion_evaluate_risk
bastion_chat
bastion_evaluate_all_positions
bastion_scan_signals

Derivatives & Flow

Open interest, CVD, funding rates, liquidation heatmaps, taker ratio, top trader positions — the signals that move price.

bastion_get_open_interest
bastion_get_cvd
bastion_get_heatmap
+ 7 more tools

On-Chain & Intel

Whale wallet tracking across 11 blockchains, exchange flows, on-chain analytics, sentiment, and breaking news.

bastion_get_whale_activity
bastion_get_exchange_flow
bastion_get_fear_greed
+ 3 more tools

Portfolio & Trading

Read positions, check balances, monitor the risk engine, view execution history — full portfolio awareness for your agent.

bastion_get_positions
bastion_get_balance
bastion_engine_status
+ 5 more tools
// AGENT_WORKFLOWS

example workflows

Real examples of what your Claude agent can do with BASTION intelligence.

RISK MONITOR WORKFLOW

Check all my positions every 5 minutes. If BASTION says EXIT or REDUCE, alert me on Telegram.

bastion_get_positions→ fetch open positions
bastion_evaluate_risk→ AI evaluates each
if action != HOLD→ send alert
loop every 5 min→ never stop watching
MARKET SCANNER WORKFLOW

Scan BTC, ETH, SOL every hour. Show me whale activity, funding anomalies, and liquidation clusters.

bastion_get_whale_activity→ whale moves
bastion_get_funding_rates→ funding anomalies
bastion_get_heatmap→ liquidation clusters
bastion_chat→ AI synthesizes report
RESEARCH ANALYST WORKFLOW

Generate an institutional-grade research report on ETH with market structure, on-chain data, and macro context.

bastion_get_market_data→ market structure
bastion_get_onchain→ on-chain analytics
bastion_get_macro_signals→ macro context
bastion_generate_report→ full PDF report
TRADE EVALUATOR WORKFLOW

Before I enter any trade, check the risk. Look at whale activity, OI changes, and funding. Give me a go/no-go.

bastion_get_oi_changes→ positioning shifts
bastion_get_whale_activity→ smart money
bastion_get_volatility→ regime check
bastion_evaluate_risk→ final AI verdict
// WHY_BASTION

why developers choose us

Intelligence without custody. Your keys, your agent, your control.

Zero Custody

BASTION never holds funds. Your agent uses YOUR exchange API keys. We provide intelligence, not custody.

Your Compute

Your agent runs on YOUR Claude API. You control the compute budget, the frequency, and the trading logic.

Native MCP

No SDK. No wrapper. No boilerplate. Claude agents speak MCP natively. Add 3 lines of config and go.

560+ Signals

Derivatives, on-chain, whale tracking, market structure, macro — institutional-grade data your agent can't get anywhere else.

Built for Claude Native MCP Integration
Model Context Protocol SSE Transport — Real-Time
Anthropic Ecosystem Claude Code & Desktop
MCP server is live

give your agent
a brain.

147 MCP tools. 560+ live signals. 72B AI model. Connect in 30 seconds. No SDK required.

Powered by Claude × BASTION