Integration · MODEL CONTEXT PROTOCOL
kukapay jupiter mcp
An MCP server for executing token swaps on the Solana blockchain using Jupiter's new Ultra API.
连接能力
kukapay jupiter mcp 为 AI Agent 提供什么
- 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.
- **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`).
- **Clone the Repository**:
- **Install Dependencies**:
- **Client Configuration**:
- **`get-ultra-order`**:
- **Description**: Fetches a swap order from Jupiter's Ultra API, leveraging both DEX routing and RFQ for optimal pricing.
- **Inputs**:
- `inputMint`: Input token mint address (e.g., SOL or token pubkey).
- `outputMint`: Output token mint address (e.g., USDC or token pubkey).
- `amount`: Input amount as a string (e.g., "1.23").
- `slippageBps`: Slippage tolerance in basis points (e.g., 50 for 0.5%).
- **Output**: JSON with `requestId`, `transaction` (base64-encoded), `inputMint`, `outputMint`, `inAmount`, `outAmount`, `price`.
- **`execute-ultra-order`**:
- **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`.
- **Prompt**: "Get a swap order to trade 1.23 SOL for USDC."
- **Input**:
- Tool: `get-ultra-order`
- Arguments:
- `inputMint`: "So11111111111111111111111111111111111111112" (SOL)
- `outputMint`: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" (USDC)
- `amount`: "1.23"
- **Response**:
- **Prompt**: "Execute the swap order with request ID 'a770110b-82c9-46c8-ba61-09d955b27503' using the transaction provided."
- **Input**:
- Tool: `execute-ultra-order`
- Arguments:
- `requestId`: "a770110b-82c9-46c8-ba61-09d955b27503"
- `transaction`: "AQAAAA...base64-encoded-transaction...=="
- **Response**:
安全
MCP 收录不等于安全审核
MCP 服务器可能获得模型上下文、凭据、本地文件或调用外部系统的权限。连接 Agent 前,请检查代码、环境变量、网络行为、软件包来源与维护状态。
README
仓库文档
An MCP server for executing token swaps on the Solana blockchain using Jupiter's new Ultra API.
- 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.
- Node.js: Version 18 or higher (for native
fetchsupport). - 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).
-
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:
npm install
-
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"
}
}
}
}-
get-ultra-order:- Description: Fetches a swap order from Jupiter's Ultra API, leveraging both DEX routing and RFQ for optimal pricing.
- Inputs:
inputMint: Input token mint address (e.g., SOL or token pubkey).outputMint: Output token mint address (e.g., USDC or token pubkey).amount: Input amount as a string (e.g., "1.23").slippageBps: Slippage tolerance in basis points (e.g., 50 for 0.5%).
- Output: JSON with
requestId,transaction(base64-encoded),inputMint,outputMint,inAmount,outAmount,price.
-
execute-ultra-order:- 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 fromget-ultra-order.transaction: Base64-encoded transaction fromget-ultra-order.
- Output: JSON with
status,transactionId,slot,inputAmountResult,outputAmountResult,swapEvents.
Below are examples of interacting with the server using natural language prompts and expected responses:
- Prompt: "Get a swap order to trade 1.23 SOL for USDC."
- Input:
- Tool:
get-ultra-order - Arguments:
inputMint: "So11111111111111111111111111111111111111112" (SOL)outputMint: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" (USDC)amount: "1.23"slippageBps: 50
- Tool:
- Response:
{ "requestId": "a770110b-82c9-46c8-ba61-09d955b27503", "transaction": "AQAAAA...base64-encoded-transaction...==", "inputMint": "So11111111111111111111111111111111111111112", "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "inAmount": "1230000000", "outAmount": "19950000", "price": 0.01621951219512195 }
- Prompt: "Execute the swap order with request ID 'a770110b-82c9-46c8-ba61-09d955b27503' using the transaction provided."
- Input:
- Tool:
execute-ultra-order - Arguments:
requestId: "a770110b-82c9-46c8-ba61-09d955b27503"transaction: "AQAAAA...base64-encoded-transaction...=="
- Tool:
- 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" } ] }
This project is licensed under the MIT License. See the LICENSE file for details.
社区
收藏、评分与讨论
正在载入社区数据…