# memex [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/iamtouchskyer/memex  
**GitHub Stars:** 144  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/memex-3

## Description
Zettelkasten-based agent memory system with bidirectional links

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/iamtouchskyer/memex), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
npm install -g @touchskyer/memex
```

2. Add to your MCP client:

```sh
npm install -g @touchskyer/memex && memex mcp-config --claude-code
```

3. Add to your MCP client:

```sh
npm install -g @touchskyer/memex && codex mcp add memex -- memex mcp
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/memex-3/readme_

