1. Conduid
  2. Commerce
  3. anki-mcp/anki-mcp-desktop
MCP server · Commerce

anki-mcp/anki-mcp-desktop

A Model Context Protocol (MCP) server that enables AI assistants to interact with Anki, the spaced repetition flashcard application.

Unclaimed MIT commerce
77Good

Scored 9 hours ago · breakdown

About anki-mcp/anki-mcp-desktop

anki-mcp/anki-mcp-desktop is an MCP server published by ankimcp in the Commerce category: a Model Context Protocol (MCP) server that enables AI assistants to interact with Anki, the spaced repetition flashcard application. Conduid read 53 tools from its source: addModelField, addNote, addNotes, addTags, areSuspended, changeDeck and 47 more. No package is published for it, so it installs from a source checkout.

The repository has 587 stars and 42 forks, is licensed MIT, and its last commit was on 29 Nov 2026. The latest release is v0.28.0 (29 Nov 2026). It follows v0.27.0 (4 Oct 2026), and the 5 most recent releases go back to v0.25.0 (4 Sep 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include commerce.

Install

From source
git clone https://github.com/ankimcp/anki-mcp-server

Tools (53)

addModelFieldAdd a new field to an existing note type (appended at the end or inserted at a specific position)
ParameterTypeDescription
fieldName *stringName of the new field to add (e.g., "Grammar", "IPA", "Example")
indexnumberPosition to insert the field (0-based). Omit to append at the end.
modelName *stringName of the note type to modify (e.g., "Basic", "Latin Vocabulary")
addNoteCreate a single note with specified fields and tags
ParameterTypeDescription
allowDuplicatebooleanWhether to allow adding duplicate notes
deckName *stringThe deck to add the note to
duplicateScopestringScope for duplicate checking
duplicateScopeOptionsobjectSpecific deck to check for duplicates
fields *objectField values as key-value pairs (e.g., {"Front": "question", "Back": "answer"})
modelName *stringThe note type/model to use (e.g., "Basic", "Cloze")
tagsarrayOptional tags to add to the note
addNotesBatch-create up to 100 notes sharing a deck and model (partial success supported)
ParameterTypeDescription
allowDuplicatebooleanWhether to allow adding duplicate notes
deckName *stringThe deck to add all notes to
duplicateScopestringScope for duplicate checking
modelName *stringThe note type/model for all notes (e.g., "Basic", "Cloze")
notesarrayField values as key-value pairs (e.g., {"Front": "question", "Back": "answer"})
tagsarrayTags applied to all notes (merged with per-note tags)
addTagsAdd space-separated tags to specified notes
ParameterTypeDescription
notes *arrayArray of note IDs to modify
tags *stringSpace-separated tags to add (e.g., "tag1 tag2")
areSuspendedCheck suspension state for one or more cards without changing anything
changeDeckMove cards to a different deck (created if it doesn't exist, with the same deck-name rules as `createDeck`)
ParameterTypeDescription
cards *arrayArray of card IDs to move
deck *stringTarget deck name ("::" for nested, e.g. "Spanish::Verbs"; a new deck can have at most ${MAX_DECK_DEPTH} levels)
clearUnusedTagsRemove orphaned tags not used by any notes (destructive)
collection_statsAggregated statistics across all decks with per-deck breakdown and collection-wide card-state counts
ParameterTypeDescription
ease_bucketsarrayBucket boundaries for ease factor distribution. Default: [2.0, 2.5, 3.0]. Example: [2.0, 2.5, 3.0] creates buckets: <2.0, 2.0-2.5, 2.5-3.0, >3.0
interval_bucketsarrayBucket boundaries for interval distribution in days. Default: [7, 21, 90]. Example: [7, 21, 90] creates buckets: <7d, 7-21d, 21-90d, >90d
createDeckCreate a new empty deck along with any missing parent decks (nested `Parent::Child::Grandchild`, up to 10 levels for a new deck; an existing deck of any depth is reused)
ParameterTypeDescription
deckName *stringDeck name; nest with "::", e.g. "Spanish::Verbs" (a new deck can have at most ${MAX_DECK_DEPTH} levels)
createModelCreate a new note type with custom fields, card templates, and CSS (e.g., RTL models)
ParameterTypeDescription
cardTemplates *arrayTemplate name (e.g., "Card 1")
cssstringOptional CSS styling for cards. For RTL languages, include "direction: rtl;" in .card class.
inOrderFields *arrayField names in order (e.g., ["Front", "Back"]). At least one field required.
isClozebooleanCreate as cloze deletion model (default: false)
modelName *stringUnique name for the new model (e.g., "Basic RTL", "Advanced Vocabulary")
deckStatsGet comprehensive statistics for a single deck (study queue, true card-state counts, ease/interval distributions)
ParameterTypeDescription
deck *stringDeck name (e.g., "Japanese::JLPT N5")
easeBucketsarrayBucket boundaries for ease factor distribution. Default: [2.0, 2.5, 3.0]
intervalBucketsarrayBucket boundaries for interval distribution in days. Default: [7, 21, 90]
deleteMediaFileRemove a media file from `collection.media` (destructive)
ParameterTypeDescription
filename *stringFilename of the media file to delete (e.g., "old_audio.mp3")
deleteNotesDelete notes and all associated cards (destructive, requires confirmation)
ParameterTypeDescription
confirmDeletion *booleanConfirms the permanent deletion of these notes and their cards; the call is rejected unless this is true
notes *arrayArray of note IDs to delete (max 100 at once for safety). Get these IDs from findNotes tool. ALL cards associated with these notes will be deleted.
findNotesSearch for notes using Anki query syntax (`deck:`, `tag:`, `is:due`, etc.)
ParameterTypeDescription
query *stringAnki search query. Use Anki query syntax like "deck:DeckName", "tag:tagname", "is:due", "is:new", "is:review", "front:text", "back:text", or combine with spaces for AND, OR for alternatives. Empty string returns all notes.
forgetCardsReset cards to new, discarding their scheduling without recording a review
ParameterTypeDescription
cards *arrayArray of card IDs to reset to new (max 100). Card IDs (not note IDs) — use get_cards, get_due_cards, or notesInfo to obtain them.
getMediaFilesNamesList media files in `collection.media`, optionally filtered by pattern
ParameterTypeDescription
patternstringOptional filter pattern (e.g., "*.mp3")
getTagsGet all tags in the collection (use first to avoid duplication)
ParameterTypeDescription
patternstringOptional filter pattern - returns only tags containing this string (case-insensitive)
get_cardsGet cards with flexible filtering by state (due, new, learning, suspended, buried) and deck (answers omitted unless `include_answer: true`, default `false`)
ParameterTypeDescription
deck_namestringSpecific deck name to get cards from. If not specified, gets cards from all decks
include_answerbooleanWhether to include each card's answer (back). Defaults to false so answers are not seen before the user reveals them via present_card; true suits content analysis or editing rather than live review.
limitnumberMaximum number of cards to return
get_due_cardsGet cards that are due for review, optionally filtered by deck (answers omitted unless `include_answer: true`, default `false`)
ParameterTypeDescription
deck_namestringSpecific deck name to get cards from. If not specified, gets cards from all decks
include_answerbooleanWhether to include each card's answer (back). Defaults to false so answers are not seen before the user reveals them via present_card; true suits content analysis or editing rather than live review.
include_learningbooleanInclude cards in learning phase (seen but not yet graduated). Default: true
include_newbooleanInclude new cards (never seen before). Default: false
limitnumberMaximum number of cards to return
guiAddCardsOpen the Add Cards dialog with preset note details
ParameterTypeDescription
noteobjectDeck to add the note to
guiBrowseOpen the Card Browser and search for cards
ParameterTypeDescription
query *stringAnki search query using standard syntax (e.g., "deck:Spanish tag:verb", "is:due", "added:7")
reorderCardsobjectSort order for the cards in browser
guiCurrentCardGet info about the current card in review mode (includes the answer; errors outside review mode)
guiDeckBrowserOpen the Deck Browser dialog
guiDeckOverviewOpen the Deck Overview dialog for a specific deck
ParameterTypeDescription
name *stringDeck name to open (get from listDecks)
guiEditNoteOpen the note editor for a specific note
ParameterTypeDescription
note *numberNote ID to edit (get from findNotes or notesInfo)
guiSelectCardSelect a specific card in the Card Browser
ParameterTypeDescription
card *numberCard ID to select in the browser (get from guiBrowse results)
guiSelectedNotesGet IDs of notes currently selected in the Card Browser
guiShowAnswerShow the answer side of the current card
guiShowQuestionShow the question side of the current card
guiUndoUndo the last action in Anki
listDecksList all decks, optionally with per-deck study-queue statistics
ParameterTypeDescription
includeStatsbooleanInclude card count statistics for each deck
modelFieldNamesGet field names for a specific note type
ParameterTypeDescription
modelName *stringThe name of the model/note type to get fields for
modelNamesList all available note types/models
modelStylingGet CSS styling information for a note type
ParameterTypeDescription
modelName *stringThe name of the model/note type to get styling for
modelTemplatesGet the card templates (Front and Back HTML) for a note type
ParameterTypeDescription
modelName *stringThe name of the model/note type to get templates for
notesInfoGet detailed information about notes (fields, tags, note type, card IDs; CSS comes from `modelStyling`)
ParameterTypeDescription
notes *arrayArray of note IDs to get information for (max 100 at once for performance). Get these IDs from findNotes tool.
present_cardShow a card for review with its question/front side
ParameterTypeDescription
card_id *numberThe ID of the card to retrieve
show_answerbooleanWhether to include the answer/back content in the response
rate_cardRate card performance (Again, Hard, Good, Easy) and schedule the next review
ParameterTypeDescription
card_id *numberThe ID of the card to rate
rating *numberThe user's rating for the card: 1=Again (failed), 2=Hard, 3=Good, 4=Easy
removeModelFieldRemove a field from an existing note type (deletes its content from all notes; requires explicit confirmation)
ParameterTypeDescription
confirmDeletion *booleanConfirms that all data in this field will be permanently deleted; the call is rejected unless this is true.
fieldName *stringName of the field to remove (e.g., "Grammar", "IPA")
modelName *stringName of the note type to modify (e.g., "Basic", "Latin Vocabulary")
removeTagsRemove space-separated tags from specified notes
ParameterTypeDescription
notes *arrayArray of note IDs to modify
tags *stringSpace-separated tags to remove (e.g., "tag1 tag2")
renameModelFieldRename a field in an existing note type (Anki rewrites references to the old name in the card templates)
ParameterTypeDescription
modelName *stringName of the note type to modify (e.g., "Basic", "Latin Vocabulary")
newFieldName *stringNew name for the field (e.g., "Grammar Notes")
oldFieldName *stringCurrent name of the field to rename (e.g., "Notes")
replaceTagsRename a tag across specified notes
ParameterTypeDescription
notes *arrayArray of note IDs to modify
replaceWithTag *stringThe tag to replace with
tagToReplace *stringThe tag to search for and replace
repositionModelFieldChange the position of a field within an existing note type
ParameterTypeDescription
fieldName *stringName of the field to reposition (e.g., "Grammar")
index *numberNew 0-based position for the field (0 = first field).
modelName *stringName of the note type to modify (e.g., "Basic", "Latin Vocabulary")
retrieveMediaFileDownload a media file as base64 content
ParameterTypeDescription
filename *stringFilename of the media file to retrieve (e.g., "pronunciation.mp3")
review_statsReview history analysis (temporal patterns, retention metrics, study streaks)
ParameterTypeDescription
deckstringDeck name to filter reviews. Matches the EXACT deck only - subdecks are NOT included, so a parent deck still returns reviews for cards assigned directly to it (but not its subdecks' cards). Omit (or pass an empty string) to analyze the entire collection (all decks).
end_datestringEnd date (defaults to today)
start_date *stringStart date for analysis (ISO format: YYYY-MM-DD) - REQUIRED
setDueDateReschedule cards to become due in N days (`"0"`, `"3-7"`, `"1!"`), without recording a review
ParameterTypeDescription
cards *arrayArray of card IDs to reschedule (max 100). Card IDs (not note IDs) — use get_cards, get_due_cards, or notesInfo to obtain them.
days *stringHow many days from now the cards become due. "0" = today, "1" = tomorrow, "3-7" = a random day in that inclusive range (spreads a batch out instead of stacking it on one day). Append "!" — e.g. "1!" — to also overwrite the card's interval with that value, rather than leaving the existing interval in place.
storeMediaFileUpload media from base64 data, an absolute file path, or a URL
ParameterTypeDescription
datastringBase64-encoded file content
deleteExistingbooleanOverwrite existing file (default: true)
filename *stringFilename to store in Anki (e.g., "pronunciation.mp3", "image.jpg")
pathstringAbsolute path to a local media file (images, audio, video only)
urlstringURL to download file from
suspendSuspend cards so they are skipped during review until unsuspended
syncSync with AnkiWeb to pull latest data and push changes
unsuspendUnsuspend cards so they return to normal review
updateModelStylingUpdate the CSS styling for an existing note type (applies to all its cards)
ParameterTypeDescription
css *stringNew CSS styling content. For RTL languages, include "direction: rtl;" in .card class. This will completely replace the existing CSS.
modelName *stringName of the model to update (e.g., "Basic", "Basic RTL")
updateModelTemplatesUpdate the card templates (Front and Back HTML) for an existing note type (applies to all its cards)
ParameterTypeDescription
modelName *stringName of the model to update (e.g., "Basic", "Cloze")
templates *objectHTML template for the front/question side
updateNoteFieldsUpdate existing note fields (CSS-aware, supports HTML content)
ParameterTypeDescription
noteobjectThe ID of the note to update. Get this from findNotes or notesInfo.

Security checks

Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 7.3K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
  • ✓No dynamic code executionScanned 127 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
stdiosrc/main-stdio.ts:3
Starts other programs
2 callssrc/services/ngrok.service.ts:37, src/services/ngrok.service.ts:80
Outbound network calls
3 callssrc/mcp/clients/anki-connect.client.ts:129, src/tunnel/device-flow.service.ts:106, src/tunnel/tunnel.client.ts:226
Writes or deletes files
No file writes or deletes
Lockfile
package-lock.json

Pattern matches on the source text of 127 files: places to read, not proof of what the code does at run time.

Releases

v0.28.0v0.28.0 · 29 Nov 2026What's Changed fix: symlink-safe media imports, origin guard and filename hardening, MCP SDK bump (0.27.1) by @anatoly314 in https://github.com/ankimcp/anki-mcp-server/pull/73 fix(createDeck): allow nested decks at any depth by @lemonardo1…
v0.27.0v0.27.0 · 4 Oct 2026What's Changed Directory-policy pass on the tool surface, read-only hardening, createDeck fixes by @anatoly314 in https://github.com/ankimcp/anki-mcp-server/pull/71 Full Changelog:…
v0.26.0v0.26.0 · 18 Sep 2026What's Changed feat: add card suspension tools by @hunter-shepherd in https://github.com/ankimcp/anki-mcp-server/pull/68 New Contributors @hunter-shepherd made their first contribution in https://github.com/ankimcp/anki-mcp-server/pull/68…
v0.25.1v0.25.1 · 9 Sep 2026Full Changelog: https://github.com/ankimcp/anki-mcp-server/compare/v0.25.0...v0.25.1
v0.25.0v0.25.0 · 4 Sep 2026⚠️ Breaking change `get_due_cards` / `get_cards` no longer return card answers by default (#62, #63). Previously every batch fetch put all answers into the model's context before you had a chance to self-test — defeating the point of…

README

The repository's README runs to about 7.3K words, fetched 2 days ago. The original in the repository is authoritative.

Read full README
Questions

About anki-mcp/anki-mcp-desktop

How do I install anki-mcp/anki-mcp-desktop?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is anki-mcp/anki-mcp-desktop safe to use with an AI agent?

Its trust score is 77 out of 100 (good). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Conduid's scan of 127 source files found that it serves MCP over stdio, starts other programs (2 calls) and makes outbound network calls (3 calls). Its dependencies are pinned by package-lock.json. It has no ConduID identity yet, so agent calls to it are not receipted.

Is anki-mcp/anki-mcp-desktop still maintained?

Yes — the latest release is v0.28.0 (29 Nov 2026), and the last commit was 2 days ago. The repository has 587 stars and 2 open issues.

What tools does anki-mcp/anki-mcp-desktop provide?

Conduid read 53 tools from the source: addModelField, addNote, addNotes, addTags, areSuspended, changeDeck, clearUnusedTags, collection_stats and 45 more. 41 of them publish their parameters, listed under Tools above.

What license is anki-mcp/anki-mcp-desktop released under?

The repository declares the MIT license. That applies to the latest release, v0.28.0, as well.