Back to Browse

Gum Cli MCP Server

by Jupnet
Developer ToolsModerate7.2MCP RegistryLocal
Free

Server data from the Official MCP Registry

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

About

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

Security Report

7.2
Moderate7.2Low Risk

The GUM CLI and MCP server is a trading tool that signs transactions locally with a wallet key from environment variables or a profile, and requires a USD spending limit before signing. Its network access goes to the stated GUM API by default, and the README warns users to point it only at trusted APIs. Findings are limited to low-severity notes: the server signs transactions built by a remote API, and the perps file was truncated so its remainder could not be fully reviewed. Supply chain analysis found 1 known vulnerability in dependencies (0 critical, 1 high severity). Package verification found 1 issue.

6 files analyzed · 6 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

File System Write

Writes or modifies files on your machine. Check that this is expected for the tool.

What You'll Need

Set these up before or after installing:

Optional base58 or JSON-array Solana private key for headless signing (otherwise uses ~/.config/gum profile).Required

Environment variable: GUM_SOLANA_SECRET_KEY

Optional 0x-prefixed EVM private key for headless signing (otherwise uses ~/.config/gum profile).Required

Environment variable: GUM_EVM_PRIVATE_KEY

Optional per-trade or withdrawal USD limit enforced locally before signing.Optional

Environment variable: GUM_MAX_TRADE_USD

Optional Trading API base URL override (defaults to https://api.gum.ag/app/v1).Optional

Environment variable: GUM_API_URL

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "cli": {
      "command": "npx",
      "args": [
        "-y",
        "@gumag/cli@0.3.1"
      ],
      "env": {
        "GUM_API_URL": "your-gum-api-url-here",
        "GUM_MAX_TRADE_USD": "your-gum-max-trade-usd-here",
        "GUM_EVM_PRIVATE_KEY": "your-gum-evm-private-key-here",
        "GUM_SOLANA_SECRET_KEY": "your-gum-solana-secret-key-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

@gumag/cli

The GUM CLI (gumag) for people and agents, and a stdio MCP server. Its commands are generated from the GUM Trading API's OpenAPI spec, print JSON, and sign locally with a wallet kept on your machine.

Quick start

npx @gumag/cli auth login                    # a bot wallet, saved per profile in ~/.config/gum
npx @gumag/cli buy SOL 5                     # spot buy ($5 USD): quote, confirm, sign, submit, wait
npx @gumag/cli long BTC 25                   # GUM Perps long ($25 USD notional)
npx @gumag/cli perps markets list            # list live perpetual markets & funding rates
npx @gumag/cli cli search "withdraw usdc"    # find the command for a task
npx @gumag/cli schema swaps create           # a command's inputs, typed
npx @gumag/cli mcp                           # MCP server over stdio

Needs Node.js 22 or later. npm install -g @gumag/cli installs two commands, gumag and the shorter gumx, to use in place of npx @gumag/cli.

Connect to MCP clients & AI agents

# Claude Code
claude mcp add gum -- npx -y @gumag/cli@latest mcp

# Install the GUM trading skill (Claude Code, Codex, Cursor, etc.)
npx skills add jupnet/gum-cli

Design & safety guarantees

  • Every command prints JSON: indented on a terminal, one line when piped or run by an agent. Failures are { "error": { "code", "message" } } on stderr with exit code 1. A flag the command doesn't take is an error too, before anything is quoted or signed.
  • Signing commands stop with confirmation_required (and the quote) unless --yes when nobody is at the terminal, and never sign above the lowest of --max-usd, GUM_MAX_TRADE_USD and the profile's limit.
  • Use swaps quote, withdrawals quote, or perps orders quote for prices without signing. --dry-run (or MCP dryRun: true) on a signing command still signs locally and sends the signature for validation without executing (over MCP, a USD limit is still required).
  • If submission succeeds but status polling fails, status_unavailable retains the accepted ID, initial status, original error, and a read-only command in error.details.recovery.command. Keep the same environment when running it. Do not repeat the signed command. When the submit itself fails in a way that may still have gone through (a timeout, a lost connection, a server error or an unreadable reply), error.details.retrySubmission is false: check gumag history list before trying again.
  • Keys come from GUM_SOLANA_SECRET_KEY or GUM_EVM_PRIVATE_KEY, else the profile's key (auth login). --network devnet or GUM_API_URL point at another API; the default is https://api.gum.ag/app/v1. gumag signs the transactions that API builds, so point it only at an API you trust.
  • The MCP server is hand-written JSON-RPC over stdio rather than the MCP SDK, so npx installs two small dependencies and starts fast.

Security

See SECURITY.md for the local-signing security model and how to report vulnerabilities privately.

License

MIT

Reviews

No reviews yet

Be the first to review this server!