← all repositories
mnemox-ai/tradememory-protocol

Your trading bot needs therapy, not just tickers

An MCP server that gives AI traders persistent memory, regulatory-grade audit trails, and the ability to learn from mistakes instead of repeating them.

1.4k stars Python AgentsDomain AppsLLMOps · Eval
tradememory-protocol
Not currently ranked — collecting fresh signals.
star history

What it does

TradeMemory Protocol is an MCP server that sits between your AI trading agent and its increasingly expensive amnesia. It records every trade decision across five memory layers (episodic, semantic, procedural, affective, and raw trade records), then surfaces relevant past outcomes when your agent faces similar market conditions. It also tracks confidence, drawdowns, and losing streaks — essentially building a therapist’s notes for your bot’s behavioral patterns.

The interesting bit

The “Outcome-Weighted Memory” framework is the unusual angle: recall scoring blends outcome quality, context similarity, recency, confidence, and even “emotional state” (the affective layer). This isn’t just vector RAG with a finance hat — it’s explicitly modeled on Tulving’s cognitive psychology work from 1972, applied to whether your AAPL long was a good idea last earnings season. The SHA-256 chained audit ledger with daily Merkle roots is overkill for most hobby traders, but deliberately designed for MiFID II and EU AI Act compliance submissions.

Key highlights

  • 17 MCP tools plus 35+ REST endpoints; runs fully offline with no external network calls
  • SHA-256 tamper-proof audit chain: per-record hashes, forward chaining, daily Merkle roots
  • Five-factor OWM recall before trading; one remember_trade call writes to all five memory layers after
  • Safety rails: pre-trade legitimacy gate (full/reduced/skip), behavioral drift detection, drawdown alerts
  • 1,428 tests passing; includes MT5 sync, strategy evolution engine (research phase), and failure taxonomy documenting 11 trading AI failure modes

Caveats

  • Empirical validation is ongoing with only n=40 trades so far; the authors note they need n≥100 for statistical significance
  • Evolution engine is explicitly in “research phase” with statistical gate pass rate “under optimization”
  • TSA timestamping, external anchoring, and zkML proof of inference are listed as not yet implemented in v0.5.2
  • “Pro” tier at $29/mo is marked “Coming Soon” with no timeline

Verdict

Worth a look if you’re building production trading agents and need either compliance-grade audit trails or non-trivial memory architecture beyond “stuff everything in a vector DB.” Skip it if you want execution tools — this deliberately doesn’t touch orders, API keys, or wallets. The cognitive-science framing could be genuine insight or academic window-dressing; the n=40 sample size suggests treating the OWM claims as promising but unproven.

Frequently asked

What is mnemox-ai/tradememory-protocol?
An MCP server that gives AI traders persistent memory, regulatory-grade audit trails, and the ability to learn from mistakes instead of repeating them.
Is tradememory-protocol open source?
Yes — mnemox-ai/tradememory-protocol is open source, released under the MIT license.
What language is tradememory-protocol written in?
mnemox-ai/tradememory-protocol is primarily written in Python.
How popular is tradememory-protocol?
mnemox-ai/tradememory-protocol has 1.4k stars on GitHub.
Where can I find tradememory-protocol?
mnemox-ai/tradememory-protocol is on GitHub at https://github.com/mnemox-ai/tradememory-protocol.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.