mcpField
M
mcp-foxbit

mcp-foxbit

Local
github.com/codesparFinance275Updated 4w ago

About mcp-foxbit

mcp-foxbit is an MCP server for Foxbit, a Brazilian cryptocurrency exchange. It exposes market data, account balances, order management and Pix BRL transfers. It suits agents and developers who work with Brazilian exchange data or trading, and it signs requests with HMAC-SHA256.

Key features

  1. 01List markets, currencies and trading fees
  2. 02Get ticker, order book, trades and candles
  3. 03Query account balances, orders and trade history
  4. 04Create, look up and cancel buy or sell orders
  5. 05Create and list Pix BRL deposits and withdrawals
  6. 06Withdraw crypto to external wallet addresses

Use cases

  1. 01Have an agent read live BTC or ETH market data and order books
  2. 02Place orders under set conditions and track their status
  3. 03Review Pix deposit and withdrawal history

MCP support

This project is an MCP server that exposes 21 tools to MCP clients, covering Foxbit market data, trading and fund movements.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"codespar-mcp-foxbit": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-foxbit"
],
"env": {
"FOXBIT_API_KEY": "<FOXBIT_API_KEY>",
"FOXBIT_API_SECRET": "<FOXBIT_API_SECRET>"
}
}
}
}
Run commandnpx -y @codespar/mcp-foxbit
Environment variables to set
FOXBIT_API_KEYSecretAPI key for Foxbit
FOXBIT_API_SECRETSecretAPI secret for Foxbit HMAC-SHA256 signature

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@codespar/mcp-foxbit0.2.2

Tools

21

Saved tool list · updated 2w ago

This tool takes no parameters.

Details

From the project README

@codespar/mcp-foxbit

MCP server for Foxbit — Brazilian cryptocurrency exchange with trading, orderbook, and market data

npm License: MIT

Quick Start

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "foxbit": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-foxbit"],
      "env": {
        "FOXBIT_API_KEY": "your-key",
        "FOXBIT_API_SECRET": "your-secret"
      }
    }
  }
}
Claude Code
claude mcp add foxbit -- npx @codespar/mcp-foxbit
Cursor / VS Code

Add to .cursor/mcp.json or .vscode/mcp.json:

{
  "servers": {
    "foxbit": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-foxbit"],
      "env": {
        "FOXBIT_API_KEY": "your-key",
        "FOXBIT_API_SECRET": "your-secret"
      }
    }
  }
}

Tools (21)

ToolPurpose
list_marketsList all available trading pairs / markets on Foxbit
list_currenciesList all supported currencies (crypto and fiat) on Foxbit
get_currencyGet details of a specific currency (precision, min/max amounts, type)
get_tickerGet 24h ticker data for a market (price, volume, high/low)
get_orderbookGet order book (bids and asks) for a market
get_market_tradesGet recent public trades for a market (trade history / tape)
get_candlesGet OHLC candlestick data for a market
get_account_balancesGet account balances for all currencies
get_balanceGet account balance for a single currency
create_orderCreate a buy or sell order (limit or market)
get_orderGet order details by ID
list_ordersList orders with optional filters
cancel_orderCancel an open order by ID
list_tradesList user's executed trades (private trade history)
list_deposits_withdrawalsList deposits and withdrawals (transactions) for a currency
create_pix_depositCreate a Pix instant deposit (BRL).
list_pix_depositsList Pix deposit history (BRL instant deposits)
create_pix_withdrawalCreate a Pix withdrawal (BRL) to a Pix key
list_pix_withdrawalsList Pix withdrawal history (BRL fiat withdrawals)
create_crypto_withdrawalCreate a crypto withdrawal to an external wallet address
get_trading_feesGet current trading fees and limits (maker/taker per pair, withdrawal limits)

Authentication

Foxbit uses HMAC-SHA256 request signing. Each request includes three headers:

  • X-FB-ACCESS-KEY — API key
  • X-FB-ACCESS-TIMESTAMP — UNIX timestamp in milliseconds
  • X-FB-ACCESS-SIGNATURE — hex HMAC-SHA256 of timestamp + method + path + queryString + body using API secret

Base URL: https://api.foxbit.com.br/rest/v3

Get your credentials
  1. Go to Foxbit
  2. Create an account (KYC required for Brazilian residents)
  3. Navigate to API settings to generate key and secret
  4. Set the environment variables

Environment Variables

VariableRequiredDescription
FOXBIT_API_KEYYesAPI key from Foxbit
FOXBIT_API_SECRETYesAPI secret for HMAC-SHA256

Brazilian Crypto Exchanges in CodeSpar

Hedge liquidity across multiple BR venues:

  • Mercado Bitcoin — biggest BR exchange, 200+ tokens, deep altcoin coverage
  • Foxbit (this) — 2nd BR exchange, focus on BTC / ETH / LTC, strong institutional desk

Merchants and traders use both for best execution and redundancy.

Roadmap

v0.2 (planned)
  • get_candles — OHLCV candlestick data
  • create_withdrawal — Initiate crypto/PIX withdrawal
  • list_currencies — Available currencies and networks
  • get_fees — Trading fees for account tier
  • create_stop_order — Stop-limit / stop-market orders
v0.3 (planned)
  • Institutional / OTC desk integrations
  • WebSocket market data streams (where MCP transport allows)

Want to contribute? Open a PR or request a tool.

Links

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.