Memex logo

Memex

Persistent Zettelkasten memory for coding agents, stored as searchable Markdown cards with bidirectional links.

Install Memex

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

Setup steps from the project

memex 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. Install
    npm install -g @touchskyer/memex
    
  2. 2. Add to your MCP client
    npm install -g @touchskyer/memex && memex mcp-config --claude-code
    
  3. 3. Add to your MCP client
    npm install -g @touchskyer/memex && codex mcp add memex -- memex mcp
    

Overview

The memex MCP server gives AI coding agents persistent memory through Markdown knowledge cards stored in `~/.memex/cards/`. It provides MCP tools for searching, reading, writing, linking, archiving, and organizing cards, without a vector database or embeddings. Supported clients share the same card directory, so memories created in one environment can be used in another. Reach for it when an agent needs continuity across coding sessions and an editable, local knowledge store.

Use cases

  • Recall project decisions across coding sessions
  • Save implementation insights as linked Markdown cards
  • Inspect relationships between related notes
  • Share agent memory across supported clients
  • Browse a personal memory graph and timeline

Key features

  • Markdown card storage
  • Bidirectional wiki-links
  • Ranked card search
  • MCP and CLI interfaces
  • Timeline and graph views
  • Git-based synchronization

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/22 checks healthy over the last 84d

Adoption & maintenance

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

GitHub stars144Stargazers on the source repository.
Last commit1d agoMost recent push to the default branch.

How Memex works

What memex does

The memex MCP server stores agent knowledge as individual Markdown cards. Each card represents an atomic idea, decision, observation, or piece of project guidance. Cards can reference one another with [[wiki-links]], creating a bidirectional knowledge graph that agents and developers can inspect directly.

The default store is ~/.memex/cards/. Because the data is plain Markdown, it can be opened in an editor, searched from a terminal, or viewed through the included browser interface. The system does not require a vector database or embeddings.

Cards are intended to support two parts of an agent workflow: recalling relevant information before a task and recording useful conclusions afterward. The repository describes this as a Zettelkasten-style approach, with atomic notes, contextual links, and curated keyword entry points.

How it works

The MCP process runs over stdio when started with memex mcp. An MCP-compatible client can then call the server's memory operations.

The available operations correspond to the command-line functions documented by the project: ranked card search, card reading and writing, link and backlink inspection, adding links with context, archiving, and network organization. The organization workflow can identify orphans, hubs, and conflicts. All clients use the same local card directory, allowing a card written from Claude Code to be available in Cursor, Codex, Windsurf, or another configured MCP client.

An optional agentic-memory mode changes the workflow to include drafting, metadata enrichment, candidate retrieval, a create/update/skip decision, preview, writing, and verification. It is disabled by default and does not alter existing behavior when off.

Setup and configuration

Most non-plugin clients require Node.js 18 or newer. Install the package globally with npm install -g @touchskyer/memex, then configure the client to run memex with the argument mcp. The project documents client-specific installation paths for Cursor, Codex, Windsurf, and other MCP clients. VS Code/Copilot has an extension, and Claude Code has a plugin; those paths handle their own integration details.

Optional settings belong in ~/.memex/.memexrc. nestedSlugs enables slash-separated hierarchical card paths, searchDirs adds directories searched with --all, and experimental.agenticMemory enables the experimental workflow. The default for nested slugs and agentic memory is disabled.

Use memex serve to open a visual timeline at localhost:3939. With synchronization configured, the command can open the hosted web interface instead; memex serve --local forces the local interface. Git-based synchronization supports an automatically created private GitHub repository or a supplied remote URL, including GitLab remotes.

Tools and capabilities

The memex MCP server supports these documented capability groups:

  • Search cards with ranked results.
  • Read and write individual cards.
  • Inspect links and backlinks.
  • Add contextual [[wiki-links]] between cards.
  • Archive cards.
  • Analyze the card network for orphans, hubs, and conflicts.
  • Browse cards in timeline and graph views.
  • Import memories from other tools, including the documented OpenClaw source.

The CLI also includes health checks, configuration migration, Git synchronization, and a Flomo integration.

Limitations and notes

The memex MCP server is a local Markdown-based memory system, not a semantic-search service backed by embeddings. Search behavior is therefore tied to the card store and its configured directories.

Do not place secrets, credentials, tokens, or exact secret-file contents in queries or cards. The project rejects high-confidence raw secrets, removes credentials from URLs before saving, and masks tokenized URLs in displayed output. It cannot redact unsafe tool-call arguments that an AI client has already shown in its transcript, so sensitive values must be removed before invoking a tool.

Cross-device synchronization requires Git. Automatic GitHub repository creation requires the GitHub CLI and an authenticated session; supplying a remote URL avoids that requirement. The hosted interface may receive queries when synchronization is configured, while the local mode is available for offline use or when queries should not be sent to that web application.

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 Memex

memex is an MCP server that connects AI coding agents to a local Markdown card store in `~/.memex/cards/`. Its main tools support searching, reading, writing, linking, backlink inspection, archiving, and organizing persistent Zettelkasten-style memories across sessions and compatible clients.

Install Node.js 18 or newer and run `npm install -g @touchskyer/memex`, then configure your MCP client to start `memex mcp`. VS Code/Copilot and Claude Code have separate extension or plugin installation paths documented by the project.

Yes, memex works with Cursor through its MCP server. Install the package globally with Node.js 18 or newer, then use the documented one-click Cursor configuration or add `memex` with `mcp` as its argument.

memex stores cards in `~/.memex/cards/` by default. The cards are Markdown files that can be edited with normal tools, and all configured clients use the same directory.

Use the Git-based sync commands, such as `memex sync --init` and `memex sync on`. Automatic GitHub repository creation requires the GitHub CLI and authentication; you can instead provide a GitHub, GitLab, or self-hosted GitLab remote URL.

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 PreviewMemex AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/memex-3?style=directory)](https://allmcps.com/mcp/memex-3)
HTML Embed
<a href="https://allmcps.com/mcp/memex-3"><img src="https://allmcps.com/api/badge/memex-3?style=directory" alt="Memex on AllMCPs" /></a>