jupiter-mcp
jupiter-mcp
Jupiter 开发者平台的 MCP 服务器 —— 包含 17 种工具,涵盖兑换、代币、价格、借贷、限价单、DCA、预测市场、永续合约及投资组合。
任何兼容 MCP 的 AI 智能体(Claude Code、Cursor、ChatGPT 等)均可获得 Solana 上 Jupiter 全套 DeFi 协议的原生访问权限。
快速开始
# Install
git clone https://github.com/ExpertVagabond/jupiter-mcp.git
cd jupiter-mcp
npm install && npm run build
# Run (keyless — 0.5 RPS, no signup needed)
node dist/index.js
# Run with API key (higher rate limits)
JUPITER_API_KEY=your_key node dist/index.js添加到 Claude Code
// ~/.claude/settings.json
{
"mcpServers": {
"jupiter": {
"command": "node",
"args": ["/path/to/jupiter-mcp/dist/index.js"],
"env": {
"JUPITER_API_KEY": "your_key_or_omit_for_keyless"
}
}
}
}Related MCP server: Stacks AI MCP Server
工具 (17)
工具 | 描述 |
| 通过托管的 /order 路径获取兑换报价(所有路由竞争) |
| 获取用于自定义交易的原始兑换指令 |
| 按名称、符号或 mint 地址搜索代币 |
| 代币元数据、有机评分、交易指标 |
| 获取任意 Solana 代币的美元价格 |
| 创建借贷存款交易 |
| 创建借贷取款交易 |
| 列出钱包的未结限价单 |
| 创建限价单 / OCO / OTOCO 订单 |
| 取消未结限价单 |
| 列出活跃的 DCA 定投计划 |
| 创建循环 DCA 定投订单 |
| 浏览预测市场(Polymarket、Kalshi) |
| 列出永续合约市场 |
| 获取未平仓的永续合约头寸 |
| 查看所有 Jupiter 产品的完整投资组合 |
示例
You: "What's the price of SOL and JUP?"
Agent calls: jupiter_price({ mints: "So11...112,JUPyi...vCN" })
→ SOL: $83.53 (-2.4% 24h), JUP: $0.166You: "Get me a quote to swap 1 SOL for USDC"
Agent calls: jupiter_swap_quote({
inputMint: "So11111111111111111111111111111111111111112",
outputMint: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
amount: "1000000000",
taker: "your_wallet"
})
→ 83.48 USDC, 22bps slippage, aggregator routing via Raydium架构
src/
index.ts MCP server entry — registers all tools
client.ts Jupiter API client (thin fetch wrapper, no dependencies)
types.ts Shared types
tools/
swap.ts Swap V2 (/order + /build)
tokens.ts Token search + metadata
price.ts USD pricing
lend.ts Lending deposit/withdraw
trigger.ts Limit orders (create/cancel/list)
recurring.ts DCA orders
prediction.ts Prediction markets
perps.ts Perpetual futures
portfolio.ts Portfolio aggregation开发者体验 (DX) 报告
请参阅 DX-REPORT.md 获取详细的开发者体验报告,涵盖所有 Jupiter API、AI 技术栈(llms.txt、智能体技能、CLI、文档 MCP)以及具体建议。
许可证
MIT
Available Tools
16 toolsjupiter_dca_createA
Create a DCA order — recurring swap on a schedule. Returns transaction to sign. Example: buy $10 SOL every hour.
Inputs: inputMint (required), outputMint (required), inAmount (required), inAmountPerCycle (required), +4 more.
jupiter_dca_ordersB
Get active DCA (Dollar Cost Average) orders for a wallet — recurring schedules and progress.
Inputs: wallet (required).
jupiter_lend_depositA
Create a deposit transaction for Jupiter Lend Earn. Returns a base64-encoded unsigned transaction to sign and submit.
Inputs: asset (required), signer (required), amount (required).
jupiter_lend_withdrawA
Create a withdraw transaction for Jupiter Lend Earn. Returns a base64-encoded unsigned transaction.
Inputs: asset (required), signer (required), amount (required).
jupiter_limit_order_cancelB
Cancel one or more open limit orders.
Inputs: maker (required), orders (required).
jupiter_limit_order_createA
Create a limit order. Returns a transaction to sign. Supports single, OCO (TP/SL), and OTOCO orders.
Inputs: inputMint (required), outputMint (required), inAmount (required), outAmount (required), +2 more.
jupiter_limit_ordersA
Get all open limit orders for a wallet — pending trigger orders with price targets and amounts.
Inputs: wallet (required).
jupiter_perps_marketsA
List Jupiter perpetual futures markets — trading pairs, funding rates, open interest.
Inputs: no named parameters.
jupiter_perps_positionsA
Get open perpetual positions for a wallet — leverage, entry price, PnL, liquidation price.
Inputs: wallet (required).
jupiter_portfolioA
Get full portfolio for a wallet — all Jupiter positions across swaps, lending, DCA, limit orders, perps, and prediction markets.
Inputs: wallet (required).
jupiter_prediction_eventsA
List Jupiter prediction events — binary markets on real-world events. Filter by category, sort by volume or date, include market data.
Inputs: provider, includeMarkets, category, sortBy, +4 more.
jupiter_priceB
Get current USD prices for one or more Solana tokens. Pass mint addresses comma-separated.
Inputs: mints (required), showExtraInfo.
jupiter_swap_buildA
Get raw swap instructions for custom transaction construction. Use when composing Jupiter swaps with other instructions (flashloans, multi-step). Metis router only.
Inputs: inputMint (required), outputMint (required), amount (required), taker (required), +1 more.
jupiter_swap_quoteA
Get a swap quote via Jupiter's managed /order path. Returns the best price across all routers (Metis, RFQ, Dflow, OKX).
Inputs: inputMint (required), outputMint (required), amount (required), taker (required), +1 more.
jupiter_token_infoA
Get detailed token metadata for a specific mint — verification status, organic score, daily volume, holder count.
Inputs: mint (required).
jupiter_token_searchA
Search for Solana tokens by name, symbol, or mint address. Returns metadata, verification status, organic scores, and trading metrics.
Inputs: query (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Each tool targets a distinct Jupiter subdomain/action: swap quote vs build, token search vs info vs price, and read/transaction tools are clearly separated. The only close pair is token_search and token_info, but exact-mint detail vs search-by-query is explicit enough to avoid misselection.
All tools share the jupiter_<domain>_<action|resource> pattern with consistent snake_case and plural lists for collection queries. Small structural differences like token_info vs limit_order_create follow the resource shape rather than being arbitrary.
16 tools is at the upper edge but each is justified by the breadth of Jupiter's products: swap, tokens, lending, limit orders, DCA, prediction markets, perps, and portfolio. No redundant tools exist; each domain has a focused read/action pair.
The swap, token, lending, and limit-order surfaces are fairly complete, but DCA has no cancel/close tool and perps only exposes markets/positions with no order creation or closing. Prediction events are also list-only, leaving a few lifecycle dead ends for agents.
Maintenance
Related MCP Connectors
Native Solana staking for AI agents. 26 MCP tools, one-shot signing, webhooks.
Non-custodial DeFi tools for AI agents on Solana: swaps, perps, lending, staking, equities.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceAn MCP server for the Sui blockchain that enables AI agents to manage accounts, execute token swaps, and perform smart contract development using the Sui CLI. It supports over 30 tools for DeFi operations, staking, and market data via Pyth price oracles.11 npm2MIT
- AlicenseNot gradedqualityDmaintenanceA comprehensive MCP server providing unified access to over 144 tools for lending, trading, and staking across six major DeFi protocols on the Stacks Bitcoin Layer 2. It enables AI agents to perform complex blockchain operations and interact with the DeFi ecosystem using natural language commands.3MIT
- AlicenseAqualityDmaintenanceMCP server giving AI agents access to Solana blockchain data. 7 tools: wallet balances, transaction history, token prices (Jupiter + CoinGecko), token metadata, DeFi yields (Raydium + Orca), and token safety checks (RugCheck scores, holder concentration, insider detection).822,468 PyPI1MIT
- AlicenseBqualityDmaintenanceAn MCP server that enables AI agents to interact with the Solana blockchain through 20 tools for wallet management, SPL token operations, blockchain exploration, and DeFi integration via Jupiter.21MIT