Reef

Reef

reef is a hosted remote MCP server that gives a group shared, long-term assistant memory: a private cove per person plus shared coves for a household, a trip, or a project, stored as human-editable Markdown pages with privacy enforced by Postgres row-level security. Works from Claude (including mobile), ChatGPT desktop, and Codex at https://reefwith.me/mcp, with a CLI on PyPI (reef-cli) and

Category
访问服务器

README

reef

Shared, living memory for you and the people you share your life with — and for the AI assistants you both already use.

PyPI npm Python MCP Live

Your assistant forgets you between conversations. reef gives it a memory that lasts — and one your partner, your household, or your project can share.

  • Ask once. Tell your assistant the boiler is a Vaillant. Next month, in a different conversation, it still knows.
  • Share on purpose. Your private notes stay private. A shared cove holds only what you deliberately put there.
  • Bring your own assistant. Claude, ChatGPT desktop, or Codex. reef is a remote MCP connector, not another chat app.

Try it

You need an invitation — reef is invite-only. Once you have one:

uv tool install reef-cli   # or: npm install -g @haai/reef-cli
reef login
reef load-index

To use it from an assistant instead, add https://reefwith.me/mcp as a remote MCP connector and sign in with the address you were invited on.

In Claude Code, the plugin carries that connector and three commands with it:

claude plugin marketplace add diepzee/reef
claude plugin install reef@haai

/reef:recall answers from memory rather than from guesswork, /reef:remember files something away, and /reef:whats-new reports what the other people's assistants have been writing.

There is a browser app too, at reefwith.me/app. Use it to read and edit pages without an assistant.

How memory is organised

Memory lives in coves. You get one private cove the first time you sign in. You can create any number of shared ones — a household, a school circle, an accountant, a small project.

Private cove Shared cove
Who can read it Only you Everyone invited
Created At first sign-in By whoever needs it
Named Always personal By you, for you
People join Never By email invitation from the owner

You name shared coves for yourself. Your name for a cove is yours alone. Two households can each have a family without either knowing the other exists, and nobody can take a name from anybody else.

Sharing is deliberate and permanent. Moving something out of your private cove takes two steps. First your assistant shows you the exact text and names everyone who will be able to read it. Only then does it move.

Writing private content into a shared cove any other way is refused — not discouraged, refused. And there is no un-sharing.

How your assistant reads it

reef loads an index first, then pages — the LLM Wiki pattern, adapted for shared, permissioned memory.

  1. The assistant calls load_index and gets a map of every page it may see: path, title, tags, and a one-line description. No page bodies.
  2. It reads the map, decides what this conversation needs, and fetches only that with read_pages.
  3. It fetches again as the topic moves. When the map alone cannot settle what to read, search_pages matches words inside page bodies — and because it runs under the same row-level security as every read, a search can never surface a page its caller could not open.

The index is rebuilt from the database on every call, so it cannot fall out of date.

How your assistant writes it

Nothing is recorded silently. Mid-conversation, a fact worth keeping goes through remember, which stages it as a dated line in that cove's inbox — and before the conversation ends, the assistant says what it is keeping so you can strike anything first.

An inbox entry is not memory yet. A tidy-up — ask for one any time — compiles inboxes onto real pages, flags pages that have gone stale, and surfaces contradictions between your pages and shared ones instead of silently picking a winner. Deliberate capture, reviewed by you, is the design: reef will not transcribe your conversations behind your back.

How your privacy is protected

The database enforces it, not the application code.

Every page, file, and membership is guarded by PostgreSQL Row-Level Security. A query with a forgotten filter returns nothing rather than somebody else's data. Getting it wrong fails closed.

This works only because the app connects as an ordinary database role. A superuser ignores every policy, so reef runs as rif_app — which can read and write rows but cannot change the schema. Migrations and backups use a separate, more privileged credential. See scripts/provision_app_role.py.

Your data stays yours

Pages are Markdown from the moment you write them. The web app exports:

  • current content, as a Markdown archive or JSON, and
  • everything, as one download with full revision history and your stored file bytes.

Both are plain files that outlive this deployment. Export is one-way, out of reef — nothing here locks your memory in.

Using the CLI

Two packages, both installing a reef command:

Install What you get
Python uv tool install reef-cli Every MCP tool as a named command
npm npm install -g @haai/reef-cli login, tools, and call

Named commands use hyphens: load_index becomes load-index. Every result is JSON, and an error such as not_found also exits non-zero.

reef read-pages personal profile.md preferences.md
reef write-page personal plans.md --body-file ./plans.md \
  --message "Add the summer plan" --title Plans
reef add-file personal ./lease.pdf --description "Signed rental agreement"
reef call read_pages '{"cove":"personal","paths":["plans.md"]}'

reef call takes any MCP tool name and a JSON object, so it reaches everything the named commands do. Large inputs can come from a file or stdin; uploads are encoded for you.

Both packages sign in through the same browser flow. Each caches its own token, so logging in with one does not log in the other. Tokens live in a user-private config file.

Set REEF_MCP_URL to point at another server, or REEF_ACCESS_TOKEN for a headless run.

Run reef tools for the live schemas, and reef <command> --help for arguments.

Agent skill: skills/reef/SKILL.md teaches an assistant the retrieval protocol, private-by-default writing, optimistic locking, and when it must ask you before acting.

Status

Live since 6 August 2026 at reefwith.me, deployed on Railway behind WorkOS AuthKit, and in daily use.

Complete and reviewed: the schema and access control, index and page reads, versioned writes, and section-level sharing. Also multi-user coves with owner-managed invitations, file storage, the browser app, import, backup, and export.

Tests run against a real PostgreSQL, not a mock.

Known gaps, honestly:

  • Backups run by hand. One real dump exists and a restore drill passed against it, but the daily job is not set up yet.
  • Few people are on it. Growth is one invitation at a time, by design.
  • The context ceiling has not been measured on a phone.

Everything outstanding is tracked in the "Open items" list at the top of docs/runbook.md.

Development

You need Docker and uv. just is optional but does the setup for you.

just setup   # dependencies, database, and the roles the tests need
just test    # lint, Python suite, frontend suite
just dev     # serve the app locally

just on its own lists every task. Without it:

docker compose up -d              # PostgreSQL on port 5433
uv sync && (cd frontend && bun install)
uv run pytest                     # builds its own schema in rif_test

A cluster created before the test roles existed is missing them, and the suite says so loudly rather than testing a weaker shape. just db-roles repairs it.

Two things about the local database are deliberate, not accidental:

  • It does not run the app as a superuser. A superuser ignores Row-Level Security, so the security tests would pass without proving anything. See the comment in docker-compose.yml.
  • It creates a separate non-owner role for tests. A table's owner is not bound by column grants. Without that role, a test asserting "a member cannot rename a cove" would pass for the wrong reason.

Migrations seed one person and their coves. Nobody else is seeded, on purpose. An email address is the key a first sign-in binds against, and a migration does not re-run to correct a wrong guess. Everyone else arrives by invitation.

Write your PR title as a Conventional Commit (PRs are squash-merged, so the title is what decides the release version), and add a one-sentence fragment under changes/ if a person using reef would notice the change — see docs/releasing.md.

Documentation

Document What it covers
docs/spec.md The design and why it is shaped this way
docs/runbook.md Deploying, and what is still open
docs/restore.md Backup and restore
docs/competitor-research.md The market around it

Licence

The server — everything at the repository root — is AGPL-3.0-or-later. Read it, run it for yourself, fork it. The one condition that bites is the network one: if you run a modified reef as a service other people use, you owe them your changes. That matches what reef asks of itself. If somebody else is holding your memory, you should be able to see the code that holds it.

The parts you install rather than host are MIT, because a licence should not be a reason to hesitate over a client:

Part Licence
The server (src/, this repository) AGPL-3.0-or-later
clients/pythonreef-cli on PyPI MIT
clients/ts@haai/reef-cli on npm MIT
plugins/reef — the Claude Code plugin MIT

Copyright is held by Haai BV.

A note on the name

The product is reef, and so is the Python module. rif was the working name, and it survived far longer than intended.

What is still called rif is everything a running system remembers, because those are not names anybody reads — they are keys something already wrote down:

Still rif What it is Why it stays
app_name="rif" Piccolo's key in the migration table Renaming it makes Piccolo find zero applied migrations and replay the whole chain against a populated database
rif_roster, rif_admit_member, … SQL helper functions They are the row-level-security boundary; renaming them is live DDL on the part of the system that must not be got wrong
rif, rif_authz, rif_probe database roles RLS is only enforced against the right roles, and the suite asserts privileges as rif_probe
RIF_* environment variables Twelve are set on Railway, including the signing key and the open door; a renamed variable that nobody set reads as absent
diepzee/reef the repository A plugin submission under review points at this URL

The rule, if you are adding something: if the database or the deployment will remember the name, it is rif. If a person will read it, it is reef.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选