Skip to main content

crypto-price-mcp

PyPI Python MCP License Deps

Give your AI agent live crypto prices. An MCP server that lets an agent look up the current price, the full symbol list, and recent price history for 200+ coins.

An LLM's knowledge is frozen at training time, so it can't answer "what's BTC trading at right now?". This closes that gap. It returns market data only. It never gives a trading signal or predicts direction.

What your agent can do with it

You: What's Bitcoin trading at, and how has it moved over the last few hours?

Agent (calls get_price("BTC") and get_candles("BTC", "1h", 6)): Bitcoin is at $65,047. Over the last 6 hours it's held between $65,020 and $65,132 on rising volume.

The agent fetches real numbers instead of guessing from stale training data.

Quickstart

pip install "hyperliquid-price-mcp[mcp]"

Add it to your MCP client (e.g. Claude Desktop's config):

{
  "mcpServers": {
    "crypto-prices": { "command": "hyperliquid-price-mcp" }
  }
}

Restart your client. The agent now has four crypto tools.

The tools

Tool Returns
get_price("BTC") {"symbol": "BTC", "price": 65047.5, "as_of": 1786204330859}
get_prices(["BTC","ETH"]) current price for each, missing ones flagged
list_symbols() every symbol it can price (200+)
get_candles("BTC","1h",100) recent OHLCV history (1m1d)

Example candle:

{"open_ms": 1786201200000, "open": 65104.0, "high": 65132.0,
 "low": 65020.0, "close": 65047.0, "volume": 409.43, "trades": 7014}

Also usable from plain Python

from crypto_price_mcp import prices

prices.get_price("BTC")                # {'symbol': 'BTC', 'price': 65047.5, 'as_of': ...}
prices.get_candles("ETH", "1h", 24)    # last 24 hourly candles
prices.list_symbols()                  # ['AAVE', 'ADA', 'APE', ...]

How it works

Prices come from the public Hyperliquid info API. The core fetching module (crypto_price_mcp/prices.py) uses the Python standard library only (no dependencies), so it's small and easy to audit. The mcp extra is only needed to run the server.

Tests

python -m unittest discover -s tests     # network is mocked, runs fully offline

Scope

A market-data source for agents. It reports prices and history. It does not give trading signals, predict where the price is going, or place orders.

License

MIT

Download files

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

Source Distribution

hyperliquid_price_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.

hyperliquid_price_mcp-0.1.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hyperliquid_price_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for hyperliquid_price_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0894d77cfa508d69adab9c917b13e3f15255f2d02aa3e0733c8677e37b3d1084
MD5 fc2c98ae57cac23b3e29bce403f3e5c5
BLAKE2b-256 e6632a6187f8cdeccb4c2d9bd53e2acca31317760bbe9124f09c7e7ebf3aaabc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hyperliquid_price_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4f3ea4f8f80427d6d69277febe72951838a307d845cb111867db4b1ae20c6735
MD5 3f06f18517469268a45986afed5e305e
BLAKE2b-256 8777860222b32699c1f052f089fbdb4e297739a20c1c31415d029986c542dcd5

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