Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
kioie avatar

Memex

  • 1 repo stars
  • Updated July 19, 2026
  • kioie/memex

Memex is an MCP server that stores local SQLite-backed memory so coding agents retain preferences across conversations.

About

Memex is a local MCP memory server that keeps agent knowledge in SQLite on your hardware so preferences, conventions, and prior decisions survive new chat threads. developers living in Claude Code or Cursor often lose stack choices and naming rules when sessions reset; Memex exposes stdio MCP from a container image or native install with knobs for data directory, user scoping, and optional hybrid vector retrieval when MEMEX_HYBRID is enabled. Version 0.6.0 ships from the kioie/memex repository with environment variables documented in the registry schema. It complements—not replaces—your git history and issue tracker: best for agent-facing recall of how you like things done. Plan backups of MEMEX_DIR if you rely on it for production pairing workflows.

  • Local SQLite memory store on your machine with cross-chat persistence
  • OCI stdio package ghcr.io/kioie/memex:0.6.0 plus native install path
  • MEMEX_DIR controls data directory (default ~/.memex; use /data in Docker)
  • MEMEX_USER_ID scopes memories per user; MEMEX_HYBRID=1 enables vector retrieval fusion
  • Privacy-first alternative to hosted memory SaaS for coding agents

Memex by the numbers

  • Data as of Jul 20, 2026 (Skillselion catalog sync)
claude mcp add memex -- npx -y kioie/memex

Add your badge

Show developers this MCP server is listed on Skillselion. Paste this into your README.

Listed on Skillselion
repo stars1
Last updatedJuly 19, 2026
Repositorykioie/memex

What it does

Persist coding preferences and facts locally in SQLite so your agent remembers context across chats without sending memory to a cloud vendor.

Who is it for?

Privacy-conscious developers who want persistent agent memory on-disk while integrating via Docker OCI or native Memex installs.

Skip if: Skip if you need multi-user cloud sync, enterprise audit trails, or zero local ops (Docker/volume management).

What you get

Connected agents read and write scoped memories in your local Memex database so context carries forward without a hosted memory account.

  • Persistent scoped memory records on local disk
  • Agent-retrievable project preferences across separate chat sessions

By the numbers

  • Server version 0.6.0
  • Storage: local SQLite under configurable MEMEX_DIR
  • Optional MEMEX_HYBRID=1 for hybrid vector retrieval fusion
README.md

memex — long-term memory for AI coding agents

Stop re-explaining your stack every chat. Long-term memory for AI coding agents — stored on your machine.

memex gives Cursor, Claude Desktop, and other MCP clients a memory that survives across chats. Save preferences, decisions, and facts once; the agent finds them again later. No cloud account, no API keys, no vector database to run.

Unit Tests Integration Tests Go Reference

Current release: v0.6.0 · Requires: Go 1.26+


When to use memex

Use memex if you:

  • Code with Cursor, Claude Desktop, or any MCP client
  • Want preferences and project facts to persist across chats
  • Need memory on your machine — no vendor account or API keys
  • Are building or running an agent that should recall past context

Good fits — ask memex to remember things like:

Situation Example
Coding preferences "Prefers Go, table-driven tests, no Python for services"
Project decisions "This repo uses SQLite; don't suggest Postgres"
Conventions "Branch names: feature/…, commits: conventional commits"
Agent commitments "Will add integration tests before merging"
Session start Agent loads your prefs instead of re-interviewing you

memex is not for:

  • Passwords, API keys, or secrets
  • Full chat transcripts or log archival
  • Team-wide cloud memory synced across machines (local-first, per device)
  • Non-MCP apps (memex speaks MCP over stdio)

Agents: if the user repeats themselves across sessions, or asks you to "remember" something durable — use memex. See docs/FOR-AGENTS.md.


The outcome

Without memex With memex
Every new chat starts from zero Agent recalls your stack, style, and past decisions
You repeat the same preferences You say it once; memex stores it locally
Memory lives in a vendor's cloud Memory lives in ~/.memex/memex.db on your disk
Extra services and API keys go install + one MCP config line

Try it in 2 minutes

go install github.com/kioie/memex/cmd/memex@latest
memex doctor    # confirm local store is ready

Add to your MCP client (e.g. Cursor):

{
  "mcpServers": {
    "memex": {
      "command": "memex",
      "args": ["serve"]
    }
  }
}

In chat:

Remember that I prefer table-driven tests and Go over Python.

Open a new chat:

What are my testing preferences?

Full walkthrough: docs/GETTING-STARTED.md

Try in browser (no Cursor): npx @modelcontextprotocol/inspector memex serve

Smithery: kioie/memex (local Docker via MCPB — no hosting) · Registry metadata in server.json


How it works

You or the agent          memex (local)              Later sessions
      │                        │                           │
      │  remember("prefers Go")│                           │
      │ ──────────────────────►│  saved to SQLite          │
      │                        │                           │
      │                        │  recall("testing prefs")  │
      │                        │ ◄─────────────────────────│
      │                        │ ─────────────────────────►│ relevant facts
  1. Saveremember stores a short fact (deduplicated per user)
  2. Findrecall or retrieve_context searches when the agent needs context
  3. Updateupdate_memory revises a fact; old versions stay in the audit trail

Data never leaves your machine unless you copy the database file.


What you get

Feature What it means for you
Local storage SQLite file under ~/.memex — you own it
Smart search Keyword search built in; optional MEMEX_HYBRID=1 for paraphrase-friendly matching
Context limits retrieve_context returns only what fits your token budget
Safe updates Revising a fact keeps history; nothing is silently overwritten
Agent + user facts Track who said what (source: user / agent / system)
Multi-project scoping Separate by user, agent, session, or metadata tags
Built-in guidance MCP prompts teach agents when and how to use memory
Health check memex doctor shows path, counts, and config

Documentation

Doc For
Getting started First-time setup in Cursor
For AI agents When agents should read/write memory
Examples MCP configs and scoping recipes
All docs Index

Agents: fetch MCP prompts memory_guide, session_start, and remember_fact from the connected server.


Tools (10)

Everyday use — you usually only need the first three:

Tool Plain English
remember Save a fact
retrieve_context Find relevant facts, sized for the model context window
recall Search by keywords (query required)
list_memories Browse stored facts without searching
update_memory Change an existing fact (keeps history)
get_memory Look up one fact by ID
forget Remove one fact (soft delete)
delete_memories Remove several facts
delete_all_memories Wipe a user's memories (confirm=true)
memory_history See how a fact changed over time

Settings

Variable Purpose
MEMEX_DIR Where to store data (default ~/.memex)
MEMEX_USER_ID Your memory namespace (default default)
MEMEX_AGENT_ID Separate memories per agent
MEMEX_RUN_ID Tag memories to a session or run
MEMEX_HYBRID=1 Turn on extra local matching for paraphrases
MEMEX_VERBOSE=1 Log database path while debugging

Why memex?

Hosted memory products typically need API keys, cloud embeddings, and network calls on every recall. memex is the opposite: a small MCP server on your machine, writing distilled facts that agents choose to store — no extraction pipeline, no vendor lock-in.

memex Typical hosted memory
Setup go install + MCP config API keys, SDK, often Docker
Data Your disk Vendor cloud
Offline Yes Usually no
Cost Free (local compute only) Usage-based

Development

git clone https://github.com/kioie/memex.git && cd memex
make test              # fast unit tests
make test-integration  # MCP stdio roundtrip
memex doctor

See CONTRIBUTING.md · CHANGELOG.md · SECURITY.md


License

MIT — see LICENSE.

Recommended MCP Servers

How it compares

Local SQLite memory MCP, not a hosted vector database product or generic note-taking skill.

FAQ

Who is Memex for?

Developers using MCP coding agents who want durable, local preference memory without shipping data to a third-party cloud.

When should I use Memex?

During build and ongoing operate-style iteration whenever session resets erase conventions you already explained to the agent.

How do I add Memex to my agent?

Run ghcr.io/kioie/Memex:0.6.0 with stdio MCP, set MEMEX_DIR (and optional MEMEX_USER_ID or MEMEX_HYBRID=1), then register the server in Claude Code or Cursor.

Developer Toolsintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.