MCP 木星
このリポジトリには、Claude が Jupiter のスワップ API にアクセスできるようにする Model Context Protocol (MCP) サーバーが含まれています。このサーバーにより、Claude は Jupiter を使用して Solana ブロックチェーン上で、クォートの取得、スワップ���ランザクションの構築、スワップトランザクションの送信などの操作を実行できます。
概要
MCP サーバーは、Claude にいくつかのツールを公開します。
jupiter_get_quote: Jupiter のトークン交換の見積もりを取得するjupiter_build_swap_transaction: Jupiter 上でスワップトランザクションを構築するjupiter_send_swap_transaction: Jupiter でスワップトランザクションを送信する
前提条件
Node.js (v16 以上)
クロードデスクトップアプリケーション
インストール
このリポジトリをクローンします:
git clone https://github.com/dcSpark/mcp-server-jupiter.git cd mcp-server-jupiter依存関係をインストールします:
npm ciプロジェクトをビルドします。
npm run build
グローバルインストール
パッケージをグローバルにインストールすることも、npx で直接使用することもできます。
構成
Claudeデスクトップの設定
この MCP サーバーを使用するように Claude Desktop を構成するには:
クロードデスクトップを開く
Claude Desktop 構成ファイルに移動します。
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
MCP サーバー構成を追加します。
パッケージをグローバルにインストールした場合、または npx を使用する場合は、次のように設定できます。
ローカルで実行
使用法
設定が完了したら、Claude Desktopを再起動してください。これでClaudeはJupiterのスワップツールにアクセスできるようになります。Claudeに以下の操作を依頼できます。
トークン交換の見積もりを取得する:
What's the quote for swapping 1 SOL to USDC?スワップ取引を構築します。
Build a swap transaction for the quote I just got.スワップトランザクションを送信します。
Send the swap transaction I just built.
Claude は MCP サーバーを使用して、Jupiter の swap API と直接対話します。
発達
新しいツールの追加
MCP サーバーに新しいツールを追加するには:
src/tools.tsでツールを定義する適切なハンドラーファイルにハンドラー関数を作成する
src/tools.tsのhandlersオブジェクトにハンドラーを追加します。
建物
ライセンス
マサチューセッツ工科大学
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
- Asecurity-licenseAqualityA 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 -38913MIT License
- -security-license-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 -36129Apache 2.0
- -security-license-qualityAn MCP server for executing token swaps on the Solana blockchain using Jupiter's Ultra API, enabling users to fetch optimal swap orders and execute transactions with slippage control.Last updated -021MIT License
- -security-license-qualityA Model Context Protocol server that provides onchain tools for Claude AI, allowing it to interact with the Solana blockchain through a standardized interface for operations like managing assets, executing token operations, and retrieving network information.Last updated -7