# mcp-foxbit

Wires the Foxbit exchange into your coding agent: markets, order book, orders, balances, Pix payouts. Useful if you trade there or build against its API.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 274
- Author: codespar
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/codespar/mcp-dev-latam/tree/HEAD/packages/crypto/foxbit
- Updated: 2026-09-27
- HTML: https://affpapa.org/en/nevibecode/mcp/mcp-foxbit

## What it does

The server exposes 21 tools to the agent. Public ones cover trading pairs and currencies, 24-hour ticker, order book, recent trades and candles. Private ones handle balances per currency or across all of them, placing and cancelling orders, your trade and transaction history, trading fees and limits.

BRL moves through Pix: create a deposit, list past ones, send a withdrawal to a Pix key. Crypto can go out to an external wallet address. Every private call is signed with HMAC-SHA256 and carries three headers, one of them `X-FB-ACCESS-SIGNATURE`.

Two variables drive it: `FOXBIT_API_KEY` and `FOXBIT_API_SECRET`, both generated in the exchange's API settings after you sign up and pass KYC. Lose the secret and the signature can't be built, so private tools fail. It runs through `npx`, which means Node.js on the machine.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `FOXBIT_API_KEY`, `FOXBIT_API_SECRET` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add mcp-foxbit -e FOXBIT_API_KEY=<FOXBIT_API_KEY> -e FOXBIT_API_SECRET=<FOXBIT_API_SECRET> -- npx -y @codespar/mcp-foxbit
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add foxbit --env FOXBIT_API_KEY=<FOXBIT_API_KEY> --env FOXBIT_API_SECRET=<FOXBIT_API_SECRET> -- npx -y @codespar/mcp-foxbit
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "foxbit": {
            "command": "npx",
            "args": [
                "-y",
                "@codespar/mcp-foxbit"
            ],
            "env": {
                "FOXBIT_API_KEY": "<FOXBIT_API_KEY>",
                "FOXBIT_API_SECRET": "<FOXBIT_API_SECRET>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "foxbit": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@codespar/mcp-foxbit"
            ],
            "env": {
                "FOXBIT_API_KEY": "<FOXBIT_API_KEY>",
                "FOXBIT_API_SECRET": "<FOXBIT_API_SECRET>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e FOXBIT_API_KEY=<FOXBIT_API_KEY> -e FOXBIT_API_SECRET=<FOXBIT_API_SECRET> foxbit npx -y @codespar/mcp-foxbit
```
Replace <…> with your own values

## When to use it
- read the order book before placing a trade
- place a limit order straight from the chat
- check balances across several currencies at once
- send BRL out to a Pix key
- look up maker and taker fees for a pair

## Example prompts
- Show me the BTC/BRL order book and the latest trades
- Place a limit buy for 0.01 BTC at the ticker price
- What are my balances and the USDT withdrawal limit?

## Similar
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89408
- [CCXT](https://affpapa.org/en/nevibecode/mcp/ccxt.md) — MCP server · ★ 44583
- [Finance Toolkit](https://affpapa.org/en/nevibecode/mcp/finance-toolkit.md) — MCP server · ★ 5458
- [EdgarTools](https://affpapa.org/en/nevibecode/mcp/edgartools.md) — MCP server · ★ 2814
- [LetsFG — Flights & Hotels](https://affpapa.org/en/nevibecode/mcp/letsfg-flights-hotels.md) — MCP server · ★ 2188
- [AutoTS](https://affpapa.org/en/nevibecode/mcp/autots.md) — MCP server · ★ 1434

From the same set: [codespar/mcp-dev-latam](https://affpapa.org/en/nevibecode/by/codespar/mcp-dev-latam.md) — 40 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
