MCP 木星
此代码库包含一个模型上下文协议 (MCP) 服务器,该服务器为 Claude 提供了访问 Jupiter 掉期 API 的权限。该服务器使 Claude 能够使用 Jupiter 在 Solana 区块链上执行诸如获取报价、构建掉期交易以及发送掉期交易等操作。
概述
MCP 服务器向 Claude 公开了几个工具:
jupiter_get_quote
:获取在 Jupiter 上兑换代币的报价jupiter_build_swap_transaction
:在 Jupiter 上建立交换交易jupiter_send_swap_transaction
:在 Jupiter 上发送交换交易
先决条件
- Node.js(v16 或更高版本)
- Claude桌面应用程序
安装
- 克隆此存储库:
- 安装依赖项:
- 构建项目:
全局安装
您还可以全局安装该包或直接通过 npx 使用它:
配置
配置 Claude 桌面
要配置 Claude Desktop 以使用此 MCP 服务器:
- 打开 Claude 桌面
- 导航到 Claude Desktop 配置文件:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Linux:
~/.config/Claude/claude_desktop_config.json
- macOS:
- 添加 MCP 服务器配置:
如果您已经全局安装了该包或者想要使用 npx,您可以像这样配置它:
本地运行
用法
配置完成后,重新启动 Claude Desktop。Claude 现在就可以使用 Jupiter 交换工具了。您可以让 Claude 执行以下操作:
- 获取代币兑换报价:
- 建立掉期交易:
- 发送掉期交易:
Claude 将使用 MCP 服务器直接与 Jupiter 的交换 API 进行交互。
发展
添加新工具
要向 MCP 服务器添加新工具:
- 在
src/tools.ts
中定义工具 - 在适当的处理程序文件中创建处理程序函数
- 将处理程序添加到
src/tools.ts
中的handlers
对象
建筑
执照
麻省理工学院
You must be authenticated.
local-only server
The server can only run on the client's local machine because it depends on local resources.
模型上下文协议服务器使 Claude 能够通过 Jupiter 的 API 执行 Solana 代币交换,包括获取报价、构建交易以及在 Solana 区块链上发送交换交易。
Related Resources
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that provides Claude with comprehensive access to Solana blockchain data via the Helius API, enabling operations like checking wallet balances, retrieving blockchain information, and interacting with tokens and NFTs.Last updated -112TypeScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server that enables Claude AI to interact with the Solana blockchain through a standardized interface, providing tools for transactions, account queries, and wallet management.Last updated -21979Apache 2.0
- -securityAlicense-qualityA Model Context Protocol server enabling AI agents to interact with the Solana blockchain for DeFi operations like checking balances, transferring tokens, executing swaps, and fetching price data.Last updated -21915TypeScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server that enables AI models to interact with the Solana blockchain, providing RPC methods, wallet management, DeFi trading capabilities, and Helius API integration for enhanced Solana development.Last updated -TypeScriptMIT License