Source-available · self-hostable · free

Memory for your AI. And for you.

A persistent, structured knowledge layer shared between people and language models, with delegated access control.

Free to use. No installation required.

What is Memex

A shared memory layer for people and language models.

Memex is a knowledge management system built on plain Markdown documents, organised into isolated workspaces called brains. People author content through web, desktop and mobile clients. AI assistants connect through the Model Context Protocol (MCP) and operate on the same corpus — retrieval, reading and writing — so that context persists across sessions, models and team members.

Why we built it

Switch to another AI, and it has forgotten everything about you.

I am a developer, and I work with AI all day. You know the feeling: you spend weeks with an assistant, it learns your projects, your clients, the way you like things done. Then you try another one, and you are a stranger again. When I moved from ChatGPT to Claude, I lost a full day explaining everything from the start. I had already been through it once, going from Gemini to ChatGPT.

With a team it gets worse. Nobody ever had the latest information about a client. One of us had it in a chat, another in a document, a third in their head, and each person’s AI was working from a different version of the truth.

So I built the thing I was missing: one memory that belongs to you, that your whole team keeps up to date, and that any AI you connect can read and write. Switch assistant, add a colleague, start a new conversation: everyone picks up where the last one left off.

Read the full story

How it works

A hybrid retrieval pipeline for context-grounded answers.

Lexical search

A BM25-ranked inverted index resolves exact-match queries — proper nouns, references, identifiers — and is updated incrementally on every write.

Semantic search

Each passage is encoded as a 256-dimension dense embedding by a multilingual model covering 101 languages, enabling cross-lingual retrieval: a query in French matches a document written in English.

Rank fusion

Lexical and semantic result sets are combined with Reciprocal Rank Fusion, a rank-based method that requires no score calibration or corpus-specific tuning.

Structural chunking

Documents are segmented into passages of roughly 250 tokens along their own structure — headings, paragraphs, code blocks — preserving semantic coherence within each unit.

Link graph

Wiki links between documents form a directed graph that assistants can traverse: outbound links, backlinks and unresolved references.

The retrieval pipeline in detail

For your AI

Fine-grained, delegated access control for AI agents.

Model Context Protocol

Standards-based interoperability with any MCP client over streamable HTTP. A single endpoint to register with your assistant.

OAuth 2.1 with PKCE

Delegated authorisation: each assistant is issued its own revocable credentials, bound to an explicit consent grant.

Per-folder authorisation scopes

Read or write scopes are granted per folder. Effective privileges are the intersection of the grant and your own rights, never more.

Attributed version history

Every change is attributed to a person, an interface and an AI client. Any prior version can be restored.

Connect Claude or another MCP client

Compared with

Other approaches to persistent, structured memory for AI assistants.

Memex compared with a synced folder, Nextcloud, Obsidian Sync and Notion
CapabilityMemexSynced folder (SFTP, Syncthing)NextcloudObsidian SyncNotion
AI access over MCP with OAuthBuilt inNoWith add-onsNoBuilt in
Per-folder limits for each assistantBuilt inNoNoNoPartly
Keyword and semantic search on the serverBuilt inNoWith add-onsNoPartly
History that names the person and the AIBuilt inNoPartlyPartlyPartly
Plain Markdown filesBuilt inBuilt inBuilt inBuilt inNo
Works alongside ObsidianBuilt inBuilt inPartlyBuilt inNo
Team sharing with rolesBuilt inPartlyBuilt inPartlyBuilt in
Self-hostingBuilt inBuilt inBuilt inNoNo
End-to-end encryptionNoPartlyWith add-onsBuilt inNo

Based on each product’s default setup; add-ons can change the picture. Memex does not replace Obsidian: open the same folder in both and keep your plugins.

A fair paragraph on each alternative

Open code

Auditable by design: source-available and self-hostable.

The complete Memex codebase is published on GitHub under the Functional Source License, converting to Apache 2.0 two years after each release. It is implemented in Rust and distributed as a single binary comprising the server, the web client, the MCP endpoint and the synchronisation engine.

curl -fsSL https://raw.githubusercontent.com/mapoto40/memex/main/install.sh | sh

Deployable on your own infrastructure with one command. Documents remain standard Markdown files, interoperable with Obsidian.

Self-hosting guide

FAQ

Frequently asked questions.

Is Memex free?

Yes. Account creation, brains and assistant connections are free of charge. Memex can also be deployed on your own infrastructure.

Which AI assistants work with Memex?

Any assistant implementing the Model Context Protocol over HTTP with OAuth, including Claude and Cursor.

Can my team use it?

Yes. A brain, or a single folder, can be shared with collaborators by e-mail with read or write access. Each member connects their own assistant under their own permissions.

Where is my data stored and who can read it?

On the Memex server you use. Indexing and embedding are computed on that server; no content is transmitted to third-party services.

Does it replace Obsidian?

No, and it is not meant to. Notes are plain Markdown files, so an Obsidian vault can be a brain and you can keep editing it in Obsidian. Memex adds what a local app cannot: shared access for a team and a memory your assistants can search and write to.

Can I self-host it?

Yes. A single binary and one installation command, on any Linux server.

All questions and answers

Give your assistants persistent memory.

Get started

Free to use. No installation required.