GUM Trading CLI & MCP

v0.3.1
io.github.jupnet/gum-cli Checked 31 minutes ago Published 5 days ago

Trade spot tokens, tokenized stocks, and up to 50x perps across chains on GUM by Jupiter.

Values you need

VariableWhat it is
GUM_SOLANA_SECRET_KEYoptional secret Optional base58 or JSON-array Solana private key for headless signing (otherwise uses ~/.config/gum profile).
GUM_EVM_PRIVATE_KEYoptional secret Optional 0x-prefixed EVM private key for headless signing (otherwise uses ~/.config/gum profile).
GUM_MAX_TRADE_USDoptional Optional per-trade or withdrawal USD limit enforced locally before signing.
GUM_API_URLoptional Optional Trading API base URL override (defaults to https://api.gum.ag/app/v1).

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add gum-cli -- npx -y --package=@gumag/cli@0.3.1 gumag mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "gum-cli": {
      "args": [
        "-y",
        "--package=@gumag/cli@0.3.1",
        "gumag",
        "mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "gum-cli": {
      "args": [
        "-y",
        "--package=@gumag/cli@0.3.1",
        "gumag",
        "mcp"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "gum-cli": {
      "args": [
        "-y",
        "--package=@gumag/cli@0.3.1",
        "gumag",
        "mcp"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.gum-cli]
command = "npx"
args = ["-y", "--package=@gumag/cli@0.3.1", "gumag", "mcp"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: whoami, get_balances, list_chains, get_deposit_addresses, get_history, get_perps_account, perps_deposit, perps_set_leverage, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json