TRA — Claude Code MCP server: what it does, how to install
An MCP server for autonomous trading agents where models only propose ideas, leaving market data, pricing, and execution to deterministic code.
claude mcp add bitra -- uvx bitraWhat TRA 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.
What it helps with
- 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 for the agent
- Inspect the latest market data and retrieve agent proposals via tra
- Check round-trip execution costs and position sizing for the selected trading pair
How to install TRA
Platform CLI
claude mcp add bitra -- uvx bitrauvx runs the command named after the package; if the README names another one, use uvx --from bitra <command>
Platform CLI
codex mcp add tra -- uvx bitrauvx runs the command named after the package; if the README names another one, use uvx --from bitra <command>
Config file
{
"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>
Config file
{
"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>
Platform CLI
gemini mcp add tra uvx bitrauvx runs the command named after the package; if the README names another one, use uvx --from bitra <command>
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about TRA
How to install TRA in Claude Code?
Run claude mcp add bitra -- uvx bitra in your terminal. You can also register it under the short alias with claude mcp add tra -- uvx bitra.
What does TRA do?
It runs trading agents under strict boundaries where models propose directions, while deterministic code verifies costs, sizes positions, and manages order execution.
What are the system requirements for TRA?
You need Python 3.11 or newer and at least one valid API key from a supported model provider.