by kukapay
Executes token swaps on the Solana blockchain via Jupiter's Ultra API, handling order retrieval, slippage management, priority fees, and transaction submission.
Jupiter MCP Server enables automated token swaps on Solana by interfacing with Jupiter's new Ultra API. It fetches optimal swap orders that combine DEX routing and RFQ pricing, then signs and sends the transactions on behalf of a wallet.
npm install
.SOLANA_RPC_URL
and PRIVATE_KEY
.node path/to/jupiter-mcp/server/index.js
(as shown in the README).get-ultra-order
to request a swap order (specify inputMint, outputMint, amount, slippageBps).execute-ultra-order
to submit the signed transaction using the returned requestId
and transaction
.get-ultra-order
and execute-ultra-order
simplify interaction.Q: Which Node.js version is required?
A: Node.js 18 or higher (native fetch
support).
Q: How are private keys supplied?
A: Set the PRIVATE_KEY
environment variable with the base‑58 encoded key.
Q: Can I use a custom RPC endpoint?
A: Yes, set SOLANA_RPC_URL
to any reachable Solana RPC node.
Q: What format is the transaction returned?
A: The transaction
field is a base64‑encoded Solana transaction ready for signing/submission.
Q: Is there any rate limit on the Ultra API? A: Refer to Jupiter's official documentation; the MCP server itself does not impose additional limits.
An MCP server for executing token swaps on the Solana blockchain using Jupiter's new Ultra API.
fetch
support).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
:
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%).requestId
, transaction
(base64-encoded), inputMint
, outputMint
, inAmount
, outAmount
, price
.execute-ultra-order
:
requestId
: Unique identifier from get-ultra-order
.transaction
: Base64-encoded transaction from get-ultra-order
.status
, transactionId
, slot
, inputAmountResult
, outputAmountResult
, swapEvents
.Below are examples of interacting with the server using natural language prompts and expected responses:
get-ultra-order
inputMint
: "So11111111111111111111111111111111111111112" (SOL)outputMint
: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" (USDC)amount
: "1.23"slippageBps
: 50{
"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
requestId
: "a770110b-82c9-46c8-ba61-09d955b27503"transaction
: "AQAAAA...base64-encoded-transaction...=="{
"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.
Please log in to share your review and rating for this MCP.
Discover more MCP servers with similar functionality and use cases
by stripe
Enables popular agent frameworks to integrate with Stripe APIs via function calling, providing tools for MCP, Python, and TypeScript.
by goat-sdk
GOAT is the largest agentic finance toolkit for AI agents, enabling them to become economic actors by leveraging blockchains, cryptocurrencies, and wallets.
by financial-datasets
Provides AI assistants with tools to retrieve income statements, balance sheets, cash flow statements, stock prices, market news, and crypto information via the Model Context Protocol.
by razorpay
Enables seamless interaction with Razorpay APIs via Model Context Protocol, allowing developers and AI agents to capture payments, manage orders, process refunds, handle settlements, and more through a unified MCP interface.
by armorwallet
Armor Crypto MCP provides a unified interface for AI agents to interact with the crypto ecosystem, including wallet management, swaps, staking, and multi-chain operations.
by alpacahq
Alpaca’s MCP server lets you trade stocks and options, analyze market data, and build strategies through Alpaca's Trading API.
by XeroAPI
Provides a bridge between the Model Context Protocol and Xero's API, enabling standardized access to Xero accounting and business features.
by kukapay
Integrates the Freqtrade cryptocurrency trading bot with an MCP server, exposing the bot's REST API as tools that AI agents can call for fully automated trading operations.
by kukapay
Offers over 50 cryptocurrency technical analysis indicators and corresponding trading strategies, enabling AI agents and developers to assess market trends and generate buy, hold, or sell signals.