npm @luziadev/mcp-serverstreamable-httpMITupdated 3mo ago
Model Context Protocol (MCP) server for cryptocurrency pricing data. Gives AI assistants like Claude real-time access to ticker prices, exchange information, and OHLCV history from the Luzia API.
luzia 能做什么?
@luziadev/mcp-server
Model Context Protocol (MCP) server for cryptocurrency pricing data. Gives AI assistants like Claude real-time access to ticker prices, exchange information, and OHLCV history from the Luzia API.
Features
- Real-time ticker prices from multiple exchanges (Binance, Coinbase, Kraken, OKX, Bybit)
- Historical OHLCV candlestick data for technical analysis
- Market information and trading pairs
- Exchange status and availability
Requirements
- A Luzia API key (get one here)
Remote connection (recommended)
The fastest way to use Luzia with your AI assistant is to connect to our hosted MCP server at https://mcp.luzia.dev/mcp. No install required. Just paste the URL and your API key.
Claude.ai web / Anthropic console
Settings → Integrations → Add custom MCP:
- URL:
https://mcp.luzia.dev/mcp - Authentication: Bearer token — paste your API key (
lz_...)
Claude Desktop (via mcp-remote)
Claude Desktop's native remote MCP support is still rolling out, so the easiest path today is the mcp-remote shim, which bridges a remote HTTP MCP to Claude Desktop's stdio interface.
Edit your config:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"luzia": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.luzia.dev/mcp",
"--header",
"Authorization:Bearer lz_your_api_key"
]
}
}
}
Restart Claude Desktop (Cmd+Q on macOS) and start asking questions.
VS Code, Cursor, Cline, Continue.dev
Paste the URL and Authorization header into the MCP settings for your tool:
- URL:
https://mcp.luzia.dev/mcp - Header:
Authorization: Bearer lz_your_api_key
MCP Inspector
npx @modelcontextprotocol/inspector
Then point the inspector at https://mcp.luzia.dev/mcp and add the Authorization: Bearer lz_... header.
Local install (advanced)
Prefer running the server locally? @luziadev/mcp-server still ships on npm and runs over stdio.
# Run directly with npx (no install needed)
LUZIA_API_KEY=lz_your_api_key npx -y @luziadev/mcp-server --stdio
Claude Desktop config (local stdio)
{
"mcpServers": {
"luzia": {
"command": "npx",
"args": ["-y", "@luziadev/mcp-server", "--stdio"],
"env": {
"LUZIA_API_KEY": "lz_your_api_key"
}
}
}
}
Claude Code config (local stdio)
Add to .claude/settings.json:
{
"mcpServers": {
"luzia": {
"command": "npx",
"args": ["-y", "@luziadev/mcp-server", "--stdio"],
"env": {
"LUZIA_API_KEY": "lz_your_api_key"
}
}
}
}
Available Tools
| Tool | Description |
|---|---|
get_ticker |
Get current price for a specific trading pair |
get_tickers |
Get prices for multiple pairs or all pairs on an exchange |
get_history |
Get historical OHLCV candlestick data for a trading pair |
get_exchanges |
List supported exchanges (CEX and DEX) and their status |
get_markets |
List trading pairs on an exchange, including DEX pool metadata |
get_tokens |
List canonical assets and on-chain tokens, with search and chain filters |
get_token |
Look up a single token by composite id (crypto:SYMBOL or {chain}:SYMBOL) |
get_fiat_currencies |
List ISO 4217 fiat currencies referenced by markets |
Available Prompts
Prompts are pre-built analysis templates that fetch data and generate structured insights. They are available in clients that support MCP prompts (e.g., Claude Desktop via the / menu).
Note: Claude Code does not support MCP prompts directly — use natural language instead (e.g., "Analyze BTC/USDT price movement on Binance") and it will call the underlying tools automatically.
| Prompt | Description |
|---|---|
analyze_price_movement |
Analyze price movements and trends for a trading pair |
analyze_ohlcv |
Analyze OHLCV candlestick data with technical analysis |
compare_exchanges |
Compare prices across exchanges for arbitrage opportunities |
Prompt Examples
analyze_price_movement
Fetches current ticker data and analyzes bid-ask spread, 24h stats, and volume.
Arguments:
exchange(required): e.g.,"binance","coinbase"symbol(required): e.g.,"BTC/USDT","ETH/USD"
Claude Desktop: Type / → select analyze_price_movement → fill in exchange: binance, symbol: BTC/USDT
Natural language (any client): "Analyze the current BTC/USDT price movement on Binance"
analyze_ohlcv
Fetches historical candlestick data and requests technical analysis including trends, support/resistance, volume patterns, and candlestick patterns.
Arguments:
exchange(required): e.g.,"binance"symbol(required): e.g.,"BTC/USDT"interval(optional):"1m","5m","15m","1h","1d"(default:"1h")period(optional): e.g.,"24h","7d","30d"(default:"24h")
Claude Desktop: Type / → select analyze_ohlcv → fill in exchange: binance, symbol: BTC/USDT, interval: 1h
Natural language (any client): "Analyze BTC/USDT OHLCV candles on Binance with 1h interval for the last 7 days"
compare_exchanges
Fetches ticker data from multiple exchanges and compares prices, spreads, and liquidity for arbitrage analysis.
Arguments:
symbol(required): e.g.,"BTC/USDT"exchanges(optional): comma-separated list, e.g.,"binance,coinbase,kraken"(default:"binance,coinbase,kraken")
Claude Desktop: Type / → select compare_exchanges → fill in symbol: BTC/USDT
Natural language (any client): "Compare BTC/USDT prices across all exchanges"
Rate Limits
Inherits from your Luzia subscription tier:
- Free: 25 requests/minute, 1,000/day
- Pro: 1,000 requests/minute, 20,000/day
Troubleshooting
"Unauthorized" errors
- Remote: verify your
Authorization: Bearer lz_...header is set and the key starts withlz_. - Stdio: verify
LUZIA_API_KEYis set in your MCP client config and that the key has not been revoked.
Remote session errors
- If your client reports "Unknown session id", the server was restarted or your session expired (30min idle). Reconnect and the client will re-initialize automatically.
Claude Desktop can't find the server (stdio)
- Verify
claude_desktop_config.jsonis valid JSON. - Ensure Node.js 20+ is installed (
node --version). - Restart Claude Desktop completely (Cmd+Q on macOS).
License
MIT - see LICENSE for details.
安装
把 luzia 添加到你的客户端。选择你正在使用的那个。
{
"servers": {
"mcp-server": {
"type": "http",
"url": "https://mcp.luzia.dev/mcp"
}
}
}Add to `.vscode/mcp.json` in your workspace.
claude mcp add mcp-server -- npx -y @luziadev/mcp-servercodex mcp add mcp-server -- npx -y @luziadev/mcp-serveramp mcp add mcp-server -- npx -y @luziadev/mcp-server{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@luziadev/mcp-server"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@luziadev/mcp-server"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@luziadev/mcp-server"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@luziadev/mcp-server"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@luziadev/mcp-server"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"mcp-server": {
"type": "local",
"command": "npx",
"args": [
"-y",
"@luziadev/mcp-server"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"mcp-server": {
"command": {
"path": "npx",
"args": [
"-y",
"@luziadev/mcp-server"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y @luziadev/mcp-serverRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
8 个工具
luzia 向已连接的智能体提供 8 个工具。
- get_ticker
- Get current price for a specific trading pair
- get_tickers
- Get prices for multiple pairs or all pairs on an exchange
- get_history
- Get historical OHLCV candlestick data for a trading pair
- get_exchanges
- List supported exchanges (CEX and DEX) and their status
- get_markets
- List trading pairs on an exchange, including DEX pool metadata
- get_tokens
- List canonical assets and on-chain tokens, with search and chain filters
- get_token
- Look up a single token by composite id (`crypto:SYMBOL` or `{chain}:SYMBOL`)
- get_fiat_currencies
- List ISO 4217 fiat currencies referenced by markets
评分
85 / 100
优秀
- 文档25/25
- 维护19/25
- 可信度16/20
- 能力10/15
- 安装体验15/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 103 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
- 8 tool(s) documented
- Provides prompt templates
- Provides resources
- 18 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
版本历史
| 版本 | 发布于 |
|---|---|
| 1.3.0最新 | 2026年4月17日 |
| 1.2.2 | 2026年4月7日 |
| 1.2.1 | 2026年3月10日 |