Skip to main content

MCP connector for perquants — pay-per-call Hyperliquid derivatives data (funding, basis, HIP-3 health) over x402.

Project description

perquants-mcp

MCP connector for perquants — specialized Hyperliquid derivatives data for AI agents, pay-per-call over x402 (USDC on Base). No account, no API key — your agent pays a few cents per call from its own wallet.

Tools:

Tool Returns Price
get_hip3_decision(dex, asset) Pre-trade risk gate — verdict (tradeable/caution/avoid), cost to execute, score + sub-components, funding, basis, OI-vs-cap, risk flags ~$0.05
get_hip3_preview(dex, asset) Verdict band + one-line reason (a cheap first check) free
get_hip3_health(dex, asset) HIP-3 market health: oracle deviation, liquidity, OI vs cap, flags, 0–100 score ~$0.02
get_funding(coin) Funding rate: latest, annualized, 24h/7d means, sign streaks ~$0.01
get_basis(coin) Spot-perp premium (basis) in bps + means, streaks, churn ~$0.01

get_hip3_decision is the primary tool — call it before trading or sizing a HIP-3 builder market (tokenized stocks, commodities, forex, pre-IPO). It's the one decision-ready call no free API packages. Methodology is public: https://api.perquants.com/api/v1/methodology.

Install

uvx perquants-mcp          # run with no install
# or
pip install perquants-mcp

Configure your wallet

Paid calls are settled on Base mainnet in USDC, so the connector needs a wallet private key with a little USDC (and a few cents of ETH for nothing — x402 settlement is gasless for the buyer). Use a dedicated, low-balance wallet, never your main one.

export PERQUANTS_BUYER_KEY=0x<private key of a Base wallet funded with USDC>

Without PERQUANTS_BUYER_KEY, the tools return a clear "payment required" error.

Use in Claude Desktop / Cursor

Add to your MCP config (e.g. claude_desktop_config.json):

{
  "mcpServers": {
    "perquants": {
      "command": "uvx",
      "args": ["perquants-mcp"],
      "env": { "PERQUANTS_BUYER_KEY": "0x<your Base wallet private key>" }
    }
  }
}

Then ask your agent things like "what's the funding on HYPE?" or "is the xyz:NVDA HIP-3 market healthy?" and it calls the tools (paying per call).

Use from Python

from perquants_mcp import PerquantsClient

client = PerquantsClient(buyer_key="0x...")   # omit to only read free/402 responses
print(client.get_json("/api/v1/hip3/xyz/NVDA"))

How it works

The connector is a thin client: it GETs the hosted perquants API, and on a 402 Payment Required it signs an x402 USDC payment with your wallet and retries. It holds no funds and runs locally — your key never leaves your machine.

Returns data/metrics, not financial advice.

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

perquants_mcp-0.1.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

perquants_mcp-0.1.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file perquants_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: perquants_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for perquants_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 736cbb5e0098de6535ec5fb09832a20bc1c7b630b934aff322b23bf40a525c03
MD5 a15e2c9b00d36bac3cda67a651adac50
BLAKE2b-256 4fa22584837beda1daea82cc5f377c76c8fd21dad0a8e3ac27196ba53caa3f27

See more details on using hashes here.

File details

Details for the file perquants_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: perquants_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for perquants_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 92aed4dee6d889ccea0b4b2079ad0889f2cd9390c1bc52204eca9f9b69447b49
MD5 937b1fbfec8675ee370a0305bfbbc5ba
BLAKE2b-256 1f746cc798e9529650da76b33c8f1a5300d862b3029a7e6123fb457c500c0639

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page