Astralane MCP
The only MCP you need on solana.
The Astralane MCP Server connects your AI assistant directly to Astralane's Solana infrastructure. Ask Claude, Cursor, Gemini, or any MCP-compatible AI to check endpoint latency, optimize tips, protect swaps from sandwich attacks, build bundles, and generate production-ready integration code: without leaving your chat window.
No API key required to connect. No authentication. Just add the URL and start.
Server URL
https://mcp.astralane.ioTransport: SSE (Server-Sent Events) over HTTPS.
Connect Your AI Client
Claude Code (CLI)
claude mcp add astralane --transport sse https://mcp.astralane.ioAppend --scope user to apply globally across all projects, or --scope project to write a .mcp.json in the current directory.
Manual config (~/.claude.json or .claude/settings.json):
{
"mcpServers": {
"astralane": {
"url": "https://mcp.astralane.io"
}
}
}Claude Code is the most capable client for Astralane workflows: it runs shell commands natively, so tools that return bash scripts (latency tests, health checks, transaction lookups) execute automatically without copy-pasting.
VS Code
Or create .vscode/mcp.json in your project:
Cursor
Inject config from the terminal:
Or go to Settings → Features → MCP → + Add new MCP server and enter:
Name:
astralane· Type:sse· URL:https://mcp.astralane.io
Windsurf
Windsurf uses "serverUrl" instead of "url":
Global path: OS application support directory under Windsurf settings.
Gemini CLI
Open ~/.gemini/settings.json:
OpenAI Codex (CLI)
Or via ~/.codex/config.toml:
Custom Agents (Python / Node)
Python MCP SDK:
Node.js MCP SDK:
Quick Reference
Claude Code
claude mcp add astralane --transport sse https://mcp.astralane.io
~/.claude.json
"url"
VS Code
code --add-mcp '{"type":"http","name":"astralane","url":"..."}'
.vscode/mcp.json
"url"
OpenAI Codex
codex mcp add astralane --url https://mcp.astralane.io
~/.codex/config.toml
url =
Cursor
file injection
~/.cursor/mcp.json
"url"
Windsurf
file injection
Windsurf settings JSON
"serverUrl"
Gemini CLI
file edit
~/.gemini/settings.json
"url"
Verify the Connection
After connecting, ask your AI:
"List all Astralane endpoints."
If the AI calls astralane_endpoints and returns a table of global gateways, the connection is active.
API Keys
Connecting to the MCP server requires no key. However, some tools generate code or commands that call external APIs: those require keys you obtain separately.
Astralane API key
All transaction submission tools (sendTransaction, sendBundle, sendIdeal, getNonce, QUIC, WebSocket)
Allora API key
astralane_allora_inference: AI price forecasting (optional; public preview works without a key)
No key required: DexScreener, RugCheck, Jito tip floor, pump.fun API, Solana public RPC.
Astralane Core Tools
Endpoint & Network
astralane_endpoints
List all global gateways with IP, region, datacenter, and ASN. Filter by EU / US / APAC / Global.
astralane_suggest_closest_endpoint
Returns a bash ping script to run locally. AI executes it, parses output, and reports the lowest-latency host.
astralane_health
Returns a curl health-check script for one or all endpoints. Confirms reachability and HTTP status.
astralane_recommend_endpoint
Given your use case (QUIC / WebSocket / binary / batch / bundle / single), returns the exact URL, path, protocol, and connection limits.
Tips & Fee Optimization
astralane_get_live_tips
Returns curl + WebSocket commands to fetch live tip percentiles (25th–99th) from tips.astralane.io. Jito fallback included.
astralane_tip_info
Returns all Astralane tip wallet addresses, minimum tip (10,000 lamports), and write-lock rotation advice.
astralane_optimize_tip_volume
Given target TPS, congestion level, and live tip data: returns the exact lamport amount to use.
astralane_optimize_tip_ratio
Calculates the optimal tip-to-priority-fee split for your goal: top_of_block, fast_landing, cost_optimal, or sendIdeal.
astralane_tip_write_lock_wallet
Given your transaction's writable accounts, returns a tip wallet that avoids write-lock contention: improves parallel execution.
astralane_estimate_rebates
Estimates monthly tip rebates based on transaction volume, submission method, and exclusivity routing.
Transaction Submission
astralane_get_nonce
Returns code to call getNonce and retrieve a managed durable nonce for sendIdeal.
astralane_check_transaction
Returns curl commands for getSignatureStatuses and getTransaction on a given signature.
astralane_send_ideal_builder
Step-by-step guide and TypeScript/Rust code for the sendIdeal dual-variant nonce-racing flow.
astralane_mev_bundle_builder
Complete guide and code for sendBundle: atomicity rules, tip placement, compute limits.
astralane_integration_guide
Full walkthrough for a given submission method (sendTransaction, sendBundle, sendIdeal, sendBatch).
MEV & Sandwich Protection
astralane_sandwich_protection
Configures mev-protect, dontFrontRun, and jitoDontFrontRun flags for your strategy (conservative / balanced / aggressive). Optionally queries the Solana leader schedule.
astralane_investigate_sandwich
Given a transaction signature and a SolTop API key, returns a 6-step forensic investigation: detects frontrun, backrun, sandwich, and validator collusion. Powered by SolTop.
Protocol Guides
astralane_quic_guide
QUIC implementation guide: connection setup, 64 concurrent streams, backpressure, MEV-protected port 9000 vs standard 7000.
astralane_websocket_guide
WebSocket guide: binary fire-and-forget, heartbeat handling, connection limits (5000/key, 2/IP), idle timeout.
astralane_binary_protocol_guide
/irisb binary endpoint: 2-byte length-prefixed frames, application/octet-stream, latency vs JSON-RPC.
astralane_tip_stream_guide
Guide to the tips.astralane.io/tip_stream WebSocket: 15-minute rolling percentile snapshots, rate limits, reconnect logic.
astralane_shredstream_guide
ShredStream setup: Tier 1 (0.2 SOL/24h) vs Tier 2 (0.5 SOL/24h), UDP shred reception, state reconstruction timing.
Documentation
astralane_docs
Queries Astralane documentation for any topic. Use for anything not covered by a specific tool.
astralane_subsidy_request
Generates a pre-filled message to request fee subsidies for high-volume operators.
Third-Party & Extended Tools
Tools in this section are powered by external APIs and bundled into the MCP server for a unified Solana development experience.
Solana RPC Tools
Standard JSON-RPC methods wrapped to return ready-to-execute curl commands. Works with any Solana RPC endpoint.
astralane_get_priority_fees
Priority fee estimates (low → very high) with lamport conversion. Requires Helius API key.
astralane_simulate_transaction
Dry-run a serialized transaction before submission.
Solana RPC
astralane_get_latest_blockhash
Fetch current blockhash with commitment level.
Solana RPC
astralane_get_balance
Check SOL balance for any pubkey.
Solana RPC
astralane_ledger_explorer
Query slot history, block production, and validator performance.
Solana RPC
astralane_whale_tracker
Commands to watch large wallet activity via getProgramAccounts.
Solana RPC
DexScreener & Token Intelligence
astralane_dexscreener_trending
Trending Solana pools and top-boosted tokens. Filter by minimum liquidity.
No
astralane_token_security
RugCheck risk score, freeze authority, mint authority, top holder concentration.
No
astralane_price_impact
Estimated price impact and slippage for a swap amount on a given pool.
No
Expert & Research Tools
astralane_sbpf_audit_guide
sBPF on-chain program security audit: top 5 vulnerabilities: missing signers, re-initialization, PDA injection, integer overflow.
:
No
astralane_allora_inference
AI-driven price inference and forecasting for a token mint across 5m / 1h / 24h timeframes.
Optional
External APIs Used
Astralane Iris
Transaction submission (sendTransaction, sendBundle, sendIdeal, sendBatch)
API key via ?api-key=
Astralane Tips
Live tip percentile snapshots and WebSocket stream
None
tips.astralane.io
Jito
Tip floor fallback when Astralane tips unavailable
None
bundles.jito.wtf/api/v1/bundles/tip_floor
Solana Mainnet RPC
Blockhash, balance, simulation, signature status
None
api.mainnet-beta.solana.com
Example Workflows
Find your fastest endpoint:
"Run a latency test to all Astralane endpoints and tell me which one I should use."
AI pings all gateways from your machine, reports the winner with datacenter and ASN for colocation planning.
Optimize tips in real time:
"Fetch the live tip floor and tell me the exact lamport amount for a swap that needs to land next slot."
AI fetches live percentiles from tips.astralane.io, applies your TPS tier and congestion multiplier, returns a specific lamport value.
Debug a failed transaction:
"My transaction [SIG] didn't land. Was it sandwiched?"
AI checks signature status, fetches full transaction details, then runs the SolTop sandwich investigation.
Build a bundle:
"Generate TypeScript for a 2-transaction arbitrage bundle with MEV protection."
AI generates complete sendBundle code with correct tip placement, atomicity rules, and write-lock-safe wallet selection.
Snipe a new token safely:
"Check token [MINT] for rug indicators, then set up sendIdeal for a fast snipe."
AI runs RugCheck, and if clean, generates the full sendIdeal dual-variant nonce flow.
Architecture Notes
The server is read-only and advisory:
No key handling. Private keys never touch the MCP server.
No proxying. RPC calls, latency tests, and market data queries run on your machine via returned scripts.
No stored state. Each session is independent.
Latency-sensitive operations (transaction submission, market data) stay local. The AI handles reasoning, code generation, and data interpretation.
Support
Discord: discord.gg/2UfWGtUDtN
Telegram: t.me/astralanecommunity
Portal: portal.astralane.io
Astralane Docs: astralane.gitbook.io/docs
Last updated