tradememory-protocol
llms.txt1.4k starsChanged 9 months agoMITView on GitHub
Open-source, local-first memory and brake for AI trading agents, over MCP. It syncs fills (Hyperliquid by address, Alpaca read-only), finds where a trader's own history loses money, returns losing trades from similar conditions before the next order, and can refuse orders that break the trader's rules before they reach the broker (Alpaca MCP proxy, preview). TradeMemory Protocol is an open-source memory layer for AI-assisted trading systems. The memory server never places orders; tradememory sync reads fills from a venue, and…
- Installs packages
Trending
More talk lately.thin dataabout the whole repository
Who's talking about mnemox-ai/tradememory-protocol
- A Hacker News story“Show HN: TradeMemory Protocol – Memory layer for AI trading agents”Hacker News · Feb 23, 2026 · 1 points
- sudosubin/agents.nix“agent-skills.github.mnemox-ai.tradememory-protocol: 0.5.5 → 0.5.6”GitHub · Oct 3, 2026
- sudosubin/agents.nix“agent-skills.github.mnemox-ai.tradememory-protocol: init at 0.5.5”GitHub · Sep 30, 2026
- LLMQuant/awesome-trading-agents“docs: refresh bi-weekly curation entries”GitHub · May 18, 2026
- punkpeye/awesome-mcp-servers“Update TradeMemory Protocol description to v0.5.0”GitHub · Mar 16, 2026
The biggest 5 of 8 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 8
Talked about on GitHub and Hacker News (8 times).
On GitHub · 7
- Oct 3, 2026agent-skills.github.mnemox-ai.tradememory-protocol: 0.5.5 → 0.5.6 — sudosubin/agents.nix0 reactions
- Sep 30, 2026agent-skills.github.mnemox-ai.tradememory-protocol: init at 0.5.5 — sudosubin/agents.nix0 reactions
- May 18, 2026docs: refresh bi-weekly curation entries — LLMQuant/awesome-trading-agents0 reactions
- Mar 16, 2026Update TradeMemory Protocol description to v0.5.0 — punkpeye/awesome-mcp-servers0 reactions · 3 comments
- Mar 8, 2026[MCP Catalog] New MCP server candidate: io.github.mnemox-ai/tradememory-protocol — obot-platform/mcp-catalog0 reactions
2 more on GitHub
- Mar 6, 2026feat: TradeMemory Bridge — persistent memory for AI trading agents — binance/binance-skills-hub0 reactions
- Feb 23, 2026Add TradeMemory Protocol to Finance section — punkpeye/awesome-mcp-servers0 reactions · 7 comments
On Hacker News · 1
- Feb 23, 2026Show HN: TradeMemory Protocol – Memory layer for AI trading agents1 point · 1 comment
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- trade-memorySkill
- tradememory-bridgeSkill
The file
We split this llms.txt into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Add to claude_desktop_config.json: { "mcpServers": { "tradememory": { "command": "uvx", "args": ["tradememory-protocol"] } } }
≈ “Common” is an estimate: at least 1 in 5 of the 1,484 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
# TradeMemory Protocol
> Open-source, local-first memory and brake for AI trading agents, over MCP. It syncs fills (Hyperliquid by address, Alpaca read-only), finds where a trader's own history loses money, returns losing trades from similar conditions before the next order, and can refuse orders that break the trader's rules before they reach the broker (Alpaca MCP proxy, preview).
TradeMemory Protocol is an open-source memory layer for AI-assisted trading systems. The memory server never places orders; `tradememory sync` reads fills from a venue, and the optional proxy sits in front of a broker's MCP server. Memory is organized in three layers:
- L1 (Raw Trades): Every trade recorded automatically with full metadata
- L2 (Patterns): AI discovers what works and what doesn't across trade history
- L3 (Strategy): Memory becomes judgment — adaptive risk and strategy refinement
Key capabilities:
- 20 MCP tools, including remember_trade, recall_memories (order="losses_first" before a trade), get_behavioral_analysis, check_trade_legitimacy, and the audit-chain tools
- tradememory sync hyperliquid / alpaca: fills to closed trades to memory, plus a descriptive loss report
- tradememory proxy (preview): a policy brake in front of Alpaca's MCP server
- MT5 and Binance spot sync scripts in scripts/
- SHA-256 hash-chained, tamper-evident decision records with daily Merkle roots
## Install
### Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"tradememory": {
"command": "uvx",
"args": ["tradememory-protocol"]
}
}
}
### Claude Code
claude mcp add tradememory -- uvx tradememory-protocol
### pip
pip install tradememory-protocol
## Documentation
- [README](https://github.com/mnemox-ai/tradememory-protocol#readme): Full documentation with architecture diagrams.
- [PyPI](https://pypi.org/project/tradememory-protocol/): Install via `pip install tradememory-protocol`.
- [Connect your agent](https://github.com/mnemox-ai/tradememory-protocol#connect-your-agent): Claude Desktop, Claude Code, source, Docker.
## MCP Tools
- Memory: remember_trade, recall_memories, get_strategy_performance, get_trade_reflection, get_behavioral_analysis, get_agent_state, create_trading_plan, check_active_plans
- Audit: export_audit_trail, verify_audit_hash, verify_audit_chain, get_daily_root
- Checks: validate_strategy, check_trade_legitimacy, compute_dqs
- Evolution (research): evolution_fetch_market_data, evolution_discover_patterns, evolution_run_backtest, evolution_evolve_strategy, evolution_get_log
## Optional
- [Getting Started](https://github.com/mnemox-ai/tradememory-protocol/blob/master/docs/GETTING_STARTED.md): Trader and developer walkthroughs.
- [MT5 Setup](https://github.com/mnemox-ai/tradememory-protocol/blob/master/docs/MT5_SYNC_SETUP.md): Syncing MetaTrader 5 trades.
- [Alpaca brake walkthrough](https://github.com/mnemox-ai/tradememory-protocol/blob/master/docs/recipes/alpaca-brake.md): The proxy in front of Alpaca's MCP server, with real outputs.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

