MCP Jupiter
local-only server
The server can only run on the client’s local machine because it depends on local resources.
MCP Jupiter
This repository contains a Model Context Protocol (MCP) server that provides Claude with access to Jupiter's swap API. The server enables Claude to perform operations like getting quotes, building swap transactions, and sending swap transactions on the Solana blockchain using Jupiter.
Overview
The MCP server exposes several tools to Claude:
jupiter_get_quote
: Get a quote for swapping tokens on Jupiterjupiter_build_swap_transaction
: Build a swap transaction on Jupiterjupiter_send_swap_transaction
: Send a swap transaction on Jupiter
Prerequisites
- Node.js (v16 or higher)
- Claude Desktop application
Installation
- Clone this repository:Copy
- Install dependencies:Copy
- Build the project:Copy
Configuration
Configure Claude Desktop
To configure Claude Desktop to use this MCP server:
- Open Claude Desktop
- Navigate to the Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Linux:
~/.config/Claude/claude_desktop_config.json
- macOS:
- Add the MCP server configuration:
Running Locally
Usage
Once configured, restart Claude Desktop. Claude will now have access to the Jupiter swap tools. You can ask Claude to:
- Get a quote for swapping tokens:Copy
- Build a swap transaction:Copy
- Send a swap transaction:Copy
Claude will use the MCP server to interact with Jupiter's swap API directly.
Development
Adding New Tools
To add new tools to the MCP server:
- Define the tool in
src/tools.ts
- Create a handler function in the appropriate handler file
- Add the handler to the
handlers
object insrc/tools.ts
Building
License
MIT
You must be authenticated.
A Model Context Protocol server that enables Claude to perform Solana token swaps through Jupiter's API, including getting quotes, building transactions, and sending swap transactions on the Solana blockchain.