1. Conduid
  2. Developer Tools
  3. Aiowhitebit MCP
MCP server · Developer Tools

Aiowhitebit MCP

Message Control Protocol (MCP) server and client implementation for WhiteBit cryptocurrency exchange API. Built on top of [aiowhitebit](https://github.com/doubledare704/aiowhitebit) library.

Unclaimed Apache-2.0 last commit a year ago devtoolspypi-package
54Fair

Scored 12 days ago · breakdown

About Aiowhitebit MCP

Aiowhitebit MCP is an MCP server published by doubledare704 in the Developer Tools category: message Control Protocol (MCP) server and client implementation for WhiteBit cryptocurrency exchange API. Built on top of [aiowhitebit](https://github.com/doubledare704/aiowhitebit) library.

Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/doubledare704/aiowhitebit-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Aiowhitebit MCP

Powered by Claude · Grounded in docs

I know everything about Aiowhitebit MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

3 checks have not been run yet.

Releases

v0.3.0v0.3.0 · 18 Oct 2025What's Changed Main implementation of mcp server with aiowhitebit by @doubledare704 in https://github.com/doubledare704/aiowhitebit-mcp/pull/1 Dev by @doubledare704 in https://github.com/doubledare704/aiowhitebit-mcp/pull/2 Prepared…
v0.2.7v0.2.7 · 6 Jul 2025What's Changed Main implementation of mcp server with aiowhitebit by @doubledare704 in https://github.com/doubledare704/aiowhitebit-mcp/pull/1 Dev by @doubledare704 in https://github.com/doubledare704/aiowhitebit-mcp/pull/2 Prepared…
v0.2.6v0.2.6 · 16 Jun 2025What's Changed Prepared refined version of mcp to updated packages and internal fixees. by @doubledare704 in https://github.com/doubledare704/aiowhitebit-mcp/pull/3 Full Changelog:…
v0.2.5v0.2.5 · 26 May 2025What's Changed Main implementation of mcp server with aiowhitebit by @doubledare704 in https://github.com/doubledare704/aiowhitebit-mcp/pull/1 Dev by @doubledare704 in https://github.com/doubledare704/aiowhitebit-mcp/pull/2 Full…
v0.2.4v0.2.4 · 3 May 2025What's Changed Main implementation of mcp server with aiowhitebit by @doubledare704 in https://github.com/doubledare704/aiowhitebit-mcp/pull/1 Full Changelog: https://github.com/doubledare704/aiowhitebit-mcp/commits/v0.2.4

README

aiowhitebit-mcp

Message Control Protocol (MCP) server and client implementation for WhiteBit cryptocurrency exchange API. Built on top of aiowhitebit library and fastmcp.

Features

  • MCP server for WhiteBit API with public endpoints
  • Support for multiple transport protocols (stdio, SSE, WebSocket)
  • Easy-to-use client for interacting with the MCP server
  • Command-line interface for running the server
  • Integration with Claude Desktop
  • Real-time market data via WebSocket
  • Comprehensive test coverage and type checking
  • Modern development tools (ruff, pyright, pre-commit)
  • Caching with disk persistence
  • Rate limiting and circuit breaker patterns

New in aiowhitebit 0.3.0 Integration

  • BookTicker WebSocket Streams: Real-time best bid/ask price updates
  • Funding History for Futures: Access historical funding rates for futures markets
  • Enhanced WebSocket Events: All WebSocket events now include optional metadata (event_time, update_id)

Quick Start

# Install the package
pip install aiowhitebit-mcp

# Run the server (stdio transport for Claude Desktop)
aiowhitebit-mcp --transport stdio

# Or run with SSE transport
aiowhitebit-mcp --transport sse --host 127.0.0.1 --port 8000

Basic Usage

Client with Network Transport

import asyncio
import os
from aiowhitebit_mcp.client import WhiteBitMCPClient

async def main():
    # Set the server URL (or use environment variable)
    server_url = "http://localhost:8000/sse"
    os.environ["WHITEBIT_MCP_URL"] = server_url

    async with WhiteBitMCPClient() as client:
        # Get market info
        btc_usdt = await client.get_market_resource("BTC_USDT")
        print("BTC/USDT Market Info:", btc_usdt)

        # Get real-time price via WebSocket
        price = await client.get_last_price("BTC_USDT")
        print("Current BTC/USDT price:", price)

        # Get order book
        orderbook = await client.get_orderbook("BTC_USDT")
        print("Order book:", orderbook)

        # Get funding history for futures market
        funding_history = await client.get_funding_history("BTC_USDT")
        print("Funding history:", funding_history)

        # Subscribe to BookTicker for real-time best bid/ask
        subscription = await client.bookticker_subscribe("BTC_USDT")
        print("BookTicker subscription:", subscription)

if __name__ == "__main__":
    asyncio.run(main())

Server Configuration

from aiowhitebit_mcp.server import create_server
import asyncio

# Create the server with custom configuration
server = create_server(
    name="WhiteBit API"
)

# Run the server with desired transport
if __name__ == "__main__":
    asyncio.run(
        server.run(
            transport="stdio",  # or "sse"
            host="127.0.0.1",   # for network transports
            port=8000           # for network transports
        )
    )

Available Tools

Public API

  • get_server_time(): Get current server time
  • get_market_info(): Get all markets information
  • get_orderbook(market: str): Get order book
  • get_recent_trades(market: str, limit: int = 100): Get recent trades
  • get_ticker(market: str): Get ticker information
  • get_fee(market: str): Get trading fees
  • get_server_status(): Get server status
  • get_asset_status_list(): Get status of all assets
  • get_funding_history(market: str): Get funding rate history for futures markets

WebSocket API

  • get_last_price(market: str): Get real-time price
  • get_market_depth(market: str): Get real-time order book
  • bookticker_subscribe(market: str): Subscribe to BookTicker stream for best bid/ask prices
  • bookticker_unsubscribe(market: str): Unsubscribe from BookTicker stream
  • connect_websocket(): Connect to WebSocket API
  • disconnect_websocket(): Disconnect from WebSocket API

Resources

  • whitebit://markets: Get all markets information
  • whitebit://markets/{market}: Get specific market information
  • whitebit://assets: Get all assets information
  • whitebit://assets/{asset}: Get specific asset information

Command-line Interface

# Show help
aiowhitebit-mcp --help

# Run with stdio transport (for Claude Desktop)
aiowhitebit-mcp --transport stdio

# Run with SSE transport
aiowhitebit-mcp --transport sse --host localhost --port 8000

Development

# Clone the repository
git clone https://github.com/yourusername/aiowhitebit-mcp.git
cd aiowhitebit-mcp

# Install development dependencies
pip install -e ".[dev]"

# Install pre-commit hooks
pre-commit install

# Run tests
pytest

# Run type checking
pyright src/aiowhitebit_mcp

# Run linting
ruff check .

Examples

Check the examples/ directory for more usage examples:

  • claude_desktop_server.py: Run the server with stdio transport for Claude Desktop
  • claude_desktop_client.py: Client for connecting to a stdio server
  • sse_server.py: Run the server with SSE transport
  • sse_client.py: Client for connecting to an SSE server

License

Apache License 2.0

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Aiowhitebit MCP

How do I install Aiowhitebit MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Aiowhitebit MCP safe to use with an AI agent?

Its trust score is 54 out of 100 (fair). It passes 2 of the 3 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Aiowhitebit MCP still maintained?

The last commit was a year ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.