Tradememory Protocol logo

Tradememory Protocol

by mnemox-ai

Stores and recalls trading decisions, tracks behavioral state, and provides tamper-evident audit records for AI trading agents.

Install Tradememory Protocol

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mnemox-ai-tradememory-protocol": {
      "command": "uvx",
      "args": [
        "tradememory-protocol"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 20 tools correctly (1mo ago).

Overview

The mnemox-ai/tradememory-protocol MCP server records and recalls trading decisions across persistent memory layers for AI trading agents. It exposes tools for trade memory, behavioral state, trading plans, risk checks, strategy analysis, and SHA-256 audit verification, while leaving order execution to other systems. Install it locally with Python tooling and connect it to clients such as Claude Desktop or Cursor. Reach for it when an agent needs pre-trade context, post-trade reflection, behavioral monitoring, or an exportable decision history.

Use cases

  • Recall similar trades before opening a position
  • Record trade reasoning and outcomes after execution
  • Check confidence, drawdown, and losing streaks
  • Export decision records for compliance review

Key features

  • Persistent multi-layer trade memory
  • Outcome-weighted memory recall
  • Pre-trade legitimacy and risk checks
  • Trading plans and behavioral analysis
  • SHA-256 audit-chain verification
  • REST API with MT5 synchronization support

Tools20

What Tradememory Protocol lets your agent do. Expand a tool for its parameters.

Verified live~4.3k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

28/31 checks healthy over the last 77d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7d ago via OSV.dev · tradememory-protocol (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1.4kStargazers on the source repository.
Last commit3d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed20Callable tools this server registers over MCP.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How Tradememory Protocol works

What mnemox-ai/tradememory-protocol MCP server does

The mnemox-ai/tradememory-protocol MCP server provides a memory and governance layer for trading agents. It records trade details, outcomes, reasoning, market conditions, and related state so an agent can retrieve relevant prior decisions instead of relying only on its current context window.

The system is designed for stocks, forex, crypto, futures, and other markets. The repository describes use with MT5, Binance, and Alpaca, while also stating that the server does not place orders or manage funds. Execution remains the responsibility of a separate broker or trading system.

Trade records update episodic, semantic, procedural, affective, and trade-oriented memory. The server also supports trading plans, strategy performance, reflections, behavioral analysis, confidence tracking, drawdown and losing-streak checks, and pre-trade legitimacy decisions.

How it works

A typical workflow has four stages. Before a trade, recall_memories retrieves prior experiences using factors including outcome quality, context similarity, recency, confidence, and emotional state. The agent can then use check_trade_legitimacy as a five-factor pre-trade gate that returns a full, reduced, or skip decision.

Afterward, remember_trade records the decision and updates the memory layers. Scheduled reviews can use reflection and behavioral tools to identify trading mistakes, behavioral drift, or strategy decay. Planning tools support prospective decisions with conditional triggers.

Audit records receive SHA-256 content hashes when created. The repository also describes a forward-linked audit chain and daily Merkle roots, with tools for checking individual hashes, validating chain ranges, retrieving daily roots, and exporting records for review.

Setup and configuration

The mnemox-ai/tradememory-protocol MCP server can be installed from PyPI:

Terminal
pip install tradememory-protocol

For a local MCP client, the documented launch command is:

config.json
{
  "mcpServers": {
    "tradememory": {
      "command": "uvx",
      "args": ["tradememory-protocol"]
    }
  }
}

The README specifically shows configuration for Claude Desktop and a corresponding claude mcp add command for Claude Code. It also documents running from a source checkout with editable installation, plus a Docker Compose option. The project is self-hosted; no hosted service is planned according to its stated maintenance status.

Tools and capabilities

The documented MCP tool groups include:

  • Memory: remember_trade, recall_memories, get_strategy_performance, and get_trade_reflection
  • State and behavior: get_agent_state and get_behavioral_analysis
  • Planning: create_trading_plan and check_active_plans
  • Risk and governance: check_trade_legitimacy, validate_strategy, and compute_dqs
  • Evolution: market-data retrieval, pattern discovery, backtesting, strategy evolution, and evolution logs
  • Audit: export_audit_trail, verify_audit_hash, verify_audit_chain, and get_daily_root

The repository also describes a REST API with more than 35 endpoints covering trade records, reflections, risk, MT5 synchronization, OWM functions, evolution, and audit operations.

Limitations and notes

The mnemox-ai/tradememory-protocol MCP server is in feature-complete maintenance mode. It records and analyzes trading decisions; it is not an execution server, investment-advice system, or source of trade signals.

The repository’s audit documentation includes maturity limitations for some planned audit features, including TSA timestamping. Review LIMITATIONS.md before treating the audit output as sufficient for a particular regulatory process. The paid offering described by the maintainer is separate statistical analysis of user-provided trading records, not a required component of the self-hosted server.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Tradememory Protocol

Install the PyPI package with `pip install tradememory-protocol`, or configure the local MCP client to run `uvx tradememory-protocol`.

Yes. The README provides a Claude Desktop configuration using `uvx` and the `tradememory-protocol` package.

No. It records and recalls trading information and does not place orders or access trading funds.

It creates SHA-256 hashes for decisions and provides tools to verify individual hashes, audit-chain ranges, and daily Merkle roots.

The project describes support for stocks, forex, crypto, and futures, with references to MT5, Binance, and Alpaca.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTradememory Protocol AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mnemox-ai-tradememory-protocol?style=directory)](https://allmcps.com/mcp/mnemox-ai-tradememory-protocol)
HTML Embed
<a href="https://allmcps.com/mcp/mnemox-ai-tradememory-protocol"><img src="https://allmcps.com/api/badge/mnemox-ai-tradememory-protocol?style=directory" alt="Tradememory Protocol on AllMCPs" /></a>