A

Advan

by solaradex · io.github.solaradex/advan

Enables AI agents to request Jupiter swap quotes, build unsigned Solana swap transactions for user signing, and access paid token-risk and wallet-portfolio data via x402.

npm Remote GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-solaradex-advan": {
      "command": "npx",
      "args": [
        "-y",
        "advan-mcp"
      ],
      "env": {
        "SOLANA_RPC_URL": "<YOUR_VALUE>",
        "JUPITER_API_KEY": "<YOUR_VALUE>",
        "HOST": "127.0.0.1",
        "PORT": "8787",
        "X402_PAY_TO": "<VALUE>",
        "X402_NETWORK": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
        "X402_RPC_URL": "<VALUE>",
        "MAX_TRADE_USD": "1000",
        "CDP_API_KEY_ID": "<VALUE>",
        "FEE_CHECK_MODE": "fail",
        "USAGE_LOG_PATH": "/data/usage.jsonl",
        "X402_PRICE_USD": "0.01",
        "PUBLIC_BASE_URL": "<VALUE>",
        "MAX_INPUT_AMOUNT": "<VALUE>",
        "MAX_SLIPPAGE_BPS": "300",
        "X402_PRICE_GUARD": "warn",
        "CDP_API_KEY_SECRET": "<VALUE>",
        "ADVAN_ALLOWED_HOSTS": "<VALUE>",
        "MAX_PRICE_IMPACT_PCT": "5",
        "X402_MIN_FEE_MULTIPLE": "5",
        "JUPITER_REFERRAL_ACCOUNT": "<VALUE>",
        "JUPITER_REFERRAL_FEE_BPS": "50",
        "JUPITER_REFERRAL_REQUIRED": "false",
        "REFERRAL_MISSING_MINT_MODE": "requote",
        "SWAP_SELF_BROADCAST_DEFAULT": "false",
        "X402_CDP_RECOVERY_INTERVAL_MS": "300000",
        "JUPITER_REFERRAL_TOKEN_ACCOUNT_SOL": "<VALUE>",
        "JUPITER_REFERRAL_TOKEN_ACCOUNT_USDC": "<VALUE>",
        "JUPITER_REFERRAL_TOKEN_ACCOUNT_USDT": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-solaradex-advan": {
      "command": "npx",
      "args": [
        "-y",
        "advan-mcp"
      ],
      "env": {
        "SOLANA_RPC_URL": "<YOUR_VALUE>",
        "JUPITER_API_KEY": "<YOUR_VALUE>",
        "HOST": "127.0.0.1",
        "PORT": "8787",
        "X402_PAY_TO": "<VALUE>",
        "X402_NETWORK": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
        "X402_RPC_URL": "<VALUE>",
        "MAX_TRADE_USD": "1000",
        "CDP_API_KEY_ID": "<VALUE>",
        "FEE_CHECK_MODE": "fail",
        "USAGE_LOG_PATH": "/data/usage.jsonl",
        "X402_PRICE_USD": "0.01",
        "PUBLIC_BASE_URL": "<VALUE>",
        "MAX_INPUT_AMOUNT": "<VALUE>",
        "MAX_SLIPPAGE_BPS": "300",
        "X402_PRICE_GUARD": "warn",
        "CDP_API_KEY_SECRET": "<VALUE>",
        "ADVAN_ALLOWED_HOSTS": "<VALUE>",
        "MAX_PRICE_IMPACT_PCT": "5",
        "X402_MIN_FEE_MULTIPLE": "5",
        "JUPITER_REFERRAL_ACCOUNT": "<VALUE>",
        "JUPITER_REFERRAL_FEE_BPS": "50",
        "JUPITER_REFERRAL_REQUIRED": "false",
        "REFERRAL_MISSING_MINT_MODE": "requote",
        "SWAP_SELF_BROADCAST_DEFAULT": "false",
        "X402_CDP_RECOVERY_INTERVAL_MS": "300000",
        "JUPITER_REFERRAL_TOKEN_ACCOUNT_SOL": "<VALUE>",
        "JUPITER_REFERRAL_TOKEN_ACCOUNT_USDC": "<VALUE>",
        "JUPITER_REFERRAL_TOKEN_ACCOUNT_USDT": "<VALUE>"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-solaradex-advan": {
      "command": "npx",
      "args": [
        "-y",
        "advan-mcp"
      ],
      "env": {
        "SOLANA_RPC_URL": "<YOUR_VALUE>",
        "JUPITER_API_KEY": "<YOUR_VALUE>",
        "HOST": "127.0.0.1",
        "PORT": "8787",
        "X402_PAY_TO": "<VALUE>",
        "X402_NETWORK": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
        "X402_RPC_URL": "<VALUE>",
        "MAX_TRADE_USD": "1000",
        "CDP_API_KEY_ID": "<VALUE>",
        "FEE_CHECK_MODE": "fail",
        "USAGE_LOG_PATH": "/data/usage.jsonl",
        "X402_PRICE_USD": "0.01",
        "PUBLIC_BASE_URL": "<VALUE>",
        "MAX_INPUT_AMOUNT": "<VALUE>",
        "MAX_SLIPPAGE_BPS": "300",
        "X402_PRICE_GUARD": "warn",
        "CDP_API_KEY_SECRET": "<VALUE>",
        "ADVAN_ALLOWED_HOSTS": "<VALUE>",
        "MAX_PRICE_IMPACT_PCT": "5",
        "X402_MIN_FEE_MULTIPLE": "5",
        "JUPITER_REFERRAL_ACCOUNT": "<VALUE>",
        "JUPITER_REFERRAL_FEE_BPS": "50",
        "JUPITER_REFERRAL_REQUIRED": "false",
        "REFERRAL_MISSING_MINT_MODE": "requote",
        "SWAP_SELF_BROADCAST_DEFAULT": "false",
        "X402_CDP_RECOVERY_INTERVAL_MS": "300000",
        "JUPITER_REFERRAL_TOKEN_ACCOUNT_SOL": "<VALUE>",
        "JUPITER_REFERRAL_TOKEN_ACCOUNT_USDC": "<VALUE>",
        "JUPITER_REFERRAL_TOKEN_ACCOUNT_USDT": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-solaradex-advan": {
      "command": "npx",
      "args": [
        "-y",
        "advan-mcp"
      ],
      "env": {
        "SOLANA_RPC_URL": "<YOUR_VALUE>",
        "JUPITER_API_KEY": "<YOUR_VALUE>",
        "HOST": "127.0.0.1",
        "PORT": "8787",
        "X402_PAY_TO": "<VALUE>",
        "X402_NETWORK": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
        "X402_RPC_URL": "<VALUE>",
        "MAX_TRADE_USD": "1000",
        "CDP_API_KEY_ID": "<VALUE>",
        "FEE_CHECK_MODE": "fail",
        "USAGE_LOG_PATH": "/data/usage.jsonl",
        "X402_PRICE_USD": "0.01",
        "PUBLIC_BASE_URL": "<VALUE>",
        "MAX_INPUT_AMOUNT": "<VALUE>",
        "MAX_SLIPPAGE_BPS": "300",
        "X402_PRICE_GUARD": "warn",
        "CDP_API_KEY_SECRET": "<VALUE>",
        "ADVAN_ALLOWED_HOSTS": "<VALUE>",
        "MAX_PRICE_IMPACT_PCT": "5",
        "X402_MIN_FEE_MULTIPLE": "5",
        "JUPITER_REFERRAL_ACCOUNT": "<VALUE>",
        "JUPITER_REFERRAL_FEE_BPS": "50",
        "JUPITER_REFERRAL_REQUIRED": "false",
        "REFERRAL_MISSING_MINT_MODE": "requote",
        "SWAP_SELF_BROADCAST_DEFAULT": "false",
        "X402_CDP_RECOVERY_INTERVAL_MS": "300000",
        "JUPITER_REFERRAL_TOKEN_ACCOUNT_SOL": "<VALUE>",
        "JUPITER_REFERRAL_TOKEN_ACCOUNT_USDC": "<VALUE>",
        "JUPITER_REFERRAL_TOKEN_ACCOUNT_USDT": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-solaradex-advan": {
      "command": "npx",
      "args": [
        "-y",
        "advan-mcp"
      ],
      "env": {
        "SOLANA_RPC_URL": "<YOUR_VALUE>",
        "JUPITER_API_KEY": "<YOUR_VALUE>",
        "HOST": "127.0.0.1",
        "PORT": "8787",
        "X402_PAY_TO": "<VALUE>",
        "X402_NETWORK": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
        "X402_RPC_URL": "<VALUE>",
        "MAX_TRADE_USD": "1000",
        "CDP_API_KEY_ID": "<VALUE>",
        "FEE_CHECK_MODE": "fail",
        "USAGE_LOG_PATH": "/data/usage.jsonl",
        "X402_PRICE_USD": "0.01",
        "PUBLIC_BASE_URL": "<VALUE>",
        "MAX_INPUT_AMOUNT": "<VALUE>",
        "MAX_SLIPPAGE_BPS": "300",
        "X402_PRICE_GUARD": "warn",
        "CDP_API_KEY_SECRET": "<VALUE>",
        "ADVAN_ALLOWED_HOSTS": "<VALUE>",
        "MAX_PRICE_IMPACT_PCT": "5",
        "X402_MIN_FEE_MULTIPLE": "5",
        "JUPITER_REFERRAL_ACCOUNT": "<VALUE>",
        "JUPITER_REFERRAL_FEE_BPS": "50",
        "JUPITER_REFERRAL_REQUIRED": "false",
        "REFERRAL_MISSING_MINT_MODE": "requote",
        "SWAP_SELF_BROADCAST_DEFAULT": "false",
        "X402_CDP_RECOVERY_INTERVAL_MS": "300000",
        "JUPITER_REFERRAL_TOKEN_ACCOUNT_SOL": "<VALUE>",
        "JUPITER_REFERRAL_TOKEN_ACCOUNT_USDC": "<VALUE>",
        "JUPITER_REFERRAL_TOKEN_ACCOUNT_USDT": "<VALUE>"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-solaradex-advan": {
      "command": "npx",
      "args": [
        "-y",
        "advan-mcp"
      ],
      "env": {
        "SOLANA_RPC_URL": "<YOUR_VALUE>",
        "JUPITER_API_KEY": "<YOUR_VALUE>",
        "HOST": "127.0.0.1",
        "PORT": "8787",
        "X402_PAY_TO": "<VALUE>",
        "X402_NETWORK": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
        "X402_RPC_URL": "<VALUE>",
        "MAX_TRADE_USD": "1000",
        "CDP_API_KEY_ID": "<VALUE>",
        "FEE_CHECK_MODE": "fail",
        "USAGE_LOG_PATH": "/data/usage.jsonl",
        "X402_PRICE_USD": "0.01",
        "PUBLIC_BASE_URL": "<VALUE>",
        "MAX_INPUT_AMOUNT": "<VALUE>",
        "MAX_SLIPPAGE_BPS": "300",
        "X402_PRICE_GUARD": "warn",
        "CDP_API_KEY_SECRET": "<VALUE>",
        "ADVAN_ALLOWED_HOSTS": "<VALUE>",
        "MAX_PRICE_IMPACT_PCT": "5",
        "X402_MIN_FEE_MULTIPLE": "5",
        "JUPITER_REFERRAL_ACCOUNT": "<VALUE>",
        "JUPITER_REFERRAL_FEE_BPS": "50",
        "JUPITER_REFERRAL_REQUIRED": "false",
        "REFERRAL_MISSING_MINT_MODE": "requote",
        "SWAP_SELF_BROADCAST_DEFAULT": "false",
        "X402_CDP_RECOVERY_INTERVAL_MS": "300000",
        "JUPITER_REFERRAL_TOKEN_ACCOUNT_SOL": "<VALUE>",
        "JUPITER_REFERRAL_TOKEN_ACCOUNT_USDC": "<VALUE>",
        "JUPITER_REFERRAL_TOKEN_ACCOUNT_USDT": "<VALUE>"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
SOLANA_RPC_URL secret Yes Solana RPC URL used for data reads and referral account checks. Defaults to the public mainnet-beta RPC.
JUPITER_API_KEY secret No Optional Jupiter API key sent as x-api-key. Keyless access is rate-limited to about 0.5 requests per second.
HOST No HTTP server listen host. Default is 127.0.0.1; Docker sets 0.0.0.0. Default: 127.0.0.1
PORT No HTTP server listen port. Default: 8787
X402_PAY_TO No Recipient USDC address for x402 paid tools (token_risk and wallet_portfolio). The USDC token account must already exist.
X402_NETWORK No x402 network CAIP identifier. Default is Solana devnet; mainnet is solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp. Default: solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1
X402_RPC_URL No RPC URL used for x402 payment requirements. Defaults from X402_NETWORK and is never set from SOLANA_RPC_URL.
MAX_TRADE_USD No Maximum trade size in USD. Set to 'off' to disable. A missing price refuses the trade while the cap is on. Default: 1000
CDP_API_KEY_ID No Coinbase CDP API key ID. When set with CDP_API_KEY_SECRET, CDP is the primary x402 facilitator.
FEE_CHECK_MODE No Fee validation mode. 'fail' withholds quotes/transactions when the referral fee is wrong; 'warn' returns them with feeCheck.ok false. Default: fail
USAGE_LOG_PATH No Path to the JSONL usage log. The Docker image default is /data/usage.jsonl. Default: /data/usage.jsonl
X402_PRICE_USD No Price in USD per paid x402 call for token_risk and wallet_portfolio. Default: 0.01
PUBLIC_BASE_URL No Public origin used for x402 resource URLs and Bazaar metadata when TLS is terminated by a proxy.
MAX_INPUT_AMOUNT No Optional maximum input amount in base units. If unset, a startup warning is printed.
MAX_SLIPPAGE_BPS No Maximum allowed slippage in basis points. Default: 300
X402_PRICE_GUARD No Behavior when X402_PRICE_USD is below X402_MIN_FEE_MULTIPLE times the facilitator fee. 'warn' logs a warning; 'refuse' exits at startup. Default: warn
CDP_API_KEY_SECRET No Coinbase CDP API key secret. When set with CDP_API_KEY_ID, CDP is the primary x402 facilitator.
ADVAN_ALLOWED_HOSTS No Allowed HTTP hosts when binding a public interface.
MAX_PRICE_IMPACT_PCT No Maximum absolute price impact percentage. Jupiter's priceImpactPct is treated as a fraction. Default: 5
X402_MIN_FEE_MULTIPLE No Minimum multiple of the applicable facilitator fee that X402_PRICE_USD must cover when X402_PRICE_GUARD is enforced. Default: 5
JUPITER_REFERRAL_ACCOUNT No Jupiter referral account. If unset, orders are sent with no referral and a startup warning is logged.
JUPITER_REFERRAL_FEE_BPS No Jupiter referral fee in basis points. Allowed range is 50–255; default is 50. Default: 50
JUPITER_REFERRAL_REQUIRED No If true, refuses to boot without JUPITER_REFERRAL_ACCOUNT and wSOL, USDC, and USDT referral token accounts. Default: false
REFERRAL_MISSING_MINT_MODE No Behavior when a token-to-token route picks a fee mint without a configured referral token account. 'requote' requotes without referral fee, 'fail' refuses, 'warn' returns original with feeCheck.ok false. Default: requote
SWAP_SELF_BROADCAST_DEFAULT No Default for build_swap_tx selfBroadcast. When true, JupiterZ routes are excluded and the taker broadcasts the transaction. Default: false
X402_CDP_RECOVERY_INTERVAL_MS No Milliseconds to wait before probing a failed CDP facilitator again. Default is 5 minutes. Default: 300000
JUPITER_REFERRAL_TOKEN_ACCOUNT_SOL No Referral token account for the wSOL fee mint.
JUPITER_REFERRAL_TOKEN_ACCOUNT_USDC No Referral token account for the USDC fee mint.
JUPITER_REFERRAL_TOKEN_ACCOUNT_USDT No Referral token account for the USDT fee mint.

Similar servers