SwapHunt crypto market context MCP Server
Hyperliquid prices, regime, vol, funding, FOMO checks (x402, USDC); free Kalshi/Polymarket fees
SwapHunt crypto market context scores 63 (Good), licensed MIT and written in Python. It can be reached as a remote MCP endpoint. It declares 32 tools. Filed under Finance. GitHub shows 0 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
63 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
75/100 for listing completeness. Lost points: 32 of 32 tools barely described, short summary.
How quality is graded
Where the 63 comes from
22 + 20 + 0 + 10 + 4 + 7 = 63. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "swaphunt-mcp-server": { "command": "uvx", "args": [ "swaphunt-mcp" ], "env": { "X402_PAY": "", "PRIVATE_KEY_FILE": "", "PRIVATE_KEY": "YOUR_PRIVATE_KEY", "MAX_SPEND_USD": "0.10", "PAYTO_ALLOWLIST": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
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_KEYSecret | Optional | 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 |
PAYTO_ALLOWLIST | Optional | Comma-separated addresses the server may pay; any other payTo is refused before signing |
Tools32Tool docs quality grade F
All capabilitiesget_alt_seasontool$0.003
$0.003
$0.015
$0.003
get_correlationtool$0.003
$0.003
get_fear_greedtool$0.005
$0.002
$0.005
$0.004
$0.015
$0.003
About
SwapHunt x402 examples
SwapHunt's x402 API sells crypto market context per call (prices, market regime, volatility, funding, coin strength vs BTC and anti-FOMO sanity checks computed from Hyperliquid perpetuals, alt season, the Crypto Fear & Greed Index, the halving countdown, trading session and weekend liquidity), paid in USDC on Base, Polygon, Arbitrum or Solana with the x402 protocol. No account, no API key: the payment is the credential.
The examples pay on Base. Every endpoint has the same price on all four networks; see docs/endpoints.md for the network list.
These examples get you from zero to a paid call in a few minutes, and show how to build on it.
Examples
| Example | Language | What it does | Cost per run |
|---|---|---|---|
| quickstart | Python, TypeScript | One paid call to /v1/market/fear-greed | $0.005 |
| daily-brief | Python | Fear & Greed with its 1, 7 and 30-day changes, halving countdown, trading session and weekend liquidity, summarized by an LLM and delivered to stdout, Telegram, Discord or email | $0.013 + LLM tokens |
| mcp-server | Python (uvx swaphunt-mcp) | 30 SwapHunt tools (Hyperliquid prices, regime, volatility, funding, coin strength, dip/breakout/FOMO checks; Fear & Greed) for Claude and other AI agents, paid per call with a session cap | $0.001-0.015 per tool call |
| alert-bot | Python | Checks one price on an interval and messages you on Telegram when it crosses a threshold | $0.005 per check |
The API has 30 paid endpoints, from $0.001 to $0.015 per call; the live list with parameters is in the OpenAPI docs. Prices, parameters and example responses for the core endpoints: docs/endpoints.md.
Fear & Greed data comes from Alternative.me, which asks for attribution next to its data. The responses include an attribution field with the text to show.
Quickstart
You need a wallet with a few dollars of USDC on Base mainnet (see Security).
git clone https://github.com/swaphunt/x402-examples.git
cd x402-examples/quickstart/python
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
.venv/bin/python quickstart.py # dry run: shows the price, pays nothing
cp ../../.env.example ../../.env # put your PRIVATE_KEY in ../../.env
set -a; . ../../.env; set +a
.venv/bin/python quickstart.py --pay # pays $0.005
Output of the paid call:
Price: $0.005 USDC on eip155:8453, payTo 0x<swaphunt-address>
200 {'value': 30, 'label': 'Fear', 'timestamp': '2026-10-31T00:00:00', 'source': 'alternative.me', ...}
This run cost $0.005 (tx https://basescan.org/tx/0x<transaction-hash>)
The TypeScript version and a 10-line minimal snippet are in quickstart/.
How x402 works
- You call an endpoint without paying and get
402 Payment Required, with the price, network and receiving address in thePAYMENT-REQUIREDheader. - Your x402 client signs a USDC transfer for exactly that amount.
- You retry with the signed payment. A facilitator settles it on Base, and you get
200with the data and the transaction hash.
The official x402 client libraries (Python, TypeScript) do steps 2 and 3 for you.
Security
- Use a dedicated wallet with a few dollars of USDC on Base mainnet. Never your main wallet. The facilitator pays the gas, so the wallet only needs USDC.
- Dry run by default. Every example shows what it would pay and stops. It only pays with
--payorX402_PAY=1. - Spending cap. Every example refuses to spend more than
MAX_SPEND_USDper run (default $0.10) and prints what the run cost. - Payee allowlist (MCP server). With
PAYTO_ALLOWLISTset, the MCP server pays only the addresses you list and refuses any otherpayTobefore signing. See mcp-server. - Never commit keys. Put
PRIVATE_KEYand API keys in.env(ignored by git), using .env.example as the template.
Links
- SwapHunt: swaphunt.dev
- API base URL:
https://x402.swaphunt.dev(OpenAPI docs at /docs) - x402 protocol: x402.org
License
Nothing here is investment advice.
Frequently asked questions
What is SwapHunt crypto market context MCP Server?
Hyperliquid prices, regime, vol, funding, FOMO checks (x402, USDC); free Kalshi/Polymarket fees
How do I install SwapHunt crypto market context MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. SwapHunt crypto market context MCP Server runs locally from the PyPI package swaphunt-mcp with the command uvx swaphunt-mcp.
Is SwapHunt crypto market context MCP Server free and open source?
Yes. SwapHunt crypto market context MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does SwapHunt crypto market context MCP Server support remote (HTTP) connections?
Yes. SwapHunt crypto market context MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.
What tools does SwapHunt crypto market context MCP Server provide?
SwapHunt crypto market context MCP Server provides 32 tools, including get_alt_season, get_chop_detection, get_coin_strength, and get_compression_alert. See the full tool list for descriptions and parameters.
How is SwapHunt crypto market context MCP Server's trust score calculated?
SwapHunt crypto market context MCP Server scores 63 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.