Enables trading of perpetual futures on the Solana blockchain through Jupiter Perpetuals, providing tools for market data retrieval, portfolio management, and executing leveraged positions.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Jupiter Perps MCP ServerShow my current open positions and total unrealized PnL"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Jupiter Perps MCP Server
A Model Context Protocol server that enables AI agents to trade perpetual futures on Jupiter Perpetuals (Solana).
⚠️ DISCLAIMER This software is provided for educational and research purposes only. Trading perpetual futures involves substantial risk of loss and is not suitable for all investors. You are solely responsible for any trading decisions and losses incurred. The authors and contributors assume no liability for your use of this software. Use at your own risk with funds you can afford to lose.
Features
Market Data: Real-time prices, 24h statistics, and historical OHLCV candles
Portfolio Management: View USDC balance, open positions, PnL, and fees
Position Trading: Open, increase, and close leveraged positions (1.1x - 100x)
Fee Estimation: Calculate trading costs before execution
Transaction Safety: Automatic compute budget optimization and simulation
Supported assets: SOL, ETH, BTC
How It Works
Jupiter Perpetuals uses an oracle-based pricing model with a shared liquidity pool:
Pricing: Trades execute at oracle prices (Signal/Chainlink/Pyth), not order book prices
Liquidity: You trade against a pool of SOL, ETH, WBTC, USDC, USDT (not against other traders)
Slippage Protection:
MAX_SLIPPAGE_BPSprotects against oracle price movement during transaction executionFees:
Base trading fee + Price impact fee (protects liquidity providers)
Hourly borrow fees (instead of traditional funding rates)
This means large trades don't suffer from order book depth issues, but oracle price slippage can still occur if prices move during transaction confirmation.
Key Concepts
Position Model: Positions are identified by asset + side (e.g., "Long SOL"). You can only have one position per asset/side pair. The protocol automatically merges any additional opens into the existing position, increasing its size and adjusting entry price.
Collateral: All positions use USDC as collateral. For long positions, the protocol swaps USDC to the asset internally.
Fees: Trading fees (base + price impact) are paid when opening/increasing/closing positions. Borrow fees accrue hourly and are settled when modifying/closing. Use estimate_open_position before trading to understand total costs.
Trading: All trades execute at market price immediately (no limit orders). Tools return a transaction signature for logging purposes. The protocol processes positions asynchronously in a separate transaction - this may take a few seconds and can fail. Use get_account_portfolio to verify the position was successfully created.
Prerequisites
Node.js 18+
A Solana wallet with USDC for trading
Wallet private key (base58 encoded)
Installation
Configuration
Create a .env file:
Required settings:
Optional settings:
Usage
Local Testing
Quick verification with MCP inspector:
With Claude Code (Local)
Create .mcp.json in your project directory:
Or use ${workspaceFolder} for relative paths:
Remote Setup (Sandboxed Environment)
Run the MCP server as an HTTP service to isolate sensitive wallet keys from Claude Code. The wallet private key stays on the host machine, while Claude Code runs in a separate environment and can only trade through MCP tools.
1. On the host machine (with wallet access), configure
2. Start in HTTP mode:
Or set MCP_MODE=http in .env for deployment/automation.
3. In your sandboxed Claude Code environment, create
For different machines, replace localhost with the host IP (e.g., http://192.168.1.100:3000/mcp).
Security: The server binds to localhost by default. For remote access, use SSH tunneling, VPN, or firewall rules to control access.
4. Test the connection:
Available Tools
Market Data & Trading
Tool | Description |
| Current market prices, 24h stats, fees, and liquidity |
| Historical OHLCV data (5m, 15m, 1h, 4h, 1d, 1w) |
| USDC balance, positions, PnL, and fees to close |
| Calculate fees and resulting position before trading |
| Open or increase a leveraged position |
| Close an existing position at market price |
Technical Indicators
Tool | Description |
| RSI momentum oscillator (0-100, >70 overbought, <30 oversold) |
| MACD trend and momentum indicator |
| Bollinger Bands volatility and mean reversion indicator |
| ATR volatility measure for stop-loss placement |
| Exponential Moving Average (faster than SMA) |
| Simple Moving Average (classic trend indicator) |
| Stochastic momentum oscillator (0-100, >80 overbought, <20 oversold) |
Security
⚠️ Important Safety Notes
Never commit your
.envfileUse a dedicated wallet with limited funds
All positions use USDC as collateral
Review transaction details before confirming
Consider using a private RPC endpoint for production
License
MIT