Memora

io.github.Servation由 GitHub 帳號 Servation 發布v0.1.1更新於 Oct 24, 2026

Flashcards, quizzes, and cloze cards with spaced repetition, as an inline MCP App.

已驗證STDIO僅桌面效率與工作流知識與記憶

概覽

AI 產生的概覽

Memora 是本地 MCP 伺服器,讓 Claude Desktop 對話變成具 FSRS 間隔重複與內嵌複習的閃卡、測驗與填空學習工作階段。

可以做什麼
建立與管理牌組:產生閃卡、填空卡和選擇題測驗,追加、編輯、重新命名或刪除牌組與卡片,並以分類巢狀牌組、支援反向練習。內嵌複習:以可點擊的翻卡、測驗或填空形式複習單一牌組或整個分類分支。評分與排程:記錄作答、更新每張卡的 FSRS 到期時間,並彙總今日到期內容、標出反覆答錯的卡片。改進與擷取:提議拆分或改寫卡片,把剛遇到的 bug 或答錯題轉成草稿卡片,經使用者核准後才儲存。
適用情境
適合在 Claude Desktop 內學習或記憶教材,讓助理依對話產生並維護牌組,由間隔重複決定接下來複習什麼。適用於外語詞彙、考試準備和快速回憶練習,而非一般筆記。
執行需求
以 npm 套件形式透過 npx 在本機執行,需要 Node.js 20.11 或更新版本,並在 Claude Desktop 的 mcpServers 中設定。牌組存放在使用者家目錄下的 JSON 檔案,路徑可用 MEMORA_DECKS 環境變數覆寫。不需帳號、API 金鑰或外部服務。
安裝前請注意
此伺服器會寫入其牌組檔案:建立、編輯、重新命名和刪除牌組與卡片都會改動已存資料,delete_deck 和 delete_card 會移除內容。改進與擷取僅在使用者核准後儲存。牌組是本機上的純 JSON,手動編輯破壞格式時會退回內建預設牌組。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Memora,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Memora MCP

[License: MIT] [MCP Apps] [TypeScript] [React]

Turn any conversation into an interactive study session, right inside Claude Desktop. Ask Claude to make a deck and it generates the cards, then renders them as an inline review you can click through: flip flashcards, answer multiple-choice quizzes, and fill in cloze blanks. Every answer updates a spaced-repetition schedule, and your results flow back to Claude so it can drill what you missed.

Keywords: Model Context Protocol, MCP server, MCP Apps, Claude Desktop, flashcards, quizzes, spaced repetition, SRS, FSRS, Anki alternative.

Built on the MCP Apps extension (SEP-1865): core MCP spec 2025-11-25 plus the Apps extension 2026-01-26.

[Three ways to study, rendered inline in Claude]

Features

Three ways to study, all rendered inline and all graded the same way:

  • Flashcards: click to flip, then grade Got it / Missed it.
  • Multiple-choice quizzes: pick an option and the correct/wrong answers reveal instantly.
  • Cloze (fill-in-the-blank): the blank reveals in place so the sentence stays intact. Write a blank as [...] in a card front and it becomes a cloze card automatically.

Spaced repetition: every grade updates a per-card FSRS schedule (via ts-fsrs), so weak cards resurface sooner and due cards come first. Ask "what's due today?" for a summary across all your decks.

Organize with categories: name decks with :: to nest them (e.g. LLM::Attention). Browse the category tree, or the same tree as an interactive mind map, and study a whole branch in one merged session. Quiz decks are flagged with a badge.

Manage your decks: create, append to, edit, rename, and delete decks and cards without leaving the chat. Pass reverse when creating a deck to also drill each card back-to-front (handy for vocabulary).

Just JSON: decks live in data/decks.json, read live on every call. Hand-edit them or let Claude build them. No database, no external service.

[Browse decks as a category tree or a mind map]

The tools

Only review_deck and study open the inline flip-card UI; everything else returns a text summary, so editing or creating in chat no longer pops the widget.

ToolWhat it does
review_deckOpen one deck for review (due cards first, capped per session).
studyReview a whole category subtree, merged into one session (capped per session).
create_deckGenerate flashcards or cloze cards; reverse also adds back-to-front cards.
create_quizGenerate multiple-choice questions.
grade_cardRecord a review result and update the card's FSRS schedule (called by the UI).
due_todaySummarize what is due across all decks, and flag struggling cards (3+ lapses).
edit_cardChange a card's front and/or back.
refine_cardPropose splitting a card into atomic pieces, or rewriting it to test understanding.
apply_refinementPersist a refinement after the user approves the proposed cards.
captureTurn something that just burned you (a bug, a missed question) into draft cards.
apply_capturePersist captured cards after the user approves them.
rename_deckRename a deck (also moves it in the category tree).
delete_cardRemove a single card.
delete_deckRemove a whole deck.

Card generation follows Memora's quality rules (atomic single-concept cards, 1-5 word answers, active recall, unambiguous, no answer leakage, application over definition), based on Wozniak's 20 Rules of Formulating Knowledge. New cards are linted on write and flagged (never blocked) so Claude can revise them.

How it works (MCP Apps)

A tool declares a ui:// resource. When Claude calls the tool, the host (Claude Desktop) fetches that resource, renders its HTML in a sandboxed iframe, passes the tool result to the UI, and the UI talks back to the host over JSON-RPC (to grade cards and report progress to the model).

[The MCP Apps round trip]

Quick start

Prerequisites

  • Node.js 20.11+

Connect to Claude Desktop

Open Settings > Developer > Edit Config and add Memora under mcpServers:

json
{  "mcpServers": {    "memora": {      "command": "npx",      "args": ["-y", "@servation/memora-mcp", "--stdio"]    }  }}

Then fully quit Claude Desktop (from the system tray) and relaunch. memora appears under Settings > Developer, pre-loaded with a few sample decks.

Your decks are stored in ~/.memora/decks.json (override the path with the MEMORA_DECKS environment variable). Hand-edit that file or let Claude manage it.

Run from source instead
bash
git clone https://github.com/Servation/memora-mcp.gitcd memora-mcpnpm installnpm run build

Point the config at the built entry with an absolute path (decks then live in the repo's data/decks.json):

json
{  "mcpServers": {    "memora": {      "command": "node",      "args": ["C:\\path\\to\\memora-mcp\\dist\\main.js", "--stdio"]    }  }}

Try it (in a Claude Desktop chat)

  • review my World Capitals deck
  • make me a deck of 10 Spanish travel phrases
  • make a reversible deck of 10 Spanish words (drills both directions)
  • make a fill-in-the-blank deck about the water cycle (cloze cards)
  • quiz me with 10 multiple-choice questions on the solar system
  • turn what we just discussed into a deck called "Photosynthesis"
  • study my LLM category
  • what's due today?

Tech stack

Deck format

json
{  "Deck Name": [    { "front": "Capital of France?", "back": "Paris" }  ]}
  • Stored in ~/.memora/decks.json when installed (or data/decks.json from source); override with MEMORA_DECKS.
  • Read live (mtime-cached). create_deck, create_quiz, and grade_card write here atomically.
  • A quiz card adds "options": ["...", "..."]; its back is the correct option.
  • A cloze card writes the blank as [...] in the front, with the hidden term as the back.
  • Cards gain a due date and an FSRS srs block as you review them; cards without them are treated as new.
  • Keep it valid JSON, or the server falls back to a built-in default deck.

Project structure

memora-mcp/├── server.ts            # MCP tools + the ui:// resource├── decks.ts             # data model, decks.json storage, result builder├── scheduling.ts        # FSRS scheduling + review ordering├── main.ts              # entry: stdio (Claude Desktop) or Streamable HTTP├── mcp-app.html         # UI entry HTML (bundled by Vite)├── src/│   ├── mcp-app.tsx      # review orchestrator (flip / quiz / cloze, grade -> model)│   ├── deck-lib.tsx     # tree, mind map, card list, quiz/cloze views, helpers│   ├── mcp-app.module.css│   └── global.css       # host theme variable fallbacks (light/dark)├── data/decks.json      # editable decks, read live├── media/               # README images├── vite.config.ts       # single-file bundle config└── tsconfig*.json

Development

bash
npm run dev        # vite watch (UI) plus tsx server on http://localhost:3001/mcpnpm run typecheck  # tsc --noEmit

For fast local iteration you can also run the app against the MCP Apps reference host (basic-host) from the ext-apps repo.

Roadmap

See TODO.md for the backlog: npm + MCP Registry publishing, cross-client hosting (Streamable HTTP), tests around parsing and scheduling, and a real screen-capture demo GIF.

License

MIT

來源:README.md,提交 8564480

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分