Atlas / MCP servers / mnemox-ai / TradeMemory

TradeMemoryBLOCK

mcp/mnemox-ai/tradememory

Decision audit trail + persistent memory for AI trading agents. Outcome-weighted recall, tamper-evident SHA-256 chain with RFC 3161 anchoring, 20 MCP tools.

Verdict
BLOCK
Grade
F
Trust score
48 /100
Exposed tools
20 17r · 3w · 0d
Transport
stdio · streamable-http
License
MIT
Stars
1,420
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

[](https://pypi.org/project/tradememory-protocol/) [](https://github.com/mnemox-ai/tradememory-protocol/actions/workflows/ci.yml) [](https://smithery.ai/server/mnemox-ai/tradememory-protocol) [](https://smithery.ai/server/mnemox-ai/tradememory-protocol) [](https://opensource.org/licenses/MIT)

Getting Started | Use Cases | API Reference | OWM Framework | Limitations | 中文版

Project status (August 2026): Feature-complete, in maintenance mode — bug and security reports are still reviewed; no new features or hosted service are planned. For paid work, see Trading Record Analysis.

Your trading AI has amnesia. And regulators are starting to notice.

It makes the same mistakes every session. It can't explain why it traded. It forgets everything when the context window ends. Meanwhile, MiFID II is raising the bar for algorithmic decision documentation (Article 17). The EU AI Act demands systematic logging of AI actions (Article 14). Your competitors' agents are learning from every trade.

The AI trading stack is missing a layer. Ev

Read from source at commit 17b3c9fa69e2OBSERVED · 2026-09-24
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code (pypi)
claude mcp add tradememory-protocol -- None tradememory-protocol==0.5.5
03

Exposed tools (20)

17 read · 3 write · 0 destructive.

ToolRiskDescription
check_active_plansreadCheck active trading plans against current market context.
check_trade_legitimacyreadCheck if the agent has sufficient data and confidence to trade.
compute_dqsreadCompute Decision Quality Score before executing a trade.
create_trading_planwriteCreate a prospective trading plan that activates when conditions are met.
evolution_discover_patternsreadDiscover trading patterns from market data using LLM analysis.
evolution_evolve_strategywriteRun full evolution loop — generate, backtest, select, eliminate.
evolution_fetch_market_datareadFetch OHLCV market data from Binance for evolution analysis.
evolution_get_logreadGet the log of past evolution runs from this session.
evolution_run_backtestwriteBacktest a candidate pattern against historical OHLCV data.
export_audit_trailreadExport Trading Decision Records for audit and compliance review.
get_agent_statereadGet the current agent affective state (confidence, risk, drawdown).
get_behavioral_analysisreadGet behavioral analysis from procedural memory.
get_daily_rootreadGet (or rebuild) the daily Merkle root for a UTC date.
get_strategy_performancereadGet aggregate performance stats per strategy.
get_trade_reflectionreadGet the full context and reflection for a specific trade.
recall_memoriesreadRecall memories using OWM outcome-weighted scoring.
remember_tradereadStore a trade into OWM multi-layer memory with automatic updates.
validate_strategyreadValidate a trading strategy using statistical tests (DSR + Walk-Forward + Regime + CPCV).
verify_audit_chainreadVerify the integrity of the audit chain.
verify_audit_hashreadVerify the integrity of a Trading Decision Record.
04

Trust audit

BLOCKgrade F · trust 48/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (7 observation(s))
Network
declared (7 observation(s))
Shell
declared (1 observation(s))
Dependencies
not all pinned
Secrets in source
found

Findings (25)

HIGHHard-coded secrets · secret.db_uri · CWE-798, CWE-321
alembic.ini:89
sqlalchemy.url = postgresql://tradememory:tradememory@localhost:5432/tradememory
HIGHHard-coded secrets · secret.db_uri · CWE-798, CWE-321
scripts/research/migrate_sqlite_to_pg.py:6
python scripts/research/migrate_sqlite_to_pg.py --sqlite data/tradememory.db --pg postgresql://tradememory:tradememory@localhost:5432/tradememory
HIGHHard-coded secrets · secret.db_uri · CWE-798, CWE-321
scripts/research/migrate_sqlite_to_pg.py:144
default="postgresql://tradememory:tradememory@localhost:5432/tradememory",
MEDIUMInformation disclosure · disclose.log_secret · CWE-209, CWE-532
scripts/research/compare_defi_fingerprints.py:274
print(f"  {'Sold token Jaccard distance':<35} {td['sold_jaccard_distance']:.4f}")
MEDIUMInformation disclosure · disclose.log_secret · CWE-209, CWE-532
scripts/research/compare_defi_fingerprints.py:275
print(f"  {'Bought token Jaccard distance':<35} {td['bought_jaccard_distance']:.4f}")
MEDIUMInformation disclosure · disclose.log_secret · CWE-209, CWE-532
scripts/research/compare_defi_fingerprints.py:277
print(f"  {'Sold token overlap':<35} {', '.join(td['sold_overlap'])}")
MEDIUMInformation disclosure · disclose.log_secret · CWE-209, CWE-532
scripts/research/compare_defi_fingerprints.py:279
print(f"  {'Bought token overlap':<35} {', '.join(td['bought_overlap'])}")
MEDIUMInformation disclosure · disclose.log_secret · CWE-209, CWE-532
scripts/research/fetch_whale_trades.py:258
print(f"Using Etherscan API {'with' if args.api_key else 'without'} API key")
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
hosted/server.py:52
"http://127.0.0.1",
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
src/tradememory/server.py:58
"http://127.0.0.1:5173",
LOWInventory / provenance · inv.binary · CWE-1104
docs/blueprint.docx
blueprint.docx
Why it matters. a compiled or binary member cannot be reviewed from source
Fix. ship source, or explain the binary in the README
LOWInventory / provenance · inv.hidden_file · CWE-1104
.pre-commit-config.yaml
.pre-commit-config.yaml
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
dashboard/.env.production
.env.production
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
scripts/research/dashboard.py:770
rc1, rc2, rc3, rc4 = st.columns(4)
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
scripts/research/dashboard.py:774
rc4.metric("Kelly", f"{risk_data.get('kelly_fraction', 0.0):.2%}")
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
dashboard/src/components/cards/BayesianBeliefs.tsx:1
import type { BeliefState } from '../../api/types';
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
dashboard/src/components/cards/ReflectionCard.tsx:4
import type { ReflectionSummary } from '../../api/types';
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
dashboard/src/components/charts/AdjustmentTimeline.tsx:1
import type { AdjustmentEvent } from '../../api/types';
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
dashboard/src/components/charts/ConfidenceCalibration.tsx:1
import type { CalibrationPoint } from '../../api/types';
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
dashboard/src/components/charts/DreamComparison.tsx:1
import type { DreamSession } from '../../api/types';
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
docs/MT5_SYNC_SETUP.md:60
INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
LOWObfuscation / stealth · obf.decode_call · CWE-506, CWE-94
src/tradememory/audit/merkle.py:16
return hashlib.sha256(bytes.fromhex(a) + bytes.fromhex(b)).hexdigest()
LOWObfuscation / stealth · obf.decode_call · CWE-506, CWE-94
src/tradememory/audit/tsa.py:70
_SHA256_OID_DER = bytes.fromhex("300d06096086480165030402010500")
LOWObfuscation / stealth · obf.decode_call · CWE-506, CWE-94
src/tradememory/audit/tsa.py:136
digest = bytes.fromhex(sha256_hex.lower())
LOWObfuscation / stealth · obf.decode_call · CWE-506, CWE-94
tests/test_audit_chain.py:72
expected = hashlib.sha256(bytes.fromhex(a) + bytes.fromhex(b)).hexdigest()

Gates applied: no_behavioural_pass.

Audited 2026-09-24 · audit v0.4.1 · source sha 17b3c9fa69e2full audit observations/trust-audit/mcp-server/mnemox-ai__tradememory.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-09-2417b3c9fa69e2BLOCKF48first audit
06

Questions

What is the TradeMemory MCP server?

Decision audit trail + persistent memory for AI trading agents. Outcome-weighted recall, tamper-evident SHA-256 chain with RFC 3161 anchoring, 20 MCP tools.

What tools does TradeMemory expose?

20 in total: 17 read-only, 3 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is TradeMemory safe to connect to an agent?

No — not without reading the findings first. The audit graded it F (48/100) and found 3 critical or high issues in the source. Each one is listed on this page with the file and line it is on.

What credentials does TradeMemory need?

It reads ANTHROPIC_API_KEY, BINANCE_API_KEY, BINANCE_API_SECRET, MT5_PASSWORD, SUPABASE_SERVICE_ROLE_KEY and TM_API_KEYS from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does TradeMemory run?

It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as dashboard at 0.0.0.

How current is this page?

The grade is for one exact copy of the source (17b3c9fa69e2), read on 2026-09-24. The repository is watched and re-audited when it changes.

Advertisement