SwapHunt crypto market context
v0.9.0Hyperliquid prices, regime, vol, funding, FOMO checks (x402, USDC); free Kalshi/Polymarket fees
Values you need
| Variable | What it is | |
|---|---|---|
X402_PAY | optional | Set to 1 to pay for calls. Without it every tool is a dry run that only reports the price. |
PRIVATE_KEY_FILE | optional | 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_KEY | optional secret | Optional, only needed to pay (with X402_PAY=1): private key of a dedicated wallet (alternative to PRIVATE_KEY_FILE) |
MAX_SPEND_USD | optional | Spending cap per session in USD Default: 0.10 |
PAYTO_ALLOWLIST | optional | 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_FILE | optional | 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_URL | optional | 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.0Add 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/mcpAdd 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
- 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).
- Restart or reload the client so it starts the server.
- 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, ….
- 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