BB

blofin/blofin-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

12 stars 4 forks 품질 77 트렌드 19MIT

A Model Context Protocol (MCP) server for the BloFin exchange API. Provides tools for market data, account management, and trading operations.

개요

A Model Context Protocol (MCP) server for the BloFin cryptocurrency exchange API. Provides tools for market data, account management, and trading operations. - get_instruments - Get available trading instruments and contract specs - get_tickers - Get latest prices, bid/ask, 24h volume - get_orderbook - Get order book depth - get_trades - Get recent trades - get_mark_price - Get mark/index prices - get_candlesticks - Get OHLCV candlestick data - get_funding_rate - Get current funding rates - get_funding_rate_history - Get historical funding rates - get_balance - Get futures account balance - get_positions - Get open positions - get_leverage_info - Get leverage info for an instrument - set_leverage - Set leverage for an instrument - get_margin_mode - Get current margin mode for an instrument - set_margin_mode - Set margin mode for an instrument - get_position_mode - Get current position mode - set_position_mode - Set position mode - get_account_config - Get account configuration -...

README

원문 README의 일부입니다. 원문 보기.

BloFin MCP Server

A Model Context Protocol (MCP) server for the BloFin cryptocurrency exchange API. Provides tools for market data, account management, and trading operations.

Features

Public Data (no authentication required)

  • get_instruments - Get available trading instruments and contract specs
  • get_tickers - Get latest prices, bid/ask, 24h volume
  • get_orderbook - Get order book depth
  • get_trades - Get recent trades
  • get_mark_price - Get mark/index prices
  • get_candlesticks - Get OHLCV candlestick data
  • get_funding_rate - Get current funding rates
  • get_funding_rate_history - Get historical funding rates

Account (authentication required)

  • get_balance - Get futures account balance
  • get_positions - Get open positions
  • get_leverage_info - Get leverage info for an instrument
  • set_leverage - Set leverage for an instrument
  • get_margin_mode - Get current margin mode for an instrument
  • set_margin_mode - Set margin mode for an instrument
  • get_position_mode - Get current position mode
  • set_position_mode - Set position mode
  • get_account_config - Get account configuration

Trading (authentication required)

  • place_order - Place a new order (market, limit, post_only, fok, ioc)
  • cancel_order - Cancel an order
  • batch_orders - Place multiple orders at once
  • cancel_batch_orders - Cancel multiple orders at once
  • close_position - Close a position
  • get_open_orders - Get pending orders
  • get_order_history - Get order history
  • get_order_detail - Get specific order details
  • get_fills_history - Get trade fill history
  • place_tpsl - Place take-profit/stop-loss order
  • cancel_tpsl - Cancel a take-profit/stop-loss order
  • get_pending_tpsl - Get pending TP/SL orders
  • get_tpsl_history - Get TP/SL order history
  • place_algo_order - Place an algo order (trigger/conditional)
  • cancel_algo_order - Cancel algo orders
  • get_pending_algo_orders - Get pending algo orders
  • get_algo_order_history - Get algo order history

Asset Management (authentication required)

  • get_asset_balances - Get balances across account types
  • fund_transfer - Transfer funds between accounts
  • get_fund_transfer_history - Get transfer history
  • get_deposit_history - Get deposit history
  • get_withdrawal_history - Get withdrawal history
  • get_apikey_info - Get API key information

Important Risk Notice

  • Trading tools can place and cancel real orders.
  • Use demo environment first, then switch to production only when ready.
  • Create API keys with least privilege and restrict by IP whenever possible.
  • Never share your API key, secret, or passphrase.

Tool Coverage

Current implementation registers 40 tools in total:

  • Public Market Data: 8 tools
  • Account: 9 tools
  • Trading: 17 tools
  • Asset Management: 6 tools

Getting Your API Key

  1. Go to blofin.com and log in (or create an account)
  2. Navigate to APIs page
GitHub에서 전체 README 보기

설치

npx -y blofin-mcp
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "blofin": { "command": "npx", "args": ["-y", "blofin-mcp"], "env": { "BLOFIN_API_KEY": "your-api-key", "BLOFIN_API_SECRET": "your-api-secret", "BLOFIN_PASSPHRASE": "your-passphrase", "BLOFIN_BASE_URL": "https://openapi.blofin.com" } } } }