SwapHunt crypto market context

v0.9.0
io.github.swaphunt/swaphunt-mcp Checked 1 day ago Published 1 day ago

Hyperliquid prices, regime, vol, funding, FOMO checks (x402, USDC); free Kalshi/Polymarket fees

Values you need

VariableWhat it is
X402_PAYoptional Set to 1 to pay for calls. Without it every tool is a dry run that only reports the price.
PRIVATE_KEY_FILEoptional Optional, only needed to pay (with X402_PAY=1): path to a file with the private key of a dedicated wallet holding a few dollars of USDC on Base
PRIVATE_KEYoptional secret Optional, only needed to pay (with X402_PAY=1): private key of a dedicated wallet (alternative to PRIVATE_KEY_FILE)
MAX_SPEND_USDoptional Spending cap per session in USD Default: 0.10
PAYTO_ALLOWLISToptional Comma-separated addresses the server may pay (default: SwapHunt's own); any other payTo is refused before signing, and an empty list pays no one
X402_PENDING_FILEoptional Journal of signed payments whose outcome is not known yet, so a retry never pays twice Default: ~/.local/state/swaphunt-mcp/pending-payments.json
BASE_RPC_URLoptional Base JSON-RPC used only to reconcile a payment with an unknown outcome (read-only) Default: https://mainnet.base.org

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add swaphunt-mcp -- uvx swaphunt-mcp==0.9.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "swaphunt-mcp": {
      "args": [
        "swaphunt-mcp==0.9.0"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "swaphunt-mcp": {
      "args": [
        "swaphunt-mcp==0.9.0"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "swaphunt-mcp": {
      "args": [
        "swaphunt-mcp==0.9.0"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.swaphunt-mcp]
command = "uvx"
args = ["swaphunt-mcp==0.9.0"]

Remote (hosted)

Run in a terminal
claude mcp add --transport http swaphunt-mcp https://api.swaphunt.dev/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "swaphunt-mcp": {
      "args": [
        "-y",
        "mcp-remote",
        "https://api.swaphunt.dev/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "swaphunt-mcp": {
      "url": "https://api.swaphunt.dev/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "swaphunt-mcp": {
      "type": "http",
      "url": "https://api.swaphunt.dev/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.swaphunt-mcp]
command = "npx"
args = ["-y", "mcp-remote", "https://api.swaphunt.dev/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: get_spending, pm_fees, get_fear_greed, get_fear_greed_compare, get_fear_greed_history, get_halving, get_price, get_prices, ….
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json