About Anki MCP Server Addon
Anki MCP Server Addon is an MCP server published by ankimcp in the Developer Tools category: an Anki addon that implements an MCP server, enabling AI assistants to interact with Anki, the spaced repetition flashcard application. Conduid read 66 tools from its source: add_note, add_notes, card_bury, card_change_deck, card_forget, card_reposition and 60 more. No package is published for it, so it installs from a source checkout.
The repository has 114 stars and 15 forks, and its last commit was on 29 Nov 2026. The latest release is v0.40.0 (11 Oct 2026): Breaking: one tool per action The four multi-action tools card_management, tag_management, filtered_deck and model_fields are gone. It follows v0.32.1 (10 Oct 2026), and the 5 most recent releases go back to v0.30.0 (26 Sep 2026). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Dependencies pinned and Scoped permissions. Its topics include devtools, anki-mcp and anki-addon.
Install
git clone https://github.com/ankimcp/anki-mcp-server-addonTools (66)
add_noteAdd a new note to a deckadd_notesBatch-add up to `max_notes_per_batch` notes (default 100) sharing the same deck and model. Uses Anki's native batch API for atomic undo. Supports partial success — individual failures don't affect otherscard_buryHide cards until tomorrow / restore every buried card in a deckcard_change_deckMove cards to another deck, creating it if neededcard_forgetReset cards to newcard_repositionSet the learning order of new cards (only new cards are affected)card_set_due_dateReschedule cards with the days DSL (`0`, `5`, `5-7`, `5!`)card_set_flagSet or remove a color flag (0-7)card_suspendExclude cards from review indefinitely / restore themcard_unburyHide cards until tomorrow / restore every buried card in a deckcard_unsuspendExclude cards from review indefinitely / restore themcards_statsBulk per-card scheduling stats for a deck (incl. subdecks): type/queue/interval/tags/dueToday, paginated. FSRS-independent, compact payload for analyticschange_note_typeMove existing notes to a different note type, remapping fields by name (`{old field: new field or null}`). Destructive — hidden unless opted in via `enabled_destructive_tools`. Two-step flow: `dry_run=true` returns the resolved plan (mapping, dropped fields, cards removed), then the same call with `dry_run=false` and `confirm=true` applies it. All notes must share one source note typecreate_deckCreate a new deckcreate_modelCreate a new note typedelete_media_fileMove a media file to Anki's trash (recoverable via Check Media)delete_notesDelete notes from the collectionfiltered_deck_deleteReturn a filtered deck's cards, then remove the deckfiltered_deck_emptyReturn a filtered deck's cards to their home decksfiltered_deck_get_infoRead-only inspection of up to 50 deck IDs per call — returns search terms, limit, order, reschedule flag and card count; non-filtered decks come back with `is_filtered=false`, unknown IDs are skipped and counted in `not_found`filtered_deck_rebuildRepopulate a filtered deckfiltered_deck_upsertCreate or modify a filtered deck from 1-2 search terms (Anki's hard limit)find_notesSearch for notes using Anki's search syntax. `include_first_field=true` adds a `noteLabels` array (`{noteId, firstField, truncated, fullLength}`) so you can search and label notes in one callget_card_memory_stateGet FSRS memory state (stability, difficulty, retrievability) for cardsget_deck_descriptionRead a deck's stored description and Markdown setting; returns `deck_id`, `name`, `description` and `is_markdown`get_due_cardsGet next due card for review (supports `skip_images`/`skip_audio` for voice mode). Returns the rendered question only; the answer is omitted unless `include_answer=true`get_fsrs_paramsGet FSRS scheduler parameters for deck presetsget_media_files_namesList media files matching a patterngui_add_cardsOpen the Add Cards dialoggui_answer_cardPress an answer button on the card shown in the reviewer, hands-free rating. Opt-in — hidden unless opted in via `enabled_opt_in_tools`gui_browseOpen the card browser with a search querygui_current_cardGet info about the currently displayed cardgui_deck_browserNavigate to deck browsergui_deck_reviewOpen a deck in Anki's own reviewer window. Opt-in — hidden unless opted in via `enabled_opt_in_tools`gui_edit_noteOpen the note editor for a specific notegui_select_cardSelect a specific card in the reviewergui_show_answerShow the answer side of current cardgui_show_questionShow the question side of current cardgui_undoUndo the last operationlist_decksList all decks in the collectionmodel_field_addManage fields on an existing note type: add (optionally at a 0-based index), rename (preserves content; card templates are not auto-updated), reposition (reorder). Add and reposition change field ordinals and force a one-way full sync; a pure rename does not. Every result carries `will_force_full_sync`, the collection's actual (sticky, collection-wide) state after the writemodel_field_namesGet field names and descriptions for a note typemodel_field_removeDelete a field and its content from every note of the type. Destructive — hidden unless opted in via `enabled_destructive_tools`. Forces a one-way full syncmodel_field_renameManage fields on an existing note type: add (optionally at a 0-based index), rename (preserves content; card templates are not auto-updated), reposition (reorder). Add and reposition change field ordinals and force a one-way full sync; a pure rename does not. Every result carries `will_force_full_sync`, the collection's actual (sticky, collection-wide) state after the writemodel_field_repositionManage fields on an existing note type: add (optionally at a 0-based index), rename (preserves content; card templates are not auto-updated), reposition (reorder). Add and reposition change field ordinals and force a one-way full sync; a pure rename does not. Every result carries `will_force_full_sync`, the collection's actual (sticky, collection-wide) state after the writemodel_namesList available note typesmodel_stylingGet CSS styling for a note type. `include_latex=true` also returns the LaTeX preamble (`latex_pre`, `latex_post`, `latex_svg`)model_templatesRead the Front/Back HTML templates for each card type in a note typenotes_infoGet detailed information about notes. `excerpt_chars` caps every field value at that many characters, marking each with `truncated`/`fullLength` — a cheap way to survey many notesoptimize_fsrs_paramsRun FSRS parameter optimization using Anki's built-in optimizerpresent_cardGet card content for reviewrate_cardRate a card after review (Again/Hard/Good/Easy)set_fsrs_paramsUpdate FSRS parameters (weights, desired retention, max interval)store_media_fileStore a media file (image/audio) via base64, file path, or URL. File paths are validated against a media-type allowlist; URLs are checked for SSRFsyncSynchronize collection with AnkiWeb (asynchronous job: `sync()` starts a sync, `sync(job_id)` polls its status, `sync(job_id, resolve=...)` resolves a full-sync conflict)tag_addBulk add/remove tags on notestag_batchApply multiple add/remove tag operations in one call, with partial successtag_clear_unusedRemove orphan tagstag_listList all tags, or scoped to a deck via the optional `deck` param — distinct tags on notes with a card in that deck, subdecks includedtag_removeBulk add/remove tags on notestag_replaceSwap one tag for another on notesupdate_deck_descriptionReplace a deck's description and optionally change `is_markdown`; an empty string clears the description, and an omitted or null Markdown setting preserves its current valueupdate_model_stylingUpdate CSS styling for a note type — full replace, or patch via `old_str`/`new_str` (must match exactly once). Can also write the LaTeX preamble (`latex_pre`/`latex_post`/`latex_svg`)update_model_templatesUpdate Front/Back template HTML — full replace, or patch via `old_str`/`new_str` (must match exactly once). Rejects unrecognized keys (case-sensitive) and unknown template names up front, applying all edits atomically — a failed call leaves the model unchangedupdate_note_fieldsUpdate fields of existing notes. Two modes: full replace, or patch via `old_str`/`new_str` (find-and-replace within a field; must match exactly once or nothing is written)update_notesBatch-update fields of multiple notes in one atomic undo step (single backend call). Validates every entry first; supports partial success up to `max_notes_per_batch`Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 4.7K words.
- ✓License declaredUsable under a stated license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile anywhere in the repository. Installs can pull different code over time.
- ✓No dynamic code executionScanned 159 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio and Streamable HTTPanki_mcp_server/mcp_server.py:215, anki_mcp_server/mcp_server.py:757
- Starts other programs
- 1 calltools/preview_description.py:87
- Outbound network calls
- 6 callsanki_mcp_server/dependency_loader.py:867, anki_mcp_server/dependency_loader.py:949, anki_mcp_server/primitives/essential/tools/store_media_file_tool.py:87
- Writes or deletes files
- 15 callsanki_mcp_server/credentials.py:152, anki_mcp_server/credentials.py:162, anki_mcp_server/credentials.py:175
- Lockfile
- None in the repository
Pattern matches on the source text of 159 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 4.7K words, fetched a month ago. The original in the repository is authoritative.
Read full README