Jupiter MCP

Jupiter MCP

A Model Context Protocol server for fast swaps and limit orders on Solana using Jupiter API.

0
Stars
3
Forks
0
Watchers
2
Issues
Jupiter MCP provides a Model Context Protocol (MCP) server that integrates with Solana's Jupiter API, enabling both immediate swaps via Ultra API and limit orders via Trigger API. It offers easy installation options, including a pre-built desktop extension and automated environment variable handling for secure key management. The tool supports multiple configuration approaches, allowing for quick deployment through Claude Desktop or integration with MCP clients via direct installation links or .env files.

Key Features

Model Context Protocol (MCP) server implementation
Immediate swap execution via Jupiter Ultra API
Limit order support through Trigger API
Pre-built desktop extension for Claude Desktop
Automated dependency management with uvx
Secure environment variable configuration for keys
Multiple installation options including Cursor and manual config
Built-in error handling and debugging
Automatic DXT updates on every commit
Flexible integration with MCP clients

Use Cases

Executing immediate swaps on Solana through decentralized exchange aggregation
Setting up and executing limit orders on Solana
Integrating Solana trading capabilities into MCP-compatible AI workflows
Managing private keys securely during crypto operations
Automating trading strategies in desktop or AI environments using MCP protocol
Rapid deployment of DEX aggregator servers with managed dependencies
Debugging and monitoring Solana trade execution in development environments
Customizing swap and order routing for advanced trading algorithms
Configuring secure, headless trading bots for Solana DEXs
Leveraging Jupiter API features via standardized protocol integration

README

Jupiter MCP

A Model Context Protocol server for Jupiter API, Solana's premier DEX aggregator. Supports immediate swaps through Ultra API and limit orders through Trigger API.

πŸ“¦ Pre-built Desktop Extension (DXT)

Prerequisites

Before installing the extension, ensure you have:

  1. Node.js and npx (for envmcp support)

  2. uv/uvx (Python package manager)

Once you have prereqs for easy installation in Claude Desktop:

Download jupiter-mcp-latest.dxt πŸ“₯

The DXT includes:

  • βœ… One-click installation in Claude Desktop
  • βœ… Automatic dependency management with uvx
  • βœ… Secure environment variable configuration
  • βœ… Built-in error handling and debugging

Note: The DXT file is automatically updated on every commit for the latest features and fixes.

πŸš€ Quick Installation Options

Option 1: Claude Desktop DXT (Recommended) πŸ–±οΈ

Download the DXT file and double-click to install. See dxt/README.md for detailed instructions.

Option 2: Quick Install with Cursor 🎯

Instructions:

  1. Copy the link below (click the copy button in the code block)
  2. Paste it into your browser address bar or Cursor's command palette
  3. Follow the prompts to complete installation
  4. You'll be prompted to replace REPLACE_THIS with your actual solana private key!

πŸš€ Install with Direct Input:

cursor://anysphere.cursor-deeplink/mcp/install?name=jupiter-mcp&config=eyJjb21tYW5kIjoidXZ4IiwiYXJncyI6WyItLWZyb20iLCJnaXQraHR0cHM6Ly9naXRodWIuY29tL2FyYWE0Ny9qdXBpdGVyLW1jcCIsImp1cGl0ZXItbWNwIl0sImVudiI6eyJQUklWQVRFX0tFWSI6IlJFUExBQ0VfVEhJUyIsIlNPTEFOQV9SUENfVVJMIjoiaHR0cHM6Ly9hcGkubWFpbm5ldC1iZXRhLnNvbGFuYS5jb20iLCJTT0xBTkFfTkVUV09SSyI6Im1haW5uZXQtYmV0YSIsIlJFUVVFU1RfVElNRU9VVCI6IjMwIn19

Note: These links only work in Cursor

Manual config for .env file approach:

json
{
  "mcpServers": {
    "jupiter-mcp": {
      "command": "npx",
      "args": [
        "envmcp",
        "--env-file",
        "/path/to/your/.env",
        "uvx",
        "--from",
        "git+https://github.com/araa47/jupiter-mcp",
        "jupiter-mcp"
      ]
    }
  }
}

Replace /path/to/your/.env with your actual env file path (e.g., /Users/yourname/.env)

Pre-configured values:

  • SOLANA_RPC_URL: https://api.mainnet-beta.solana.com
  • SOLANA_NETWORK: mainnet-beta
  • REQUEST_TIMEOUT: 30 seconds
  • PRIVATE_KEY: You'll need to replace REPLACE_THIS with your base58 encoded private key

⚑ Quick Start (MCP Configuration)

Add this to your MCP client configuration:

json
{
  "mcpServers": {
    "jupiter-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/araa47/jupiter-mcp",
        "jupiter-mcp"
      ],
      "env": {
        "SOLANA_RPC_URL": "https://api.mainnet-beta.solana.com",
        "PRIVATE_KEY": "${PRIVATE_KEY}",
        "SOLANA_NETWORK": "mainnet-beta",
        "REQUEST_TIMEOUT": "30"
      }
    }
  }
}

Alternative Configuration (Using .env file)

If you prefer to load environment variables from a .env file to avoid storing sensitive data in your MCP configuration:

json
{
  "mcpServers": {
    "jupiter-mcp": {
      "command": "npx",
      "args": [
        "envmcp",
        "--env-file",
        "${ENV_FILE_PATH}",
        "uvx",
        "--from",
        "git+https://github.com/araa47/jupiter-mcp",
        "jupiter-mcp"
      ],
      "env": {
        "ENV_FILE_PATH": ".env"
      }
    }
  }
}

This approach uses envmcp to securely load your PRIVATE_KEY from a .env file without exposing it in configuration files. Replace ENV_FILE_PATH with the absolute path to your .env file (e.g., /Users/yourname/.env or /home/user/.env).

Environment Variables Required:

  • PRIVATE_KEY: Your base58 encoded Solana private key (from Phantom wallet export)
  • Optional: Override SOLANA_RPC_URL if you have a custom RPC endpoint

πŸŽ‰ Available Tools

πŸ’± Ultra API (Immediate Swaps)

Tool Description Parameters Cost
get_swap_quote Get a swap quote and unsigned transaction input_mint, output_mint, amount FREE
execute_swap_transaction Execute a signed swap transaction transaction, request_id PAID
get_balances Get token balances for a wallet wallet_address? FREE
get_shield Get token security information mints FREE
search_token Search for tokens query FREE

πŸ“Š Trigger API (Limit Orders)

Tool Description Parameters Cost
create_limit_order Create a limit order transaction input_mint, output_mint, making_amount, taking_amount, slippage_bps?, expired_at? FREE
execute_limit_order Execute a limit order transaction transaction, request_id PAID
cancel_limit_order Cancel a single limit order order FREE
cancel_limit_orders Cancel multiple limit orders orders? FREE
get_limit_orders Get active/historical limit orders order_status, wallet_address?, input_mint?, output_mint?, page? FREE

Key Differences: Swaps vs Limit Orders

  • Swaps (Ultra API): Execute immediately at current market price
  • Limit Orders (Trigger API): Execute automatically when your target price is reached

πŸ› οΈ Development & CI/CD

Automated DXT Building

This project includes automated DXT building integrated with pre-commit hooks:

  • Pre-commit Hook: Automatically builds DXT files when changes are made to dxt/ folder
  • Simple Naming: Always creates jupiter-mcp-latest.dxt for easy downloads
  • Auto-update: The latest DXT file is always current with the main branch

Manual DXT Build

bash
# Build DXT
./scripts/build-dxt.sh

# Output: jupiter-mcp-latest.dxt

Pre-commit Setup

bash
# Install pre-commit hooks (includes DXT building)
pre-commit install

# The DXT will be automatically built when changes are detected in:
# - dxt/ directory
# - scripts/build-dxt.sh

πŸ”§ Alternative Installation (Development)

For local development or testing:

Prerequisites

  • Python 3.12+
  • uv for dependency management
  • direnv

Setup

bash
git clone https://github.com/araa47/jupiter-mcp
cd jupiter-mcp
direnv allow
cp .env.example .env
# Edit .env with your configuration

Environment Variables (.env file)

bash
SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
PRIVATE_KEY=your_base58_encoded_private_key_here
SOLANA_NETWORK=mainnet-beta
REQUEST_TIMEOUT=30

Local Development Usage

bash
# Start the server locally
uv run python run_server.py

πŸ§ͺ Testing

The project includes comprehensive testing with safety features:

Test Types

πŸ†“ Free Tests (Default - No SOL spent):

  • Mock execution tests
  • API quote/balance checks
  • Token searches and security checks
  • Error handling validation

πŸ’° Paid Tests (Requires --run-paid-tests flag):

  • Real trade execution on mainnet
  • Swap tests: Uses tiny amounts (0.0001 SOL β‰ˆ $0.015)
  • Limit order tests: Creates orders 20% above market price
    • Uses 0.04 SOL (β‰ˆ $6) to meet minimum requirements
    • Orders won't execute at the high price
    • Automatically cancelled after verification
  • Full transaction signing and broadcasting

Running Tests

bash
# Safe tests only (default)
uv run pytest tests/ -v

# Include real trade execution (spends tiny amounts)
uv run pytest tests/ -v --run-paid-tests

# Test with detailed output
uv run pytest tests/ -v --run-paid-tests -s

Test Safety Features

  • Paid tests clearly marked with @pytest.mark.paid
  • Minimal trade amounts for real execution
  • Limit orders use out-of-range prices that won't execute
  • Clear warnings before spending real money
  • Transaction confirmations with blockchain signatures

πŸ’‘ Important Notes

Free vs Paid Operations

  • πŸ†“ FREE: get_swap_quote, get_balances, get_shield, search_token, create_limit_order, cancel_limit_order, cancel_limit_orders, get_limit_orders - API calls only
  • πŸ’° PAID: execute_swap_transaction, execute_limit_order - Executes real trades and spends SOL

Automatic Referral System

  • All orders include a 255 basis point (2.55%) referral fee (maximum allowed)
  • Referral wallet: 8cK8hCyRQCp52nVuPLnLL71afkRvRcFibSwHMjGFT8bm (Referral Dashboard)
  • Note: Fees only collected for tokens with referral token accounts (currently SOL)
  • Supports development and maintenance

Security

  • πŸ” Private keys never leave your machine
  • πŸ›‘οΈ All API calls use HTTPS
  • ⚠️ Never commit .env files to version control

πŸ› Troubleshooting

Common Issues

  1. "PRIVATE_KEY environment variable is required"
    • Copy env.example to .env and set your private key
  2. "Invalid PRIVATE_KEY format"
    • Use base58 encoded private key (from Phantom wallet export)
  3. Connection timeouts
    • Try different RPC URL or increase REQUEST_TIMEOUT

πŸŽ‰ Ready to Trade!

Your Jupiter MCP server is ready for Solana DeFi interactions! πŸš€

Star History

Star History Chart

Repository Owner

araa47
araa47

User

Repository Details

Language Python
Default Branch main
Size 311 KB
Contributors 1
MCP Verified Nov 12, 2025

Programming Languages

Python
96.64%
Shell
3.36%

Tags

Join Our Newsletter

Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.

We respect your privacy. Unsubscribe at any time.

Related MCPs

Discover similar Model Context Protocol servers

  • Jupiter MCP Server

    Jupiter MCP Server

    Solana token swap execution via Jupiter's Ultra API using MCP.

    Jupiter MCP Server enables the execution of token swaps on the Solana blockchain through Jupiter’s Ultra API, integrating DEX routing and RFQ for optimal pricing. It fetches swap orders and executes transactions, handling slippage, priority fees, and transaction confirmations. The system is designed to operate within the Model Context Protocol, exposing tool interfaces for structured input and output. Node.js 18+ and access to a Solana wallet and RPC node are required.

    • ⭐ 21
    • MCP
    • kukapay/jupiter-mcp
  • Sui Trader MCP

    Sui Trader MCP

    MCP server enabling automated token swaps on the Sui blockchain.

    Sui Trader MCP acts as an MCP server designed for AI agents to conduct optimal token swaps on the Sui blockchain. It integrates with the Cetus Aggregator to execute swaps on the Sui mainnet, utilizing secure Bech32 private key management. The tool supports configuration for MCP-compatible clients, allowing seamless invocation of swap operations. Built with Node.js, it provides a reliable interface between AI-driven applications and blockchain-based token swap functionality.

    • ⭐ 4
    • MCP
    • kukapay/sui-trader-mcp
  • PumpSwap MCP Server

    PumpSwap MCP Server

    MCP server for real-time Solana token trades and pool data.

    PumpSwap MCP Server allows AI agents to interact with the PumpSwap DEX on Solana for automated, real-time token swaps and on-chain trading operations. It exposes commands for buying and selling tokens, querying token prices, and retrieving liquidity pool information. Designed for secure integration with Solana accounts, it enables customizable slippage and transaction fees while supporting context-driven, AI-issued commands. The server operates as a bridge between AI agents and the PumpSwap protocol, facilitating seamless trading and data queries.

    • ⭐ 5
    • MCP
    • kukapay/pumpswap-mcp
  • CCXT MCP Server

    CCXT MCP Server

    Unified Model Context Protocol gateway for cryptocurrency exchange integration

    CCXT MCP Server provides a high-performance gateway integrating multiple cryptocurrency exchanges with language models via the Model Context Protocol (MCP). It connects LLMs, such as Claude and GPT, to real-time market data and trading operations through a standardized interface. Leveraging the CCXT library, it supports various exchanges, different market types, advanced caching, and proxy configuration options. The server is optimized for maintainability with modular architecture, enabling seamless interaction and extensibility.

    • ⭐ 117
    • MCP
    • doggybee/mcp-server-ccxt
  • DexPaprika MCP Server

    DexPaprika MCP Server

    On-demand DEX and cryptocurrency data server for AI assistants like Claude.

    DexPaprika MCP Server provides a Model Context Protocol (MCP) interface for accessing real-time cryptocurrency and decentralized exchange (DEX) data. It enables AI assistants, particularly Claude, to query live token, pool, and DEX information without requiring API keys or prior configuration. The server integrates easily with Claude Desktop and supports batched token price queries, network-specific analytics, and technical analysis tools. Installation is streamlined via Smithery or npm, and it is designed to deliver fast, scalable, and relevant market data to AI systems.

    • ⭐ 30
    • MCP
    • coinpaprika/dexpaprika-mcp
  • Codex MCP Server

    Codex MCP Server

    An MCP-compatible server delivering enriched blockchain data for AI models.

    Codex MCP Server implements the Model Context Protocol to provide enriched blockchain data from Codex. It is compatible with MCP clients such as Claude Desktop and Claude CLI, allowing seamless integration in AI workflows that require blockchain context. Users can run the server locally or via npx, and configure it for various MCP-compatible tools using their Codex API key.

    • ⭐ 20
    • MCP
    • Codex-Data/codex-mcp
  • Didn't find tool you were looking for?

    Be as detailed as possible for better results