TradeMemory Protocol
by @MnemoxCOMMUNITY· v0.5.6· Updated Nov 2, 2026
- 3Contributors
- Oct 9, 2026Last commit
- MITLicense
- Nevertrades
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.
pip install tradememory-protocol- Claude Code:
claude mcp add tradememory -- uvx tradememory-protocol - Other clients: add a server with command
uvxand args["tradememory-protocol"]. - Skip
tradememory sync alpacaand theproxyextra; they are for brokers, not Moby. - 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
Links
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.
- Set up AI Trading
In the Moby app: create your agent and fund its Solana wallet.
Get the app - Connect Moby MCP
Whale, KOL and smart-money data, plus buy, sell, SL and TP from the agent wallet.
View Moby MCP - Install TradeMemory Protocol
Your agent reads it alongside Moby's onchain data and trades inside your Guardrails.
Install
Related
AureliaAurelia is a hosted MCP and REST API for live token prices, candles…- Brave Search MCPBrave Search MCP is Brave's official MCP server for web and news…
- Context7 MCPContext7 is Upstash's MCP for up-to-date library docs. Point your…
- DuckDB MCP ServerThe DuckDB MCP server from MotherDuck lets your agent run SQL on…
- Moby KnowledgeThe /agents page and agents.md as your agent's Moby reference: how…
- Moby Starter StrategiesReady-made strategy cards your agent reads with list_strategies and…
- Moby MCP connectorConnect any MCP-capable agent to Moby for live onchain research on…
Reviewed Nov 1, 2026 · Report this item
