This release is a pre-release and may not be stable for production use.
Personal memory MCP server — search your WhatsApp, Discord, and notes with hybrid AI
pip install memoreei==0.3.0rc4 Copy PIP instructions
Memoreei is an open-source MCP server that gives AI assistants a searchable memory of your entire personal communication history. It connects to 13 platforms so far — Discord, WhatsApp, Telegram, Signal, iMessage, Gmail, Slack, Instagram, and more — ingests your messages, and indexes them with a hybrid search engine combining keyword and semantic vector search. Any AI client that supports the Model Context Protocol can then query your memories as naturally as asking a question.
The problem it solves: every AI assistant starts each conversation with no knowledge of who you are, what you've discussed, or what matters to you. Memoreei changes that by turning years of your personal conversations into a living, searchable knowledge base — surfaced exactly when your AI needs it.
"What's my friend's favorite restaurant?" "What did my sister say she wanted for her birthday?" "How many times have I asked Dory to send that link again?" Your AI can answer these now. Without Memoreei, it can't.
Memoreei isn't just a memory server — any app can be built on top of it. Two of our favorites:
File import — one-time or repeated ingest from an exported file. Live sync — incremental sync via API, checkpoint-based (only fetches new messages).
On a Mac? Memoreei.app is the easy way: nothing to install first, no Terminal, and it's the only way to read iMessage without granting Full Disk Access to Python itself.
pip install memoreei memoreei setup # interactive — pick connectors, enter credentials memoreei sync # pull messages from configured sources Or from source:
git clone https://github.com/CalebChristiansen/Memoreei.git cd Memoreei python -m venv .venv && source .venv/bin/activate pip install -e '.[dev]' Everything memoreei knows lives in one directory: config.env for settings and credentials, memoreei.db for the memories. It's ~/Library/Application Support/Memoreei on macOS (shared with Memoreei.app) and ~/.memoreei everywhere else. Every command finds it from wherever you run it. Point it elsewhere with --home or MEMOREEI_HOME.
Then connect an AI client, either on the same machine or over the network.
The client starts memoreei itself and talks to it over stdio. No network, no key, and every tool, including the ones that import files. Add to your MCP client config (.mcp.json, claude_desktop_config.json, or wherever your client keeps them):
{ "mcpServers": { "memoreei": { "command": "memoreei", "args": ["serve"] } } } Use the full path to memoreei (which memoreei) if it's installed in a virtualenv your client doesn't know about. For Claude Code: claude mcp add memoreei -- memoreei serve.
A menu-bar app with the whole server inside it, Python included. It runs the network server, asks for nothing to be installed first, and sets itself up through a dashboard in your browser.
Memoreei lives in the menu bar from then on and starts at login (switch that off in its menu). Open Memoreei… signs you in to the dashboard. Quit stops the server too, so clients lose access until you open it again.
Updates. The menu shows Update Available when there's a new release. Download the new DMG and replace the app. Until Memoreei is signed, macOS treats each new version as a stranger and switches its Full Disk Access off; the setup window reopens by itself, and Memoreei is still in the list, so you just switch it back on.
Where things are. Data in ~/Library/Application Support/Memoreei, logs in ~/Library/Logs/Memoreei (Show Log in the menu). A memoreei installed with pip on the same Mac uses the same data, so memoreei key list in Terminal shows the app's keys. Don't run both servers at once: they'd want the same port, and the app will say so rather than fight over it.
Run memoreei on one always-on machine (a home server, a desktop, a Mac that never sleeps) and query your memories from every other one. It serves MCP's Streamable HTTP transport at /mcp, and every request needs an API key.
python3 -m venv ~/memoreei-venv source ~/memoreei-venv/bin/activate pip install memoreei Python 3.10 or newer. On macOS, python3 --version first; the system Python may be older. To try a release candidate, pip install --pre memoreei.
memoreei setup The wizard asks which embedding provider to use, whether to sync in the background, and which connectors to configure. It writes config.env in the home directory (readable only by you), then offers to create the first API key. Say yes, and name it after the machine that will use it.
memoreei sync # every connector you configured memoreei import whatsapp chat.txt # and any exports you have lying around 3. Create a key per client memoreei key create laptop The key is printed once and never again; memoreei keeps only a hash of it. Alongside it you get ready-to-paste client config with this machine's address filled in: a claude mcp add command and a .mcp.json snippet. If the machine has several addresses (Wi-Fi, Ethernet, a VPN), you get one URL per address; use whichever the client can reach.
One key per client means that losing a laptop costs you one memoreei key revoke laptop, not a round of changing every other client. memoreei key list shows when each key was last used.
memoreei service install This registers a background service (launchd on macOS, a systemd user unit on Linux) that starts at login, restarts if it crashes, and runs memoreei serve --http on port 3679. To look after it:
memoreei service status # is it running? memoreei service logs # tail the log; each request is logged with its key's name memoreei service uninstall # remove it To run it in the foreground instead: memoreei serve --http. Until at least one key exists it refuses every client; there is no way to run the network server open.
Port 3679 spells DORY on a phone keypad. It is officially registered to the Apple Newton's dock sync, a device discontinued in 1998, which is not expected to object. Change it with --port or MEMOREEI_PORT.
On a Linux server with no desktop login, run loginctl enable-linger $USER once so the user service starts at boot rather than at your first SSH login.
macOS firewall: if it's on (System Settings → Network → Firewall), other machines can't connect until you allow the Python that runs memoreei to accept incoming connections. macOS asks with a dialog on the Mac's screen the first time the server starts; click Allow. Missed it? Firewall → Options → +, and add the interpreter memoreei service grant-access points you at (the same file, for the same reason). The symptom is a client that times out while curl http://127.0.0.1:3679/mcp on the Mac itself answers 401.
macOS and iMessage: reading ~/Library/Messages/chat.db needs Full Disk Access, and macOS gives apps no way to ask for it. memoreei service install offers to walk you through it, or at any time:
memoreei service grant-access A dialog explains each step, then opens System Settings at Full Disk Access and a Finder window with the exact file to add already selected: the real Python interpreter behind your virtualenv, usually buried somewhere nobody finds by hand. Drag it into the list, switch it on, click Done, and memoreei restarts the service and tells you whether it can now read your messages. It has to be done in person, at the Mac. The service log also says Full Disk Access: ok or missing each time it starts.
The server has a web dashboard at /admin for what setup and key do on the command line: status, sources, and client keys. It answers only on the machine the server runs on, and only after you sign in with a one-time link:
memoreei admin-url # prints http://localhost:3679/admin/login?token=… Open the link in a browser on that machine. It works once, within five minutes, and signs that browser in for a month. The dashboard never accepts API keys, and API keys never open it.
Claude Code — paste the command key create printed:
claude mcp add --transport http memoreei http:// :3679/mcp \ --header "Authorization: Bearer " A project .mcp.json — keep the key out of the file and in an environment variable, which Claude Code expands:
{ "mcpServers": { "memoreei": { "type": "http", "url": "http:// :3679/mcp", "headers": { "Authorization": "Bearer ${MEMOREEI_KEY}" } } } } claude.ai (custom connectors) — these call your server from Anthropic's servers, not from your browser, so they can't reach an address on your home network or VPN. They need a public HTTPS URL (see below). Add the connector with that URL, and put the key in an Authorization: Bearer request header in the connector's settings.
Any other MCP client that supports Streamable HTTP and custom headers works the same way: URL, plus that header.
memoreei speaks plain HTTP by default, like Jellyfin, the *arr apps and Home Assistant. That's fine on a home network or a VPN, where the network is the thing keeping strangers out and the key is the thing keeping everyone else out. For anything public, put HTTPS in front.
A reverse proxy (recommended for a public URL). Caddy gets and renews a certificate by itself:
memories.example.com { reverse_proxy :3679 } Then tell memoreei the URL clients should use, so key create prints it: MEMOREEI_PUBLIC_URL=https://memories.example.com in config.env.
Or let memoreei do it, if you already have a certificate:
memoreei serve --http --tls-cert /path/to/cert.pem --tls-key /path/to/key.pem or set MEMOREEI_TLS_CERT and MEMOREEI_TLS_KEY in config.env, which the service picks up.
Over the network memoreei is read-only, plus one refresh button. It offers search_memory, get_context, list_sources and sync, and nothing else. It can't be told to import a file, fetch from a new account or store a note; several local tools take a path on the server, and a key holder shouldn't be able to point one at your SSH keys and search them back out. Filling the database is a local job: memoreei setup, memoreei import …, or a stdio client on the server itself.
sync takes no arguments. It runs the connectors configured on the server and re-reads any import files registered there (see memoreei import list) that changed since the last read.
source ~/memoreei-venv/bin/activate pip install --upgrade memoreei memoreei service install # rewrites the service for the new version and restarts it MCP Tools A local (stdio) client gets every tool below. A network client gets only the four marked network: see What the network can do.
Hybrid keyword + semantic search across all ingested memories.
Fetch surrounding messages for a specific memory — essential for understanding the conversation around a result.
Manually store a note, fact, or anything worth remembering. Auto-embeds content immediately.
Inventory all ingested sources with message counts.
{ "whatsapp:friends": 1842, "discord:1234567890": 391, "telegram:-100987654321": 227, "manual": 12 } File Import Tools ingest_whatsapp Import a WhatsApp chat export .txt file. Handles multi-line messages, media placeholders, and deduplication on re-import.
Import a Discord GDPR data export (all channels and DMs). Accepts a ZIP file or extracted folder.
Request your data at: Discord Settings → Privacy & Safety → Request All of My Data
Import Facebook Messenger messages from a GDPR data download (JSON format).
Download at: Facebook Settings → Your Information → Download Your Information
Import Instagram DMs from a GDPR data download (JSON format).
Download at: Instagram Settings → Accounts Center → Your Information → Download Your Information
Import SMS/MMS messages from an Android SMS Backup & Restore XML file.
Import messages from any JSON file. Supports JSON arrays, JSON-lines, and wrapped objects. Covers Google Chat takeout, Google Hangouts, LinkedIn data, and custom formats.
Import messages from any CSV or TSV file. Auto-detects delimiter (comma, tab, semicolon). Covers LinkedIn exports and any custom spreadsheet format.
All sync tools use checkpoint-based incremental sync — only new messages are fetched on subsequent runs.
Sync messages from a Discord channel via the bot API.
Sync messages received by a Telegram bot via getUpdates. Bot must be a member of the target group or have received DMs.
Sync messages from a Matrix room using the Client-Server API.
Sync messages from a Slack channel via the Web API (conversations.history). Requires bot token with channels:history and users:read scopes.
Sync Gmail messages via IMAP. Uses per-folder UID checkpointing.
Sync Mastodon posts. Public and hashtag timelines require no authentication.
🧪 Beta — macOS only. Requires Full Disk Access for the program running memoreei: Memoreei.app walks you through it, and memoreei service grant-access does for a pip install.
Sync iMessage/SMS conversations from ~/Library/Messages/chat.db (read-only).
🧪 Beta — requires pysqlcipher3. Signal Desktop must be installed.
Sync Signal Desktop messages from the local encrypted SQLCipher database. Default paths: ~/.config/Signal/sql/db.sqlite (Linux), ~/Library/Application Support/Signal/sql/db.sqlite (macOS).
Refresh from everything configured on the server: every connector in config.env, plus registered import files that changed since they were last read. Takes no arguments. Returns counts per connector and per import file.
Trigger an immediate sync of all configured sources. Returns count of new messages.
Sync every configured connector and return counts per source.
# Every command takes --home to use a different home directory memoreei --home /srv/memoreei status # Interactive setup — writes config.env in the home directory, offers the first API key memoreei setup # pick from a list (spacebar to select, enter to confirm) memoreei setup gmail # configure a specific connector directly # Start the MCP server for a local client (stdio) memoreei serve # Start the network server (Streamable HTTP at /mcp, port 3679, key required) memoreei serve --http memoreei serve --http --host 0.0.0.0 --port 3679 memoreei serve --http --tls-cert cert.pem --tls-key key.pem # API keys for network clients: one per client, shown once memoreei key create laptop memoreei key list memoreei key revoke laptop # A one-time link that signs a browser in to the dashboard (/admin) memoreei admin-url # Run the network server in the background (launchd / systemd) memoreei service install [--port 3679] memoreei service status | logs | uninstall # Show DB stats: message counts, sources memoreei status # Sync everything: configured connectors, plus changed registered import files memoreei sync # Sync one connector memoreei sync discord # telegram, matrix, slack, email, mastodon, imessage # Search from the terminal memoreei search "API redesign notes" memoreei search "printer issue" --limit 5 --source whatsapp:friends # Import files (each one is remembered, and re-read by `memoreei sync` when it changes) memoreei import whatsapp "WhatsApp Chat.txt" memoreei import sms sms-backup.xml memoreei import discord-package discord-package.zip memoreei import messenger ~/Downloads/facebook-export/messages memoreei import instagram ~/Downloads/instagram-export memoreei import json chat.json --content-field text --sender-field from --timestamp-field ts memoreei import csv chat.csv --content-column body --sender-column who memoreei import contacts contacts.vcf # The remembered import files memoreei import list memoreei import forget 3 # stop re-reading it; what was imported stays # Show current configuration (tokens masked) memoreei config Architecture ┌──────────────────────────────────────────────────────────────────────┐ │ Your Data Sources │ │ │ │ File Imports Live Sync (API) │ │ ───────────────────────────── ────────────────────────── │ │ WhatsApp .txt Instagram JSON Discord Telegram │ │ Messenger JSON SMS Backup XML Slack Matrix │ │ Discord ZIP Generic JSON/CSV Gmail Mastodon │ │ iMessage Signal │ └──────────────┬───────────────────────────────┬─────────────────────┘ │ │ ▼ ▼ ┌──────────────────────────────────────────────────────────────────────┐ │ Memoreei MCP Server │ │ │ │ ┌────────────────────┐ ┌──────────────────┐ ┌─────────────────┐ │ │ │ Connectors │ │ Hybrid Search │ │ MCP Tools │ │ │ │ │ │ │ │ │ │ │ │ 13 sources │ │ FTS5 (BM25) │ │ search_memory │ │ │ │ file + live sync │ │ + vector cosine │ │ get_context │ │ │ │ checkpoint-based │ │ + RRF fusion │ │ add_memory │ │ │ │ dedup on import │ │ │ │ list_sources │ │ │ │ │ └────────┬─────────┘ │ ingest_* │ │ │ │ │ │ │ import_* │ │ │ │ │ │ │ sync_* │ │ │ │ │ ┌────────▼──────────┐ │ refresh_memory │ │ │ │ │ │ SQLite Database │ │ sync_all │ │ │ │ │ │ memories + FTS5 │ └────────┬────────┘ │ │ └────────────────────┘ │ embeddings BLOB │ │ │ │ │ sync checkpoints │ │ │ │ └───────────────────┘ │ │ └────────────────────────────────────────────────────────┼────────────┘ │ │ stdio / HTTP ▼ ┌─────────────────────┐ │ MCP Clients │ │ │ │ Any AI assistant │ │ that speaks MCP │ └─────────────────────┘ How Hybrid Search Works Memoreei runs two searches in parallel and fuses the results:
Query: "that weird API rate limit issue" │ ├──▶ FTS5 BM25 keyword search │ Matches "API", "rate", "limit" — fast, exact │ Returns ranked list of IDs │ └──▶ Vector search (cosine similarity) Matches "throttling", "429 errors", "backoff" Returns ranked list of IDs │ ▼ Reciprocal Rank Fusion (RRF) ───────────────────────────── score(item) = Σ 1 / (60 + rank_i) i ∈ {keyword_rank, vector_rank} Items in BOTH result sets are boosted. Items in only one set still contribute. Top N returned, then filtered by source/participant/date. Why RRF? Rank-based fusion requires no score normalization across different scales. The constant k=60 is the standard default from the original paper and empirically outperforms weighted linear combinations.
Default embedding model: BAAI/bge-small-en-v1.5 via FastEmbed — 384-dimensional vectors, ~23 MB ONNX model, runs fully offline.
memoreei setup (or the dashboard) writes config.env in the home directory and is the easy way. To edit it by hand, .env.example lists every setting. Settings are read from, in order of precedence:
API keys aren't settings: they live, hashed, in the database. See memoreei key.
The home directory is created readable only by you, and config.env is written mode 600.
The image keeps everything in /data (MEMOREEI_HOME=/data) and runs the network server on port 3679. Make a key first, or use the dashboard:
docker compose run --rm memoreei setup # optional: connectors, into ./data/config.env docker compose run --rm memoreei key create laptop docker compose up -d docker compose run --rm memoreei admin-url # a sign-in link for the dashboard The dashboard answers other machines in Docker (MEMOREEI_ADMIN_REMOTE=true), because the container's loopback isn't the host's. It still needs the one-time link. Don't publish port 3679 beyond your own network.
Inside a container memoreei can't see the host's addresses, so set MEMOREEI_PUBLIC_URL in docker-compose.yml to the URL clients will use; key create then prints config with that URL in it.
See CONTRIBUTING.md for guidelines on adding new connectors, running tests, and submitting pull requests.
ai hybrid-search mcp memory personal search vector
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.




