srs-mcp
This server provides a headless spaced-repetition flashcard system via MCP, letting agents create, review, and manage cards with FSRS scheduling.
Author cards:
add_card(front, back)creates a new flashcard and schedules it (due immediately).List due cards:
due_cards()returns cards due now, optionally filtered by deck or limited count, for quizzing.Record recall:
grade_card(card_id, rating)grades a review (again/hard/good/easy) and updates the FSRS schedule.Edit card content:
edit_card()changes front/back/deck without altering the existing schedule.Suspend/unsuspend cards: Temporarily shelve or restore cards without losing history.
List all cards:
list_cards()gives an overview regardless of due date, including reps and suspension status.Delete cards:
delete_card()permanently removes a card.Get statistics:
stats()shows total cards, due now, reviews, and deck breakdowns.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@srs-mcpshow me my due cards"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
srs-mcp
Agent-agnostic MCP server for spaced-repetition learning — no Anki GUI, no Xvfb, no AnkiConnect. Bring your own agent; this brings the card box + the scheduler.
It wraps FSRS (the Free Spaced Repetition Scheduler, the same algorithm modern Anki uses) around a tiny SQLite store, so an agent can author cards, see what's due, and record recall — entirely headless.
Why not headless Anki?
Driving the Anki desktop app headless means Qt + a virtual framebuffer
(Xvfb) + the AnkiConnect add-on — brittle and version-coupled. The
anki PyPI package can drive a real .anki2 collection GUI-less if you
need interop with your phone's Anki. But if you just want spaced
repetition behind an API, you don't need Anki at all: FSRS is a library,
and this server is ~200 lines around it.
Related MCP server: anki-mcp
Tools
add_card(front, back) -> {card_id, due}— author + schedule a card. Keepbackshort — a word or a phrase; a card you can't grade in seconds is a note, not a flashcarddue_cards(q=None, limit=20) -> [{card_id, front, back, deck, due}]— what's due now, optionally narrowed to a topic (q="horace")grade_card(card_id, rating) -> {card_id, rating, next_due, reps}— record recall (again/hard/good/easy, or 1-4)edit_card(card_id, front=None, back=None)— edit content in place; schedule is preserved (fix typos / shorten a long answer instead of duplicating)suspend_card(card_id)/unsuspend_card(card_id)— shelve a card (kept with its history, removed from the due queue) / restore itlist_cards(q=None, limit=50)— overview regardless of due datedelete_card(card_id)— remove one (reset / cleanup)stats(deck=None) -> {total, due_now, suspended, reviews, decks}
Finding cards: search, not decks
Cards are found by searching their text — due_cards(q="horace") — rather
than by filing them into decks up front. Nothing writes the deck field any
more; put the topic in the card itself ("Horace, Odes 1.11: …") and it stays
findable.
Decks were a single-valued, free-text, exact-match label with no per-deck
scheduling attached, so they bought nothing a search doesn't, and cost
accuracy: on the deck this was measured against, agents had invented ten
names for Horace across five separator conventions, so the best possible
deck="Horace" returned 20 of 97 Horace cards while q="horac" returns 89 —
including ones misfiled under Talks. The column and the deck= filter on
due_cards/list_cards/stats remain for cards labelled by older versions.
See plans/002-decks.md.
The review loop: due_cards → quiz the user with front → check against
back → grade_card. FSRS computes the next due date from the rating.
Run
uv sync
# HTTP (default; for Railway / remote agents)
PORT=8000 uv run srs-mcp
# or stdio (local agent)
MCP_TRANSPORT=stdio uv run srs-mcpStorage
Two backends, chosen at startup:
Postgres (shared deck) — set
SRS_DATABASE_URL(orDATABASE_URL) to a Postgres connection string (e.g. a Neon DB). Every deployment that points at the same URL reads/writes one shared deck, so you can add and review cards from anywhere (local, Railway, etc.). FSRS card ids are large, so thecards.card_idcolumn isBIGINTon Postgres. Requires thepsycopgdependency (already declared).SQLite (fallback) — when no
*DATABASE_URLis set, cards live in a SQLite file atSRS_DB(default./srs.db). Single-host / offline. In a SQLite-on-Railway setup, mount a volume at/dataand keepSRS_DB=/data/srs.dbso the box survives redeploys.
The schema is identical (table cards) and auto-created on first use.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables AI assistants to manage Anki flashcard decks and cards through natural language, supporting deck creation, card additions (basic and cloze types), and review queue management.682MIT
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to interact with Anki flashcard collections, including deck management, note search, viewing contents, and editing fields.16MIT
- AlicenseNot gradedqualityCmaintenanceA lightweight MCP server that adds spaced-repetition flashcards (SM-2) to AI assistants, storing data locally in SQLite and enabling card creation, review, and scheduling.MIT
- AlicenseNot gradedqualityCmaintenanceProvides a privacy-first adaptive review engine with local SQLite storage, enabling item creation, due review retrieval, grading, and statistics via MCP tools.MIT
Related MCP Connectors
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Voice-led, FSRS-scheduled flashcards from YouTube, PDFs, web, or text. Auto-graded quizzes.
Persistent memory for AI agents. Search, store, and recall across sessions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/klutometis/srs-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server