The Jupiter MCP Server is a specialized service that enables token swaps on the Solana blockchain through Jupiter's Ultra API. It combines DEX routing and Request for Quote (RFQ) capabilities to find optimal pricing and execute transactions efficiently.
fetch
support)git clone https://github.com/kukapay/jupiter-mcp.git
cd jupiter-mcp
npm install
Configure your client settings with the following JSON structure:
{
"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"
}
}
}
}
This tool fetches optimal swap quotes by combining DEX routing and RFQ services.
inputMint
: The input token mint address (e.g., SOL's address)outputMint
: The output token mint address (e.g., USDC's address)amount
: Input amount as a string (e.g., "1.23")slippageBps
: Slippage tolerance in basis points (e.g., 50 for 0.5%){
"requestId": "a770110b-82c9-46c8-ba61-09d955b27503",
"transaction": "AQAAAA...base64-encoded-transaction...==",
"inputMint": "So11111111111111111111111111111111111111112",
"outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"inAmount": "1230000000",
"outAmount": "19950000",
"price": 0.01621951219512195
}
This tool submits the transaction for execution, handling priority fees and transaction confirmation.
requestId
: Unique identifier from the get-ultra-order responsetransaction
: Base64-encoded transaction from the get-ultra-order 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"
}
]
}
Tool: get-ultra-order
Arguments:
inputMint: "So11111111111111111111111111111111111111112"
outputMint: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
amount: "1.23"
slippageBps: 50
Tool: execute-ultra-order
Arguments:
requestId: "a770110b-82c9-46c8-ba61-09d955b27503"
transaction: "AQAAAA...base64-encoded-transaction...=="
You can also interact with the server using natural language prompts:
The server will parse these requests and execute the appropriate tool with the extracted parameters.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "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"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"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"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"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"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect