jupiter-mcp

jupiter-mcp

An MCP server for executing token swaps on the Solana blockchain using Jupiter's new Ultra API.

22
Stars
11
Forks
0
Releases

Overview

Jupiter MCP Server is an MCP server that orchestrates token swap operations on Solana by interfacing with Jupiter’s Ultra API. It fetches swap orders by combining DEX routing and RFQ for optimal pricing, then constructs and signs transactions via a Solana wallet private key and a configured RPC endpoint. The server executes swaps through Jupiter’s Ultra API, handling slippage tolerance, priority fees, and transaction landing to maximize profitability and reliability. The system exposes Ultra API tools: get-ultra-order, which returns a signed transaction payload and pricing data; and execute-ultra-order, which submits the prepared transaction and returns status, transactionId, slot, and swap results. The README also shows an example configuration for the MCP client, including a mcpServers map with command, args, and environment variables SOLANA_RPC_URL and PRIVATE_KEY. Prerequisites include Node.js 18+ for native fetch, a Solana private key, and access to a Solana RPC node (e.g., https://api.mainnet-beta.solana.com). The installation steps cover cloning, npm install, and configuring the client. This MCP server targets Solana token swaps using Jupiter Ultra API to optimize pricing and execute orders.

Details

Owner
kukapay
Language
JavaScript
License
MIT License
Updated
2025-12-07

Features

Fetch swap orders via Jupiter Ultra API

Fetches a swap order from Jupiter's Ultra API, leveraging both DEX routing and RFQ for optimal pricing.

Execute swaps via Jupiter Ultra API

Requests Jupiter to execute the swap transaction on behalf of the wallet owner, handling slippage, priority fees, and transaction landing.

get-ultra-order tool inputs/outputs

Inputs: inputMint, outputMint, amount, slippageBps; Outputs: requestId, transaction (base64), inputMint, outputMint, inAmount, outAmount, price.

execute-ultra-order tool inputs/outputs

Inputs: requestId, transaction; Outputs: status, transactionId, slot, inputAmountResult, outputAmountResult, swapEvents.

Tags

SolanaJupiter Ultra APIMCPtoken swapsDEX routingRFQorder fetchingorder executionslippagepriority fees