Anki MCP Server
UnclaimedA Model Context Protocol (MCP) server that enables AI assistants to interact with Anki, the spaced repetition flashcard application.
Install
npx @ankimcp/anki-mcp-serverUnclaimed listing
Is this your MCP server?
This listing was auto-indexed from the public record. Claim it to edit the page, set compatibility and unlock growth tools. Takes under two minutes.
Claim this serverTools (40)
addModelField
Add a new field to an existing note type (appended at the end or inserted at a specific position)
addNote
Create a single note with specified fields and tags
addNotes
Batch-create up to 100 notes sharing a deck and model (partial success supported)
addTags
Add space-separated tags to specified notes
changeDeck
Move cards to a different deck (created if it doesn't exist)
clearUnusedTags
Remove orphaned tags not used by any notes (destructive)
collection_stats
Aggregated statistics across all decks with per-deck breakdown and collection-wide card-state counts
createDeck
Create a new empty deck (supports Parent::Child, max 2 levels)
createModel
Create a new note type with custom fields, card templates, and CSS (e.g., RTL models)
deckStats
Get comprehensive statistics for a single deck (study queue, true card-state counts, ease/interval distributions)
deleteMediaFile
Remove a media file from collection.media (destructive)
deleteNotes
Delete notes and all associated cards (destructive, requires confirmation)
findNotes
Search for notes using Anki query syntax (deck:, tag:, is:due, etc.)
get_cards
Get cards with flexible filtering by state (due, new, learning, suspended, buried) and deck
get_due_cards
Get cards that are due for review, optionally filtered by deck
getMediaFilesNames
List media files in collection.media, optionally filtered by pattern
getTags
Get all tags in the collection (use first to avoid duplication)
guiBrowse
Open the Card Browser and search for cards
guiSelectCard
Select a specific card in the Card Browser
guiSelectedNotes
Get IDs of notes currently selected in the Card Browser
listDecks
List all decks, optionally with per-deck study-queue statistics
modelFieldNames
Get field names for a specific note type
modelNames
List all available note types/models
modelStyling
Get CSS styling information for a note type
modelTemplates
Get the card templates (Front and Back HTML) for a note type
notesInfo
Get detailed information about notes (fields, tags, CSS styling)
present_card
Show a card for review with its question/front side
rate_card
Rate card performance (Again, Hard, Good, Easy) and schedule the next review
removeModelField
Remove a field from an existing note type (deletes its content from all notes; requires explicit confirmation)
removeTags
Remove space-separated tags from specified notes
renameModelField
Rename a field in an existing note type (card templates referencing the old name must be updated separately)
replaceTags
Rename a tag across specified notes
repositionModelField
Change the position of a field within an existing note type
retrieveMediaFile
Download a media file as base64 content
review_stats
Review history analysis (temporal patterns, retention metrics, study streaks)
storeMediaFile
Upload media from base64 data, an absolute file path, or a URL
sync
Sync with AnkiWeb to pull latest data and push changes
updateModelStyling
Update the CSS styling for an existing note type (applies to all its cards)
updateModelTemplates
Update the card templates (Front and Back HTML) for an existing note type (applies to all its cards)
updateNoteFields
Update existing note fields (CSS-aware, supports HTML content)