Back to MCP directory
publicPublicdnsLocal runtime

jupiter-mcp

一个基于Jupiter Ultra API的Solana区块链代币交换MCP服务器,支持最优价格路由和交易执行。

article

README

🚀 木星 MCP 服务器

这是一个借助 Jupiter 全新的 Ultra API,在 Solana 区块链上开展代币兑换操作的 MCP 服务器。它能有效利用 Ultra API 的强大功能,为用户提供高效、优质的代币兑换服务。

LICENSE Node.js 状态

✨ 主要特性

  • 借助 Jupiter 的 Ultra API 获取兑换订单,巧妙结合 DEX 路由与 RFQ(请求报价)机制,为用户争取最优兑换价格。
  • 利用 Jupiter 的 Ultra API 直接执行兑换操作,流程简便快捷。

📦 安装指南

克隆仓库

git clone https://github.com/your-repository.git
cd mcp-server

安装依赖项

npm install

启动服务器

node index.js

📚 详细文档

先决条件

若要使用本项目,需满足以下条件:

  1. 已安装 Node.js 和 npm。
  2. 熟悉 Solana 区块链开发环境。
  3. 了解 MCP(木星控制协议)的工作原理。

配置

需创建一个 config.json 文件,并添加如下内容:

{
  "api_key": "your_api_key",
  "network": "mainnet-beta",
  "rpc_endpoint": "https://api.mainnet-beta.solana.com"
}

工具

获取 Ultra 订单

  • 描述:获取兑换订单。
  • 输入
    • order_id:要获取的订单 ID。
  • 输出
{
  "id": "string",
  "price": number,
  "amount": string,
  "side": "buy" | "sell"
}

执行兑换

  • 描述:执行指定的兑换订单。
  • 输入
    • order_id:要执行的订单 ID。
  • 输出
{
  "status": "success" | "error",
  "transaction_id": string,
  "message": string
}

📄 许可证

本项目采用 MIT 许可证。如需了解详细信息,请查阅 LICENSE 文件。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client