# TRA

An MCP server for autonomous trading agents where models only propose ideas, leaving market data, pricing, and execution to deterministic code.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 41
- Author: BijectiveLabs
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/BijectiveLabs/bitra
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/mcp/tra

## What it does

The server separates market reasoning from financial calculation. Language models review market conditions and share an opinion, but they cannot perform arithmetic, access private keys, or submit orders directly. Fixed code fetches live data, evaluates round-trip expenses like spreads and fees, and enforces hard risk boundaries.

Running the tool requires Python 3.11 or newer along with an API key from a supported model provider. Orders clear only when the projected edge covers transaction costs, and every accepted or rejected decision is saved directly to disk.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add bitra -- uvx bitra
```
uvx runs the command named after the package; if the README names another one, use uvx --from bitra <command>

### Codex

**Platform CLI**
```bash
codex mcp add tra -- uvx bitra
```
uvx runs the command named after the package; if the README names another one, use uvx --from bitra <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "tra": {
            "command": "uvx",
            "args": [
                "bitra"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from bitra <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "tra": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "bitra"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from bitra <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add tra uvx bitra
```
uvx runs the command named after the package; if the README names another one, use uvx --from bitra <command>

## When to use it
- block trades where expected margins do not cover transaction costs and slippage
- prevent model hallucinations from directly sizing positions or executing orders
- keep trade stops and target orders linked together upon venue entry
- record every agent proposal and system refusal to disk for post-trade reviews

## Example prompts
- Inspect the latest market data and retrieve agent proposals via tra
- Check round-trip execution costs and position sizing for the selected trading pair

## 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

---
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
