Cortex Plugin logo

Cortex Plugin

by TT-Wang

Persistent local memory for Claude Code, with automatic lesson extraction, markdown storage, and session-specific context retrieval.

Install Cortex Plugin

Run the project’s own setup commands, in order.

Setup steps from the project

TT-Wang/cortex-plugin installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Add to Claude Code
    claude plugin marketplace add TT-Wang/memem
    
  2. 2. Install
    claude plugin install memem@memem-marketplace
    
  3. 3. Install
    git clone https://github.com/TT-Wang/memem.git
    
  4. 4. Run
    cd memem
    

Overview

TT-Wang/cortex-plugin MCP server gives Claude Code persistent, local-first memory across sessions. It mines completed conversation turns for decisions, conventions, bug fixes, and preferences, then stores them as human-readable Markdown in an Obsidian vault and retrieves relevant context for new sessions. Reach for it when an agent repeatedly needs project context and you want memory without cloud services or API keys.

Use cases

  • Retain project decisions between Claude Code sessions
  • Surface conventions when starting a new coding task
  • Search prior conversation turn pairs locally
  • Store agent memories as readable Obsidian Markdown

Key features

  • Persistent Markdown memory in an Obsidian vault
  • Stop-hook background lesson mining
  • Active Memory Slice session context
  • FTS5 transcript search with fallback mode
  • Automatic path-scoped retrieval
  • Local-first operation without API keys

Security & health

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

ActiveLast checked

Recent health check succeeded.

22/23 checks healthy over the last 117d

Adoption & maintenance

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

GitHub stars33Stargazers on the source repository.
Last commit3mo agoMost recent push to the default branch.
Directory activity1 upvotesConfig copies, upvotes, and views on AllMCPs.

How Cortex Plugin works

What TT-Wang/cortex-plugin MCP server does

TT-Wang/cortex-plugin MCP server adds persistent memory to Claude Code. It records durable information from conversations rather than requiring the user to repeat the same project details in every session. Extracted material can include technical decisions, project conventions, bug fixes, and user preferences.

The repository is now described as memem in its README, while the listing retains the TT-Wang/cortex-plugin name. Its storage model is local: memories are written as readable Markdown files under an Obsidian vault, including the default ~/obsidian-brain/memem/memories/ location. This makes the stored information inspectable outside the agent runtime.

The project belongs in the 🧠 Knowledge & Memory category because its primary function is retaining and recalling project-specific information over time.

How it works

A Stop hook starts a detached mine_delta process after conversation activity. The miner examines new conversation material and identifies candidates that may remain useful beyond the current session. The resulting memories are saved in the vault and can be ranked for later retrieval.

At session start, the plugin assembles query-relevant context. Its default runtime path is an Active Memory Slice, which provides a focused working state rather than injecting the entire vault. Retrieval uses a unified ranking engine combining cosine similarity, BM25, and FTS5. Current-session path context can also be derived automatically from the Claude transcript, allowing memories associated with recently accessed files to receive a path-based ranking bonus.

Transcript search uses a persistent FTS5 database at ~/.memem/transcript_fts.db. The index stores question-and-answer turn pairs and is updated incrementally during mining. The system can fall back to bounded grep-based searching when the FTS index is unavailable.

Setup and configuration

TT-Wang/cortex-plugin MCP server is intended for Claude Code and requires Python 3.11 or newer. Installation uses a self-healing uv bootstrap shim. The /cortex-doctor command provides a preflight check for the installation and runtime. The project also exposes a --doctor canary check for diagnostic use.

No cloud service or API key is required. The repository describes the design as local-first, with the vault and transcript index stored on the local machine. If the claude CLI is unavailable, the plugin can continue in an FTS-only degraded mode rather than relying on remote services.

Consult the repository’s current setup instructions before deploying it.

Tools and capabilities

The MCP surface was reduced to six tools in v2.9.0.

  • active_memory_slice returns session-relevant working memory and accepts optional path context.
  • transcript_search searches indexed conversation turn pairs.
  • memory_save stores a memory and can accept associated paths.
  • Path-scoped retrieval uses memory paths frontmatter and automatically derived session paths.
  • The miner can reconcile candidates as additions, updates, supersessions, or no-ops, with safeguards around destructive changes.
  • Profiles, working rules, and an episodic title index organize different kinds of retained context.

Several older MCP tools, including memory_recall, memory_graph, memory_list, memory_import, context_assemble, and memory_remind, were removed from the MCP layer in v2.9.0, although corresponding CLI or library functionality may remain.

Limitations and notes

Memory quality depends on the miner identifying useful information from completed sessions. The system also needs local access to its vault and transcript data.

The fallback search mode is bounded and may provide less capability than the persistent FTS5 path. Retrieval derivation failures are designed not to propagate: path extraction can return an empty list while logging at debug or warning level. The project is licensed under MIT.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

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

Frequently Asked Questions about Cortex Plugin

The project uses a self-healing uv bootstrap shim and supports a /cortex-doctor preflight check.

The documentation identifies Claude Code as the target. It does not confirm compatibility with Claude Desktop.

No. The project is described as local-first, with no cloud services or API keys required.

Memories are stored as human-readable Markdown in an Obsidian vault, with the documented default path under ~/obsidian-brain/memem/memories/.

The plugin supports an FTS-only degraded mode when the claude CLI is unavailable.

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 PreviewCortex Plugin AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/tt-wang-cortex-plugin?style=directory)](https://allmcps.com/mcp/tt-wang-cortex-plugin)
HTML Embed
<a href="https://allmcps.com/mcp/tt-wang-cortex-plugin"><img src="https://allmcps.com/api/badge/tt-wang-cortex-plugin?style=directory" alt="Cortex Plugin on AllMCPs" /></a>