Jupiter MCP Server logo

Jupiter MCP Server

Community
quanghuynguyen1902

Model Context Protocol server providing Claude AI with access to Jupiter's swap API on Solana

Publisherquanghuynguyen1902
Repositoryjupiter-mcp-server
LanguageTypeScript
Forks
5
Stars
17
Available tools
4
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Jupiter MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 4 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    17 stars and 5 forks from the linked repository.

Jupiter MCP Server

This repository contains a Model Context Protocol (MCP) server that provides Claude with access to Jupiter's Portfolio API and Price API. The server enables Claude to view portfolio positions, track staked JUP tokens, and get real-time token prices on the Solana blockchain.

Overview

The MCP server exposes several tools to Claude:

Portfolio Tools

  • jupiter_get_positions: Get portfolio positions including wallet balances, staked positions, liquidity pools, farming, vaults, lending, and more
  • jupiter_get_staked_jup: Get information about staked JUP tokens and unstaking positions
  • jupiter_get_platforms: Get a list of all DeFi platforms integrated with Jupiter's portfolio tracking

Price Tools

  • jupiter_get_price: Get current prices for one or more tokens, including USD price, 24h price change, and token decimals

API Implementation

This server uses Jupiter APIs:

  • Portfolio API v1 (https://api.jup.ag/portfolio/v1) for portfolio tracking and analytics
  • Price API v3 (https://api.jup.ag/price/v3) for real-time token pricing

Both APIs require an API key from Jupiter Portal.

Prerequisites

Installation

From npm (recommended)

bash
# Install globally
npm install -g jupiter-mcp-server

# Or use with npx
npx jupiter-mcp-server

From source

  1. Clone this repository:

    bash
    git clone https://github.com/quanghuynguyen1902/jupiter-mcp-server.git
    cd jupiter-mcp-server
  2. Install dependencies:

    bash
    npm ci
  3. Build the project:

    bash
    npm run build
  4. Install globally (optional):

    bash
    npm install -g ./

Configuration

Configure Claude Desktop

To configure Claude Desktop to use this MCP server:

  1. Open Claude Desktop

  2. 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
  3. Add the MCP server configuration:

json
{
  "mcpServers": {
    "jupiter-mcp-server": {
      "command": "npx",
      "args": ["jupiter-mcp-server"],
      "env": {
        "JUPITER_API_KEY": "your_jupiter_api_key_from_portal"
      }
    }
  }
}

If you've installed from source and want to run the local version, use:

json
{
  "mcpServers": {
    "jupiter-mcp-server": {
      "command": "node",
      "args": [
        "/path/to/your/jupiter-mcp-server/build/index.js"
      ],
      "env": {
        "JUPITER_API_KEY": "your_jupiter_api_key_from_portal"
      }
    }
  }
}

Environment Variables Description

Alternative: Using a .env File

If you're running the server directly (not through Claude Desktop), you can create a .env file in the root directory:

JUPITER_API_KEY=your_jupiter_api_key_from_portal

Running Locally

bash
# If installed globally
jupiter-mcp-server

# If installed from source
node build/index.js

# Using npx
npx jupiter-mcp-server

Usage

Once configured, restart Claude Desktop. Claude will now have access to Jupiter portfolio and price tools. You can ask Claude to:

Portfolio Operations

  1. View portfolio positions:

    Show me the portfolio for address YOUR_WALLET_ADDRESS
  2. Check staked JUP:

    How much JUP is staked for address YOUR_WALLET_ADDRESS?
  3. List available platforms:

    What platforms are supported for portfolio tracking?

Price Operations

  1. Get token prices:

    What's the current price of SOL and USDC?
  2. Get multiple token prices:

    Get prices for these tokens: So11111111111111111111111111111111111111112,EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v

Troubleshooting

API Authentication Issues

If you encounter 401 Unauthorized errors:

  1. Verify your JUPITER_API_KEY is correctly set in the environment variables
  2. Ensure your API key is valid - you can get a new one from https://portal.jup.ag/
  3. Check that the API key doesn't have any extra spaces or quotes around it

Development

Adding New Tools

To add new tools to the MCP server:

  1. Define the tool in src/tools.ts
  2. Create a handler function in the appropriate handler file
  3. Add the handler to the handlers object in src/tools.ts

Building

bash
npm run build

Testing

bash
npm test

Publishing to npm

Make sure you're logged in to npm:

bash
npm login

Then publish the package:

bash
npm publish

To publish a new version, first update the version in package.json:

bash
npm version patch  # or minor, or major
npm publish

License

MIT

Support the Project

If Jupiter MCP Server is useful to you, consider sponsoring its development.

Your support helps maintain compatibility with Jupiter APIs, add new MCP tools, and improve the documentation.

Installation

TypingMind
{
  "mcpServers": {
    "jupiter-mcp-server": {
      "command": "npx",
      "args": [
        "jupiter-mcp-server"
      ],
      "env": {
        "JUPITER_API_KEY": "<JUPITER_API_KEY>"
      }
    }
  }
}

Available Tools

  • jupiter_get_positions

    Get portfolio positions for a Solana wallet address including wallet balances, staked positions, liquidity pools, farming, vaults, lending, and more

  • jupiter_get_staked_jup

    Get staked JUP tokens information for a Solana wallet address, including amount staked and unstaking positions

  • jupiter_get_platforms

    Get a list of all DeFi platforms integrated with Jupiter's portfolio tracking system

  • jupiter_get_price

    Get current prices for one or more tokens on Jupiter, including USD price, 24h price change, and token decimals

Use Jupiter MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Jupiter MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Jupiter MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Jupiter MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "jupiter-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "jupiter-mcp-server"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Jupiter MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Jupiter MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Jupiter MCP Server to help me with this task?
Jupiter MCP Server
Sure. I read it.
Here is what I found using Jupiter MCP Server.

Frequently asked questions

What is the Jupiter MCP Server MCP server used for?

Jupiter MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Jupiter MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Jupiter MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Jupiter MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Jupiter MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Jupiter MCP Server MCP to TypingMind?

Jupiter MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Jupiter MCP Server MCP provide in TypingMind?

Jupiter MCP Server exposes 4 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Jupiter MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Jupiter MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇