Jupiter Ultra MCP server

Provides a bridge to Jupiter's Ultra API for executing token swaps on Solana blockchain with optimal routing, competitive pricing, and transaction handling for DEX and RFQ operations.
Back to servers
Setup instructions
Provider
kukapay
Release date
Mar 22, 2025
Language
TypeScript
Stats
13 stars

The Jupiter MCP Server is a specialized service that enables token swaps on the Solana blockchain through Jupiter's Ultra API. It combines DEX routing and Request for Quote (RFQ) capabilities to find optimal pricing and execute transactions efficiently.

Prerequisites

  • Node.js: Version 18 or higher (for native fetch support)
  • Solana Wallet: A base58-encoded private key for signing transactions
  • RPC Endpoint: Access to a Solana RPC node

Installation

Set Up the Server

git clone https://github.com/kukapay/jupiter-mcp.git
cd jupiter-mcp
npm install

Client Configuration

Configure your client settings with the following JSON structure:

{
  "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

Get Ultra Order

This tool fetches optimal swap quotes by combining DEX routing and RFQ services.

Parameters:

  • inputMint: The input token mint address (e.g., SOL's address)
  • outputMint: The output token mint address (e.g., USDC's address)
  • amount: Input amount as a string (e.g., "1.23")
  • slippageBps: Slippage tolerance in basis points (e.g., 50 for 0.5%)

Example Response:

{
  "requestId": "a770110b-82c9-46c8-ba61-09d955b27503",
  "transaction": "AQAAAA...base64-encoded-transaction...==",
  "inputMint": "So11111111111111111111111111111111111111112",
  "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "inAmount": "1230000000",
  "outAmount": "19950000",
  "price": 0.01621951219512195
}

Execute Ultra Order

This tool submits the transaction for execution, handling priority fees and transaction confirmation.

Parameters:

  • requestId: Unique identifier from the get-ultra-order response
  • transaction: Base64-encoded transaction from the get-ultra-order response

Example Response:

{
  "status": "Success",
  "transactionId": "5x...solana-transaction-signature...",
  "slot": 299283763,
  "inputAmountResult": "1230000000",
  "outputAmountResult": "19950000",
  "swapEvents": [
    {
      "type": "swap",
      "inputMint": "So11111111111111111111111111111111111111112",
      "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "inAmount": "1230000000",
      "outAmount": "19950000"
    }
  ]
}

Usage Examples

Example 1: Swapping SOL for USDC

  1. First, get a swap quote:
Tool: get-ultra-order
Arguments: 
  inputMint: "So11111111111111111111111111111111111111112"
  outputMint: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
  amount: "1.23"
  slippageBps: 50
  1. Then execute the swap using the response data:
Tool: execute-ultra-order
Arguments:
  requestId: "a770110b-82c9-46c8-ba61-09d955b27503"
  transaction: "AQAAAA...base64-encoded-transaction...=="

Example 2: Natural Language Interaction

You can also interact with the server using natural language prompts:

  • Prompt: "Get a swap order to trade 1.23 SOL for USDC."
  • Prompt: "Execute the swap order with request ID 'a770110b-82c9-46c8-ba61-09d955b27503' using the transaction provided."

The server will parse these requests and execute the appropriate tool with the extracted parameters.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "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"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "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"
            }
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "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"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later