jupiter-mcp server
MCP server for executing token swaps on the Solana blockchain using the Jupiter Ultra API, combining DEX routing and RFQ for optimal pricing.
Get this MCP server
MCP server for executing token swaps on the Solana blockchain using the Jupiter Ultra API, combining DEX routing and RFQ for optimal pricing.
Installation
From source code
git clone https://github.com/kukapay/jupiter-mcp.git
cd jupiter-mcp
npm install
Configuration
MCP client configuration
{
"mcpServers": {
"Jupiter-MCP": {
"command": "node",
"args": ["path/to/jupiter-mcp/server/index.js"],
"env": {
"SOLANA_RPC_URL": "solana rpc url you can access",
"PRIVATE_KEY": "your private key"
}
}
}
}
Available tools
| Tool | Description |
|---|---|
get-ultra-order |
Retrieves a swap order from Jupiter Ultra API, using both DEX routing and RFQ for optimal pric... |
execute-ultra-order |
Requests Jupiter to execute a swap transaction on behalf of the wallet owner, handling slipp... |
Features
- Retrieving swap orders from Jupiter Ultra API, combining DEX routing and RFQ (Request for Quote) for optimal pricing
- Executing swaps through Jupiter Ultra API with slippage handling, priority fees, and transaction landing
Environment variables
Required
SOLANA_RPC_URL- Access to a Solana RPC node (e.g., https://api.mainnet-beta.solana.com)PRIVATE_KEY- Private key (in base58 encoding) for signing transactions
Usage examples
Get a swap order to trade 1.23 SOL for USDC
Execute the swap order with request ID 'a770110b-82c9-46c8-ba61-09d955b27503' using the transaction provided
Notes
Requires Node.js version 18 or higher for native fetch support. Requires a Solana wallet with a private key and access to a Solana RPC endpoint.