Jupiter MCP Server for Solana Token Swaps

Automate token swaps and get optimal prices on Solana with the Jupiter MCP Server. Integrate with FlowHunt and AI tools for seamless DeFi workflows.

Jupiter MCP Server for Solana Token Swaps

What does “Jupiter” MCP Server do?

The Jupiter MCP Server is designed to facilitate token swaps on the Solana blockchain by interfacing with Jupiter’s new Ultra API. Acting as a Model Context Protocol (MCP) server, it enables AI assistants and clients to programmatically fetch swap orders and execute trades with optimal pricing by combining decentralized exchange (DEX) routing and request-for-quote (RFQ) mechanisms. This server empowers users to automate activities such as obtaining the best price for token exchanges, managing slippage, and ensuring smooth token transactions—all from within an AI-assisted workflow or toolchain. By integrating Jupiter MCP Server, developers can enhance their Solana-based applications and workflows with reliable, on-chain token swap capabilities.

List of Prompts

  • No prompt templates are explicitly listed in the repository.

List of Resources

  • No explicit MCP resources are detailed in the repository.

List of Tools

  • get-ultra-order
    Fetches a swap order from Jupiter’s Ultra API, combining DEX routing and RFQ for optimal pricing.

    • Inputs: inputMint, outputMint, amount, slippageBps
    • Output: Swap order details including transaction data, input/output amounts, and price.
  • execute-ultra-order
    Executes a swap transaction requested via Jupiter’s Ultra API, handling slippage, priority fees, and transaction confirmation.

    • Inputs: requestId, transaction
    • Output: Execution status, transaction ID, slot, input/output amounts, and event details.

Use Cases of this MCP Server

  • Automated Token Swaps
    • Developers and applications can programmatically fetch and execute token swaps on Solana, automating trading strategies or user transactions.
  • Optimal Price Routing
    • By leveraging both DEX routing and RFQ, the server helps ensure users receive the best possible swap prices.
  • On-Chain Trading Bots
    • Enables the creation of bots or agents that monitor market conditions and execute swaps instantly based on predefined triggers.
  • Wallet and Portfolio Management
    • Integrate with user wallets to rebalance portfolios or execute strategic trades without manual intervention.
  • DeFi Integrations
    • Easily add token swapping capabilities to decentralized finance (DeFi) dashboards or applications with minimal backend logic.

How to set it up

Windsurf

  1. Ensure you have Node.js v18+ installed.
  2. Obtain your Solana wallet’s base58-encoded private key and a Solana RPC URL.
  3. Edit the Windsurf configuration file to add the Jupiter MCP Server.
  4. Insert the following JSON into your 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"
          }
        }
      }
    }
    
  5. Save the file and restart Windsurf to activate the server.

Securing API Keys

Store sensitive information like PRIVATE_KEY and SOLANA_RPC_URL in environment variables:

{
  "env": {
    "SOLANA_RPC_URL": "env:SOLANA_RPC_URL",
    "PRIVATE_KEY": "env:PRIVATE_KEY"
  }
}

Claude

  1. Install Node.js v18+.
  2. Prepare your Solana wallet private key and RPC endpoint.
  3. Edit Claude’s configuration file to include the MCP server.
  4. Use the configuration snippet as shown above.
  5. Restart Claude and verify MCP server connection.

Cursor

  1. Make sure Node.js v18+ is installed.
  2. Get your Solana wallet private key and RPC endpoint.
  3. Add the Jupiter MCP Server details to Cursor’s configuration.
  4. Use the JSON snippet provided in the Windsurf section.
  5. Restart Cursor for changes to take effect.

Cline

  1. Confirm Node.js v18+ is available.
  2. Secure your Solana wallet private key and RPC endpoint.
  3. Update Cline’s configuration with the MCP server block.
  4. Paste in the configuration JSON.
  5. Restart Cline and check server connectivity.

How to use this MCP inside flows

Using MCP in FlowHunt

To integrate MCP servers into your FlowHunt workflow, start by adding the MCP component to your flow and connecting it to your AI agent:

FlowHunt MCP flow

Click on the MCP component to open the configuration panel. In the system MCP configuration section, insert your MCP server details using this JSON format:

{
  "Jupiter-MCP": {
    "transport": "streamable_http",
    "url": "https://yourmcpserver.example/pathtothemcp/url"
  }
}

Once configured, the AI agent is now able to use this MCP as a tool with access to all its functions and capabilities. Remember to change “Jupiter-MCP” to whatever the actual name of your MCP server is and replace the URL with your own MCP server URL.


Overview

SectionAvailabilityDetails/Notes
Overview
List of PromptsNone found
List of ResourcesNone found
List of Toolsget-ultra-order, execute-ultra-order
Securing API KeysVia env in config
Sampling Support (less important in evaluation)Not mentioned

Our opinion

Jupiter MCP Server is focused, well-documented, and provides clear setup and tool descriptions for Solana token swaps. However, it lacks prompt templates, resource primitives, and sampling/roots support. It is an excellent choice for specific Solana swap use cases, but not as broad as some general-purpose MCP servers.

MCP Score

Has a LICENSE✅ (MIT)
Has at least one tool
Number of Forks6
Number of Stars12

Frequently asked questions

What does the Jupiter MCP Server do?

The Jupiter MCP Server enables automated token swaps on the Solana blockchain, providing optimal pricing by connecting to Jupiter's Ultra API. It lets AI assistants and applications fetch swap orders and execute trades seamlessly.

Which tools does Jupiter MCP Server provide?

It provides two tools: get-ultra-order (fetches optimal swap orders with DEX routing and RFQ) and execute-ultra-order (executes swap transactions, handling slippage, fees, and confirmation).

What are the main use cases for Jupiter MCP Server?

Automated token swaps, optimal price routing, trading bot creation, wallet/portfolio management, and integrating DeFi swap features into dashboards or apps.

How do I secure my private key and Solana RPC URL?

Store sensitive credentials as environment variables in your configuration, rather than hardcoding them, to enhance security.

Does the Jupiter MCP Server support prompt templates or resource primitives?

No prompt templates or explicit resource primitives are present in the server. It is focused on providing robust Solana swap tools.

Is the Jupiter MCP Server open source?

Yes, it is licensed under the MIT License.

Integrate Jupiter MCP Server with FlowHunt

Enhance your Solana-based applications and workflows with automated, AI-powered token swaps using Jupiter MCP Server.

Learn more