
Tradememory Protocol MCP Server
by mnemox-aiio.github.mnemox-ai/tradememory-protocolv0.5.6
Layered memory for AI trading agents (trades, patterns, strategy), supporting MT5, Binance and Alpaca.
context tax
~4,675 tok/turn20 tools
security
100/100
cold start
5810 ms
freshness
Active32d ago
Our reading of Tradememory Protocol, from the data
Tradememory Protocol is a memory MCP server from mnemox-ai, listed in the official MCP Registry.
Its 20 tools add about 4,675 tokens to every model turn, heavier than the memory median of 1,980 tokens across 102 measured servers (measured 2026-10-23).
Maintenance is active: the last public signal was 32 days ago (2026-10-09). For comparison, 67% of memory servers are active or maintained.
With 1,430 GitHub stars it ranks #15 of 1,597 memory servers we index.
It runs locally on your machine over stdio.
Install Tradememory Protocol MCP server
Install in Claude Code
claude mcp add tradememory-protocol -- uvx tradememory-protocolInstall in Cursor
{
"mcpServers": {
"tradememory-protocol": {
"command": "uvx",
"args": [
"tradememory-protocol"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"tradememory-protocol": {
"command": "uvx",
"args": [
"tradememory-protocol"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"tradememory-protocol": {
"type": "stdio",
"command": "uvx",
"args": [
"tradememory-protocol"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"tradememory-protocol": {
"command": "uvx",
"args": [
"tradememory-protocol"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Try it in a sandbox first: this installs it with scripts off and starts it with no network, then lists its tools and token cost. How it works
npx mcpskillhub test pypi:tradememory-protocol
Context tax
Connecting this server adds ~4,675 tokens of tool definitions to every model turn (moderate, 20 tools). Measured 2026-10-23 via a sandboxed run; o200k tokenizer, worst case for clients that load all tools up front. How we measure
| Model | Per 1,000 turns | With prompt caching |
|---|---|---|
| Claude Opus 5.5 | $18.70 | $0.935 |
| Claude Sonnet 5.5 | $9.35 | $0.935 |
| Claude Haiku 5.5 | $0.468 | — |
Input prices as of 2026-10-06. Excludes your own prompt and output.
Tools (20)
remember_trade623 tokStore a trade into OWM multi-layer memory with automatic updates. Writes to episodic memory and automatically updates semantic (Bayesian), procedural (running averages + hold time + Kelly), and affective (EWMA confidence/streaks). Also writes to trade_records for backward compatibility.
recall_memories542 tokRecall memories using OWM outcome-weighted scoring. Queries episodic and semantic memories, scores them by outcome quality, context similarity, recency, confidence, and affective modulation. Returns ranked memories with score breakdown. Use order="losses_first" right before placing a trade: losing trades taken in similar conditions rank first, and the current mood (a losing streak) no longer pushes them down.
validate_strategy315 tokValidate a trading strategy using statistical tests (DSR + Walk-Forward + Regime + CPCV). For educational and research purposes only. Not financial advice. Upload a trade log CSV (QuantConnect format) or daily returns CSV. The tool runs four statistical tests: 1. Deflated Sharpe Ratio (DSR) — detects overfitting from multiple testing 2. Walk-Forward Validation — checks out-of-sample consistency 3. Regime Analysis — performance across bull/bear/crisis markets 4. CPCV — cross-validated Sharpe stability across time periods
compute_dqs281 tokCompute Decision Quality Score before executing a trade. Evaluates the quality of the decision *process* (not outcome) across 5 factors: regime match, position sizing vs Kelly, process adherence (OWM similarity), risk state, and historical pattern.
get_daily_root273 tokGet (or rebuild) the daily Merkle root for a UTC date. The Merkle root summarises every audit_chain entry whose `chained_at` falls inside the UTC day. Verifying this single 32-byte root proves the integrity of every TDR for that day without re-walking each one.
export_audit_trail266 tokExport Trading Decision Records for audit and compliance review. Provides a complete, tamper-evident record of trading decisions including the memory context (similar trades, beliefs) that informed each decision.
create_trading_plan240 tokCreate a prospective trading plan that activates when conditions are met. Stores a rule-based plan in prospective memory. The plan stays active until triggered, expired, or manually cancelled.
evolution_evolve_strategy222 tokRun full evolution loop — generate, backtest, select, eliminate. Multi-generation strategy evolution: generates candidate patterns via LLM, backtests on in-sample data, validates survivors on out-of-sample data, eliminates weak hypotheses. Returns graduated strategies and graveyard.
check_trade_legitimacy220 tokCheck if the agent has sufficient data and confidence to trade. Call this before making any trade decision. Evaluates sample size, memory quality, regime experience, streak state, and drawdown to determine whether the agent has earned the right to trade at full size.
verify_audit_chain216 tokVerify the integrity of the audit chain. Walks the chain from `from_seq` (default: 1, the genesis record) to `to_seq` (default: latest), checking that every record's `prev_hash` matches the previous record's `data_hash`, and that each `data_hash` equals SHA256(prev_hash || content_hash). Returns a dict with `verified`, `checked_count`, `first_break_at`, `reason`. A `first_break_at` of None with `verified=True` means the chain is intact across the verified range.
evolution_discover_patterns214 tokDiscover trading patterns from market data using LLM analysis. Uses Claude to analyze OHLCV data and generate candidate trading patterns with entry/exit conditions. Each pattern can be backtested afterward.
evolution_run_backtest206 tokBacktest a candidate pattern against historical OHLCV data. Takes a pattern dict (from discover_patterns) and runs a vectorized backtest. Returns fitness metrics: Sharpe ratio, win rate, trade count, max drawdown, total PnL.
evolution_fetch_market_datahttp160 tokFetch OHLCV market data from Binance for evolution analysis. Downloads historical price bars for backtesting and pattern discovery. Use this before discover_patterns or run_backtest to get data.
check_active_plans134 tokCheck active trading plans against current market context. Queries all active prospective plans, expires any past their expiry date, and matches remaining plans against the provided context.
get_behavioral_analysis120 tokGet behavioral analysis from procedural memory. Returns aggregate trading behavior stats: hold times, disposition ratio, lot sizing variance, and Kelly criterion comparison.
get_strategy_performance113 tokGet aggregate performance stats per strategy. Use this to evaluate which strategies are working and which need adjustment.
verify_audit_hash99 tokVerify the integrity of a Trading Decision Record. Recomputes the SHA256 data_hash from stored inputs and compares with the hash computed at decision time. A mismatch indicates tampering.
evolution_get_log81 tokGet the log of past evolution runs from this session. Returns a list of all evolution runs with their results, including graduated strategies, graveyard, token usage, and backtest counts. Data is in-memory (resets on server restart).
get_trade_reflection75 tokGet the full context and reflection for a specific trade. Use this to deep-dive into a particular trade's reasoning and lessons.
get_agent_state75 tokGet the current agent affective state (confidence, risk, drawdown). Returns confidence level, risk appetite, drawdown percentage, win/loss streaks, equity tracking, and a recommended action based on current drawdown severity.
Security signals
100/100 — no known issues found as of 2026-10-23, from the checks below. This is not a guarantee of safety; review what a server can do before connecting it.
Deductions
No findings from the checks that ran.
Checks
- ✓Repository hygiene (archived, activity, license, security policy)
- ✓Tool descriptions (prompt-injection and hidden-text heuristics)
- ○Package metadata (install scripts, provenance) — pending
- ○Source scan (secrets, CVEs, risky code) by vectra-guard — pending
Scan it yourself before installing with vectra-guard, the open-source agent security CLI (made by NavyaAI, which also runs MCPSkillHub). Scoring rules
Freshness
Active — last maintenance signal 32d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-09 · 32d ago · GitHub
Latest release
2026-10-02 · 39d ago · GitHub · v0.5.6
Package published
no data · npm/PyPI
Registry entry updated
2026-10-02 · 39d ago · official registry · v0.5.6
How it compares in Memory
Against the most-starred memory servers we index. Token cost is per model turn, measured from each server's live tool list.
| Server | Stars | Tools | Tokens / turn | Freshness | Runs |
|---|---|---|---|---|---|
| Tradememory Protocol (this) | 1,430 | 20 | 4,675 | Active | local |
| Memory | 91,356 | 9 | 949 | Active | local |
| Hindsight | 51,304 | — | not measured | Active | — |
| Codebase Memory | 46,873 | — | not measured | Active | local |
| Cognee | 32,506 | — | not measured | Active | — |
| Honcho | 7,681 | — | not measured | Active | hosted |
FAQ
›How do I install the Tradememory Protocol MCP server in Claude Code?
Run: claude mcp add tradememory-protocol -- uvx tradememory-protocol. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Tradememory Protocol require an API key?
No required environment variables are declared in its published metadata.
›Can I use Tradememory Protocol as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Tradememory Protocol in the official MCP registry?
Yes, as io.github.mnemox-ai/tradememory-protocol.
›How many tokens does Tradememory Protocol add to my context?
Its tool definitions total about 4,675 tokens, resent on every turn.
Sources and method
- Official MCP Registry entry
- updated 2026-10-02
- GitHub repository
- fetched 2026-10-19
- Package registry (npm / PyPI)
- listed
- Tool list (tools/list), measured by us
- 2026-10-23
- Security signals, computed by us
- 2026-10-23
- Last checked against all sources
- 2026-10-19
The description, packages and links come from the maintainer's own published metadata. Token cost, security signals, freshness and the reading above are MCPSkillHub's own measurements; see the methodology. Editorial standards are owned by Ramachandra Vikas Chamarthi, Founder & AI HPC Architect. Spot an error? Request a correction or claim the listing.
Alternatives to Tradememory Protocol
Other memory MCP servers.