What is An MCP server for executing token swaps on the Solana blockchain using Jupiter's new Ultra API.?
Jupiter MCP Server is designed for executing token swaps on the Solana blockchain, utilizing Jupiter's Ultra API for optimal pricing through DEX routing and RFQ. It supports features like fetching swap orders, executing swaps, and handling transaction details.
Documentation
Jupiter MCP Server
An MCP server for executing token swaps on the Solana blockchain using Jupiter's new Ultra API.
Features
Fetch swap orders from Jupiter's Ultra API, combining DEX routing and RFQ (Request for Quote) for optimal pricing.
Execute swaps via Jupiter's Ultra API, handling slippage, priority fees, and transaction landing.
Prerequisites
Node.js: Version 18 or higher (for native fetch support).
Solana Wallet: A private key (base58-encoded) for signing transactions.
RPC Endpoint: Access to a Solana RPC node (e.g., https://api.mainnet-beta.solana.com).
Installation
Clone the Repository:
git clone https://github.com/kukapay/jupiter-mcp.git
cd jupiter-mcp
Install Dependencies:
Ensure you have the MCP Server package installed along with other required dependencies:
Description: Requests Jupiter to execute the swap transaction on behalf of the wallet owner, handling slippage, priority fees, and transaction landing.
Inputs:
requestId: Unique identifier from get-ultra-order.
transaction: Base64-encoded transaction from get-ultra-order.
Output: JSON with status, transactionId, slot, inputAmountResult, outputAmountResult, swapEvents.
Example Interaction
Below are examples of interacting with the server using natural language prompts and expected responses:
Fetching a Swap Order
Prompt: "Get a swap order to trade 1.23 SOL for USDC."