Skip to main content
Glama
bitflyer-mcp

bitflyer-mcp

by TakuroidX

bitflyer-mcp

Read-only MCP server for bitFlyer public market data. Lets Claude (Desktop / Code) and other MCP clients query bitFlyer's ticker, order book, recent executions, and exchange health in natural language.

Public market data only: no API key or account authentication is required. The server cannot access account balances, positions, private orders, or personal trade history, and cannot place or cancel orders. get_executions returns publicly available market executions.

⚠️ Not investment advice. This is an information tool. Trading crypto carries risk.

Tools

Tool

What it returns

get_ticker(product_code)

last price (ltp), best bid/ask, volume, timestamp

get_board(product_code, depth)

order book summarized to top depth levels (mid, spread, bids, asks)

get_executions(product_code, count)

recent trades (price, size, side, time)

get_board_state(product_code)

board state (RUNNING / CLOSED / CIRCUIT BREAK, SFD)

get_health(product_code)

exchange status (NORMAL / BUSY / STOP …)

list_markets()

all tradable products (spot / FX / futures)

product_code examples: FX_BTC_JPY (BTC margin, default), BTC_JPY (spot), ETH_JPY, XRP_JPY.

Related MCP server: bybit-trading

Install

# from PyPI is not published yet — install from source
git clone https://github.com/TakuroidX/bitflyer-mcp.git
cd bitflyer-mcp
python3 -m pip install -e .

Requires Python ≥ 3.10. Dependencies: mcp, httpx.

Use with Claude Desktop

Add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/):

{
  "mcpServers": {
    "bitflyer": {
      "command": "bitflyer-mcp"
    }
  }
}

Then ask Claude things like "What's the current FX_BTC_JPY price and spread on bitFlyer?"

Use with Claude Code

claude mcp add bitflyer -- bitflyer-mcp

Example

Illustrative, simplified output (sample prices, not live market data):

> bitFlyer の FX_BTC_JPY、今いくら?板の厚さは?
get_ticker → ltp ¥10,210,000 / best_bid ¥10,209,500 / best_ask ¥10,210,500
get_board  → mid ¥10,210,000 / spread ¥1,000 / 上位10段...

Design notes

  • Public-only / read-only — uses public market endpoints without account credentials.

  • Rate-limit aware — a minimum request interval keeps usage under bitFlyer's public per-IP limit (~500 req / 5 min).

  • Board summarization — the raw board has hundreds of levels; get_board returns the top-N to stay LLM-context-friendly.

  • bitFlyer has no native OHLC/candle endpoint, so this server does not fabricate one.

Development

python3 -m pip install -e . pytest pytest-asyncio
python3 -m pytest

License

MIT © TakuroidX

Available Tools

6 tools
get_boardA

bitFlyer の板情報 (オーダーブック) を上位 depth 段に要約して取得する (read-only)。

返す値: mid_price, spread, best_bid, best_ask, 上位 depth 段の bids/asks。 全板は数百〜千件あるため depth (既定10) 段に圧縮して返す。 product_code 例: FX_BTC_JPY, BTC_JPY。

Inputs: product_code, depth.

get_board_stateB

板の状態 (health, state, 特別気配 SFD など) を取得する (read-only)。

state 例: RUNNING (通常), CLOSED, STARTING, PREOPEN, CIRCUIT BREAK。 取引可能かの判断に使える。

Inputs: product_code.

get_executionsA

直近の約定履歴 (recent trades) を取得する (read-only)。

各約定: price, size, side (BUY/SELL), exec_date。count は 1〜100 (既定20)。

Inputs: product_code, count.

get_healthC

取引所の稼働状況を取得する (read-only)。

status 例: NORMAL, BUSY, VERY BUSY, SUPER BUSY, NO ORDER, STOP。

Inputs: product_code.

get_tickerA

bitFlyer の最新ティッカーを取得する (read-only)。

返す主な値: ltp (最終取引価格), best_bid / best_ask (最良気配), volume (出来高), timestamp。 product_code 例: FX_BTC_JPY (BTC証拠金FX), BTC_JPY (現物), ETH_JPY, XRP_JPY。

Inputs: product_code.

list_marketsA

bitFlyer で取引可能な全 product (現物・FX・先物) の一覧を取得する (read-only)。

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool targets a distinct piece of data: order book summary, board state, recent trades, exchange health, ticker, and market list. No overlap in purpose.

    Naming Consistency5/5

    All tools follow a consistent verb_noun snake_case pattern, using 'get_' for most and 'list_' for one, which is a standard alternative.

    Tool Count5/5

    6 tools is appropriate for a read-only market data server, covering essential endpoints without unnecessary clutter.

    Completeness5/5

    The set covers core market data: order book, trades, ticker, exchange status, and available markets. No obvious gaps for typical data retrieval needs.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      F
      maintenance
      A Model Context Protocol server that provides read-only access to Bybit's cryptocurrency exchange API, allowing users to query real-time cryptocurrency data using natural language.
      12
      16
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for cryptocurrency trading across multiple exchanges (Bybit, Binance, KuCoin, etc.) with real-time price data, comparison, and natural language query support. Integrates with AI assistants via the Model Context Protocol.
      MIT
    • F
      license
      A
      quality
      C
      maintenance
      A read-only MCP server for stock quotes, Coinbase prices, and Polymarket markets, supporting tools like get_stock_quote, get_coinbase_spot_price, and search_polymarket_markets.
      6
      1
      -
    • A
      license
      B
      quality
      D
      maintenance
      MCP server that exposes QuantXData's institutional crypto market data APIs to AI assistants, enabling natural language queries for trades, order books, OHLCV, options, and more across 120+ exchanges.
      12
      MIT