by kukapay
Executes token swaps on the Solana blockchain using Jupiter's Ultra API, handling routing, RFQ, slippage, priority fees, and transaction landing.
Jupiter MCP Server provides an MCP endpoint that fetches optimal swap orders from Jupiter's Ultra API and executes them on Solana. It combines DEX routing with RFQ pricing to deliver the best rate while managing transaction details such as slippage and priority fees.
npm install
.SOLANA_RPC_URL
and PRIVATE_KEY
).get-ultra-order
and execute-ultra-order
via natural‑language prompts or API calls to fetch and submit swap orders.get-ultra-order
, execute-ultra-order
).Q: Which Solana network can I connect to?
A: Any RPC endpoint, e.g., https://api.mainnet-beta.solana.com
for mainnet or testnet URLs for development.
Q: Do I need a special account? A: A standard Solana wallet private key (base58‑encoded) is sufficient; the server uses it to sign transactions.
Q: What version of Node.js is required?
A: Node.js 18 or higher (native fetch
support).
Q: How is slippage controlled?
A: Provide slippageBps
when calling get-ultra-order
; the server includes it in the order request.
Q: Can I run multiple instances? A: Yes, each instance can be configured with different RPC URLs or private keys.
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.
{ "mcpServers": { "Jupiter MCP": { "command": "npx", "args": [ "-y", "jupiter-mcp", "server/index.js" ], "env": { "SOLANA_RPC_URL": "<YOUR_SOLANA_RPC_URL>", "PRIVATE_KEY": "<YOUR_BASE58_PRIVATE_KEY>" } } } }
Explore related MCPs that share similar capabilities and solve comparable challenges
by goat-sdk
Enables AI agents to send and receive payments, purchase goods and services, execute investment strategies, tokenize assets, and obtain financial insights by leveraging blockchains, stablecoins, and wallets.
by financial-datasets
Provides access to income statements, balance sheets, cash flow statements, stock prices, market news, and cryptocurrency data through MCP tools for AI assistants.
by alpacahq
Enables large language models to trade stocks and options, retrieve real‑time and historical market data, and manage portfolios using plain English commands through a local or remote MCP server.
by XeroAPI
Provides a bridge between the Model Context Protocol and Xero's API, enabling standardized access to Xero accounting and business features.
by stefanoamorelli
Provides an MCP server that connects AI models to SEC EDGAR filings, enabling real‑time retrieval of company filings, financial statements, and insider‑trading data with exact XBRL precision and verifiable filing references.
by ariadng
Enables AI LLMs to execute trades on the MetaTrader 5 platform through the Model Context Protocol.
by calvernaz
Provides access to Alpha Vantage stock market data via an MCP server, supporting stdio and HTTP streaming modes with optional OAuth 2.1 authentication.
by kukapay
Integrates the Freqtrade cryptocurrency trading bot with MCP, exposing its REST API as tools for AI agents to perform automated trading operations.
by kukapay
Provides a comprehensive set of cryptocurrency technical analysis indicators and ready‑to‑use trading strategies through an MCP interface, enabling AI agents and applications to generate buy, hold, or sell signals.