Skip to main content
Glama
coinspot-mcp

coinspot-mcp

by ellermanj

coinspot-mcp

Python Model Context Protocol (MCP) server for the CoinSpot Australia API (v2).

It exposes public market data, read-only account tools, and optional trading/withdrawal tools to MCP clients such as Cursor.

Features

  • Public API – latest prices, buy/sell prices, open and completed order books

  • Read-only API – balances, open orders, order history, deposits/withdrawals, send/receive, affiliate/referral payments

  • Full-access API – quotes, deposit addresses, place/edit/cancel orders, buy/sell/swap now

  • Least-privilege exposure – trading/withdrawal tools are only registered when explicitly enabled

  • Runtime guards – optional confirm token, amount caps, and withdrawal address allowlist

  • Audit logging – sensitive tool outcomes logged with redacted parameters

  • HMAC-SHA512 auth – signs compact JSON bodies as required by CoinSpot

API reference: CoinSpot API v2 (legacy docs: v1)

Related MCP server: crypto_mcp

Requirements

  • Python 3.12+

  • A CoinSpot account and API key from API settings

Install

uv sync

Or with pip:

pip install -e .

Configuration

Copy .env.example and set credentials:

export COINSPOT_API_KEY=your_api_key
export COINSPOT_API_SECRET=your_api_secret

# Optional – disabled by default (tools are not even advertised)
export COINSPOT_ALLOW_TRADING=false
export COINSPOT_ALLOW_WITHDRAWALS=false

# Recommended when enabling destructive tools
export COINSPOT_DESTRUCTIVE_CONFIRM_TOKEN=long-random-string
export COINSPOT_MAX_ORDER_AMOUNT=0.01
export COINSPOT_MAX_WITHDRAW_AMOUNT=0.01
export COINSPOT_WITHDRAW_ADDRESS_ALLOWLIST=bc1qyouraddress

Use a read-only API key for balances/history only. Use a full-access key for trading. Withdrawals must also be enabled on the key in CoinSpot settings.

Run

Stdio MCP server (default for Cursor / Claude Desktop):

uv run coinspot-mcp
# or
uv run python -m coinspot_mcp

Cursor MCP config

Add to your MCP settings (e.g. ~/.cursor/mcp.json):

{
  "mcpServers": {
    "coinspot": {
      "command": "uv",
      "args": ["--directory", "/absolute/path/to/coinspot-mcp", "run", "coinspot-mcp"],
      "env": {
        "COINSPOT_API_KEY": "your_api_key",
        "COINSPOT_API_SECRET": "your_api_secret",
        "COINSPOT_ALLOW_TRADING": "false",
        "COINSPOT_ALLOW_WITHDRAWALS": "false"
      }
    }
  }
}

Example tools

Tool

Auth

Description

get_latest_prices

None

All market prices

get_latest_coin_price

None

Price for one coin/market

get_open_orders

None

Public order book

get_my_balances

RO/Full

Account balances

get_my_order_history

RO/Full

Completed orders

quote_buy_now / quote_sell_now

Full

Instant quotes

place_buy_order / place_sell_order

Full + COINSPOT_ALLOW_TRADING

Place limit orders

withdraw_coin

Full + COINSPOT_ALLOW_WITHDRAWALS

Withdraw to an address

Development

uv sync
uv run pytest

Security notes

Aligned with Salt Security MCP hardening themes (visibility, governance, runtime protection):

  • Prefer a read-only key when you only need balances and history.

  • Keep COINSPOT_ALLOW_TRADING and COINSPOT_ALLOW_WITHDRAWALS off unless intentionally enabling write paths; those tools are omitted from the tool catalog when disabled.

  • withdraw_coin always sends emailconfirm=YES; callers cannot disable CoinSpot email confirmation.

  • When enabling destructive tools, set COINSPOT_DESTRUCTIVE_CONFIRM_TOKEN, amount caps, and a withdrawal address allowlist.

  • Audit events are emitted on the coinspot_mcp.audit logger with redacted parameters.

  • Tool error responses are sanitized and do not include raw upstream response bodies.

License

MIT

Available Tools

28 tools
check_full_access_statusB
Read-only

Check that the configured full-access API credentials are working.

Inputs: no named parameters. Returns: result

check_readonly_statusC
Read-only

Check that the configured read-only/full API credentials are working.

Inputs: no named parameters. Returns: result

get_buy_now_coin_listB
Read-only

List coins available for Buy Now.

Inputs: no named parameters. Returns: result

get_buy_priceC
Read-only

Get the latest buy price for a coin.

Args:
    cointype: Coin ticker such as BTC.
    markettype: Optional market ticker such as USDT.

Inputs: cointype (required), markettype. Returns: result

get_coin_deposit_addressB
Read-only

Get deposit networks and addresses for a coin.

Args:
    cointype: Coin ticker such as BTC.

Inputs: cointype (required). Returns: result

get_completed_ordersB
Read-only

List recent completed public buy/sell orders for a coin market.

Args:
    cointype: Coin ticker such as BTC.
    markettype: Optional market ticker such as USDT.

Inputs: cointype (required), markettype. Returns: result

get_completed_orders_summaryB
Read-only

List recent completed public orders as a combined summary.

Args:
    cointype: Coin ticker such as BTC.
    markettype: Optional market ticker such as USDT.

Inputs: cointype (required), markettype. Returns: result

get_latest_coin_priceB
Read-only

Get latest prices for a coin, optionally against a market (e.g. USDT).

Args:
    cointype: Coin ticker such as BTC, ETH, or DOGE.
    markettype: Optional market ticker such as USDT. Defaults to AUD.

Inputs: cointype (required), markettype. Returns: result

get_latest_pricesA
Read-only

Get latest buy/ask/last prices for all CoinSpot markets.

Inputs: no named parameters. Returns: result

get_my_affiliate_paymentsB
Read-only

List completed affiliate payments.

Inputs: no named parameters. Returns: result

get_my_balanceA
Read-only

Get balance details for a single coin.

Args:
    cointype: Coin ticker such as BTC or AUD.
    available: If true, also return the available (unlocked) balance.

Inputs: cointype (required), available. Returns: result

get_my_balancesA
Read-only

List all coin balances with AUD value and rate.

Inputs: no named parameters. Returns: result

get_my_depositsB
Read-only

List your AUD deposit history.

Args:
    startdate: Optional UTC start date YYYY-MM-DD or UNIX epoch.
    enddate: Optional UTC end date YYYY-MM-DD or UNIX epoch.

Inputs: enddate, startdate. Returns: result

get_my_market_order_historyB
Read-only

List your completed market order history.

Args:
    cointype: Optional coin ticker filter.
    markettype: Optional market ticker filter.
    startdate: Optional UTC start date YYYY-MM-DD or UNIX epoch.
    enddate: Optional UTC end date YYYY-MM-DD or UNIX epoch.
    limit: Optional max records (default 200, max 500).

Inputs: limit, enddate, cointype, startdate, +1 more. Returns: result

get_my_open_limit_ordersB
Read-only

List your open limit/stop orders.

Args:
    cointype: Optional coin ticker filter.

Inputs: cointype. Returns: result

get_my_open_market_ordersB
Read-only

List your open market orders.

Args:
    cointype: Optional coin ticker filter.
    markettype: Optional market ticker filter such as AUD or USDT.

Inputs: cointype, markettype. Returns: result

get_my_order_historyB
Read-only

List your completed order history.

Args:
    cointype: Optional coin ticker filter.
    markettype: Optional market ticker filter.
    startdate: Optional UTC start date YYYY-MM-DD or UNIX epoch.
    enddate: Optional UTC end date YYYY-MM-DD or UNIX epoch.
    limit: Optional max records (default 200, max 500).

Inputs: limit, enddate, cointype, startdate, +1 more. Returns: result

get_my_referral_paymentsA
Read-only

List completed referral payments.

Inputs: no named parameters. Returns: result

get_my_send_receive_historyB
Read-only

List your coin send and receive transaction history.

Inputs: no named parameters. Returns: result

get_my_withdrawalsB
Read-only

List your AUD withdrawal history.

Args:
    startdate: Optional UTC start date YYYY-MM-DD or UNIX epoch.
    enddate: Optional UTC end date YYYY-MM-DD or UNIX epoch.

Inputs: enddate, startdate. Returns: result

get_open_ordersB
Read-only

List public open buy/sell orders for a coin market.

Args:
    cointype: Coin ticker such as BTC.
    markettype: Optional market ticker such as USDT.

Inputs: cointype (required), markettype. Returns: result

get_readonly_market_completed_ordersB
Read-only

List completed market orders via the authenticated read-only API.

Args:
    cointype: Coin ticker such as BTC.
    markettype: Optional market ticker such as AUD or USDT.
    startdate: Optional UTC start date YYYY-MM-DD or UNIX epoch.
    enddate: Optional UTC end date YYYY-MM-DD or UNIX epoch.
    limit: Optional max records (default 200, max 500).

Inputs: cointype (required), limit, enddate, startdate, +1 more. Returns: result

get_readonly_market_open_ordersB
Read-only

List open market orders via the authenticated read-only API.

Args:
    cointype: Coin ticker such as BTC.
    markettype: Optional market ticker such as AUD or USDT.

Inputs: cointype (required), markettype. Returns: result

get_sell_now_coin_listA
Read-only

List coins available for Sell/Swap Now.

Inputs: no named parameters. Returns: result

get_sell_priceC
Read-only

Get the latest sell price for a coin.

Args:
    cointype: Coin ticker such as BTC.
    markettype: Optional market ticker such as USDT.

Inputs: cointype (required), markettype. Returns: result

quote_buy_nowB
Read-only

Get a Buy Now quote.

Args:
    cointype: Coin ticker such as BTC.
    amount: Amount to buy.
    amounttype: Whether amount is 'coin' or 'aud'.

Inputs: amount (required), cointype (required), amounttype. Returns: result

quote_sell_nowB
Read-only

Get a Sell Now quote.

Args:
    cointype: Coin ticker such as BTC.
    amount: Amount to sell.
    amounttype: Whether amount is 'coin' or 'aud'.

Inputs: amount (required), cointype (required), amounttype. Returns: result

quote_swap_nowA
Read-only

Get a Swap Now quote.

Args:
    cointypesell: Coin ticker to sell/swap from.
    cointypebuy: Coin ticker to receive.
    amount: Amount of the sell coin to swap.

Inputs: amount (required), cointypebuy (required), cointypesell (required). Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 28 tools

    Disambiguation3/5

    Several tools overlap across public, private, and read-only variants, such as get_open_orders, get_my_open_market_orders, and get_readonly_market_open_orders. History tools like get_my_order_history and get_my_market_order_history also have subtle boundaries. Descriptions help, but an agent could still misselect among credential-scoped or history-scoped endpoints.

    Naming Consistency5/5

    All tool names use consistent snake_case with clear verb_noun structure such as get_, check_, and quote_. Prefixes like get_my_ and get_readonly_ are used systematically to indicate credential or account scope. The naming is predictable throughout the set.

    Tool Count2/5

    With 28 tools, the surface is too large for the apparent domain and includes many parallel variants. Public, authenticated, and read-only versions multiply similar operations without enough differentiation. This exceeds the reasonable 3-15 tool range for a coherent MCP server.

    Completeness3/5

    The server covers market data, balances, order history, deposits, withdrawals, and quote generation well. However, it lacks actual trade execution and order cancellation despite having full-access credential checks and buy/sell/swap quote tools. These are notable gaps for a CoinSpot trading-oriented server.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      C
      quality
      D
      maintenance
      Provides access to CoinCap's cryptocurrency market data and technical analysis tools via MCP, supporting assets, exchanges, markets, and more.
      38
      7
      -
    • F
      license
      C
      quality
      Not graded
      maintenance
      Provides cryptocurrency market data (prices, symbols) and a gated demo trading flow via MCP tools, with safety defaults like dry-run and confirmation gates.
      6
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables fetching cryptocurrency prices, historical OHLC data, and news via CryptoCompare API through an MCP gateway.
      66 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables secure access to Binance public market data and authenticated account information through a compact set of MCP tools, with optional trading operations that can be explicitly enabled.
      MIT