Jupiter MCP

MIT License

Integrations

  • Runs on Node.js platform (version 18+) with native fetch support, required for connecting to Jupiter's Ultra API and processing transactions.

  • Enables executing token swaps on the Solana blockchain using Jupiter's Ultra API, providing functionality to fetch optimal swap orders and execute transactions with slippage control and priority fee handling.

Jupiter MCP 服务器

使用 Jupiter 的新 Ultra API 在 Solana 区块链上执行代币交换的 MCP 服务器。

特征

  • 从 Jupiter 的 Ultra API 获取掉期订单,结合 DEX 路由和 RFQ(报价请求)以获得最佳定价。
  • 通过 Jupiter 的 Ultra API 执行交换,处理滑点、优先费用和交易落地。

先决条件

  • Node.js :版本 18 或更高版本(用于本机fetch支持)。
  • Solana 钱包:用于签署交易的私钥(base58编码)。
  • RPC 端点:访问 Solana RPC 节点(例如, https://api.mainnet-beta.solana.com )。

安装

  1. 克隆存储库
    git clone https://github.com/your-username/jupiter-mcp.git cd jupiter-mcp
  2. 安装依赖项:确保您已安装 MCP 服务器包以及其他必需的依赖项:
    npm install
  3. 客户端配置
{ "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" } } } }

工具

Ultra API 工具

  • get-ultra-order
    • 描述:从 Jupiter 的 Ultra API 获取掉期订单,利用 DEX 路由和 RFQ 实现最佳定价。
    • 输入
      • inputMint :输入代币铸造地址(例如,SOL 或代币公钥)。
      • outputMint :输出代币铸造地址(例如,USDC 或代币公钥)。
      • amount :输入字符串形式的金额(例如“1.23”)。
      • slippageBps :滑点容差(以基点为单位)(例如,0.5% 为 50)。
    • 输出:带有requestIdtransaction (base64 编码)、 inputMintoutputMintinAmountoutAmountprice JSON。
  • execute-ultra-order
    • 描述:请求 Jupiter 代表钱包所有者执行交换交易,处理滑点、优先费用和交易落地。
    • 输入
      • requestId :来自get-ultra-order唯一标识符。
      • transaction :来自get-ultra-order Base64 编码交易。
    • 输出:带有statustransactionIdslotinputAmountResultoutputAmountResultswapEvents JSON。

交互示例

以下是使用自然语言提示和预期响应与服务器交互的示例:

获取掉期订单

  • 提示:“获取掉期订单,以 1.23 SOL 兑换 USDC。”
  • 输入
    • 工具: get-ultra-order
    • 参数:
      • inputMint :“So111111111111111111111111111111111111111111112”(SOL)
      • outputMint :“EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v”(USDC)
      • amount :“1.23”
  • 回复
    { "requestId": "a770110b-82c9-46c8-ba61-09d955b27503", "transaction": "AQAAAA...base64-encoded-transaction...==", "inputMint": "So11111111111111111111111111111111111111112", "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "inAmount": "1230000000", "outAmount": "19950000", "price": 0.01621951219512195 }

执行掉期

  • 提示:“使用提供的交易执行请求ID为‘a770110b-82c9-46c8-ba61-09d955b27503’的掉期订单。”
  • 输入
    • 工具: execute-ultra-order
    • 参数:
      • requestId :“a770110b-82c9-46c8-ba61-09d955b27503”
      • transaction :“AQAAAA...base64编码交易...==”
  • 回复
    { "status": "Success", "transactionId": "5x...solana-transaction-signature...", "slot": 299283763, "inputAmountResult": "1230000000", "outputAmountResult": "19950000", "swapEvents": [ { "type": "swap", "inputMint": "So11111111111111111111111111111111111111112", "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "inAmount": "1230000000", "outAmount": "19950000" } ] }

执照

本项目遵循 MIT 许可证。详情请参阅LICENSE文件。

-
security - not tested
A
license - permissive license
-
quality - not tested

MCP 服务器使用 Jupiter 的 Ultra API 在 Solana 区块链上执行代币交换,使用户能够获取最佳交换订单并执行具有滑点控制的交易。

  1. 特征
    1. 先决条件
      1. 安装
        1. 工具
          1. Ultra API 工具
        2. 交互示例
          1. 获取掉期订单
          2. 执行掉期
        3. 执照

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol server that enables Claude to perform Solana token swaps through Jupiter's API, including getting quotes, building transactions, and sending swap transactions on the Solana blockchain.
            Last updated -
            3
            6
            TypeScript
            MIT License
            • Apple
            • Linux
          • A
            security
            F
            license
            A
            quality
            A server that provides simple RPC endpoints for common Solana blockchain operations, allowing users to check balances, get account information, and transfer SOL between accounts.
            Last updated -
            5
            TypeScript
          • -
            security
            A
            license
            -
            quality
            An MCP server for AI agents to automate token swaps on Uniswap DEX across multiple blockchains.
            Last updated -
            63
            3
            JavaScript
            MIT License
          • -
            security
            F
            license
            -
            quality
            An MCP server that connects Claude for Desktop with blockchain functionality, allowing users to check balances and send tokens on EVM and Solana chains through natural language interactions.
            Last updated -
            TypeScript
            • Apple

          View all related MCP servers

          ID: rmrk9e5qcg