AI Trading is invite only. Check your Moby inbox for a code, or DM us on X for access. DM us on X →

Moby Agent Marketplace Connect Moby MCP Get the app

TradeMemory Protocol

by @MnemoxCOMMUNITY· v0.5.6· Updated Nov 2, 2026

mnemox-ai/tradememory-protocol★ 1,450

TradeMemory is a local-first memory MCP for trading agents: it stores every trade and its outcome, and puts your own losing trades in front of the agent before the next order.

About

TradeMemory Protocol is an open-source MCP server (pip install tradememory-protocol) that keeps a journal of an agent's trades on your machine. The agent records a trade and its reasoning with remember_trade, records how it ended, and calls recall_memories before proposing the next one; the losses-first order surfaces the bigger losses in similar conditions ahead of the wins. A sync command imports closed trades from a venue (Hyperliquid by public address, no key), and it prints where your own history loses money: size-ups after losing streaks, hold times of winners against losers.

What it adds to Moby. Memory across sessions. A Moby agent sees your open positions and ledger, but not why it took each trade or what pattern of yours loses. TradeMemory keeps that, locally.

How to pair it. Have the agent call remember_trade after every Moby order with the reason it gave, record outcomes from get_my_closed_trades, and call recall_memories before each proposal. The weekly read of where your history loses pairs well with a Moby Guardrails review.

What it does not do. It does not place Moby orders and has no market data of its own. Its broker brake (the proxy extra) is a preview for Alpaca only and does not apply to Moby; its Alpaca and Binance sync scripts take exchange keys you do not need here, so skip them. Memory is a local file: back it up.

What's inside this MCP

  • remember_trade: record a trade and its reasoning into five memory layers
  • recall_memories: recall similar trades; order=losses_first puts losing trades ahead of wins
  • get_behavioral_analysis and get_agent_state: patterns in your history; confidence, drawdown, streaks
  • create_trading_plan and check_active_plans: prospective plans with conditional triggers
  • check_trade_legitimacy: a 5-factor pre-trade gate (full, reduced, skip)
  • get_strategy_performance and get_trade_reflection: per-strategy results and reflections
  • export_audit_trail, verify_audit_hash, verify_audit_chain, get_daily_root: tamper-evident audit log
  • tradememory sync: import closed trades (Hyperliquid by public address, no key)
  • 20 MCP tools in all, plus a REST API

Install steps

Third-party code: Moby does not audit or control it. Read the source before you run it.

  1. pip install tradememory-protocol
  2. Claude Code: claude mcp add tradememory -- uvx tradememory-protocol
  3. Other clients: add a server with command uvx and args ["tradememory-protocol"].
  4. Skip tradememory sync alpaca and the proxy extra; they are for brokers, not Moby.
  5. Ask: After every Moby trade, record it with remember_trade and the reason you gave; before proposing a trade, call recall_memories losses-first and tell me what it shows.

Permissions

Reads
Trades you record through its tools; optional venue syncs (Hyperliquid by address)
Writes
A local trade memory and audit log on your machine
Tools
Local MCP server (`uvx tradememory-protocol`), Python 3.10+
Trade
Never trades

Review

Reviewed Nov 1, 2026. Source matches repo at commit cb599bd

On GitHub

mnemox-ai/tradememory-protocol

Stars
1,450
Forks
171

How it works with Moby

TradeMemory Protocol works on its own. With Moby your agent can also trade on what it finds.

  1. Set up AI Trading

    In the Moby app: create your agent and fund its Solana wallet.

    Get the app
  2. Connect Moby MCP

    Whale, KOL and smart-money data, plus buy, sell, SL and TP from the agent wallet.

    View Moby MCP
  3. Install TradeMemory Protocol

    Your agent reads it alongside Moby's onchain data and trades inside your Guardrails.

    Install

Reviewed Nov 1, 2026 · Report this item

Install TradeMemory Protocol