pypi hyperliquid-price-mcpstdioMITupdated 1mo ago
Give your AI agent live market prices. An MCP server that lets an agent look up the current price, the full symbol list, and recent price history for 200+ coins.
price data mcp 能做什么?
price-data-mcp
Give your AI agent live market 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")andget_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": {
"market-prices": { "command": "hyperliquid-price-mcp" }
}
}
Restart your client. The agent now has four 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 (1m … 1d) |
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 price_data_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
(price_data_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
安装
把 price data mcp 添加到你的客户端。选择你正在使用的那个。
claude mcp add hyperliquid-price-mcp -- uvx hyperliquid-price-mcpcodex mcp add hyperliquid-price-mcp -- uvx hyperliquid-price-mcpamp mcp add hyperliquid-price-mcp -- uvx hyperliquid-price-mcp{
"mcpServers": {
"hyperliquid-price-mcp": {
"command": "uvx",
"args": [
"hyperliquid-price-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"hyperliquid-price-mcp": {
"command": "uvx",
"args": [
"hyperliquid-price-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"hyperliquid-price-mcp","command":"uvx","args":["hyperliquid-price-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"hyperliquid-price-mcp": {
"command": "uvx",
"args": [
"hyperliquid-price-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"hyperliquid-price-mcp": {
"command": "uvx",
"args": [
"hyperliquid-price-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"hyperliquid-price-mcp": {
"command": "uvx",
"args": [
"hyperliquid-price-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"hyperliquid-price-mcp": {
"type": "local",
"command": "uvx",
"args": [
"hyperliquid-price-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"hyperliquid-price-mcp": {
"command": {
"path": "uvx",
"args": [
"hyperliquid-price-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
uvx hyperliquid-price-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
评分
39 / 100
不完整
- 文档22/25
- 维护19/25
- 可信度13/20
- 能力0/15
- 安装体验12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 23 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
版本历史
| 版本 | 发布于 |
|---|---|
| 0.1.3最新 | 2026年8月9日 |