Anki MCP Server
UnclaimedA Model Context Protocol (MCP) server that enables AI assistants to interact with Anki, the spaced repetition flashcard application.
Set up this server
01 / Choose your client
02 / Before you connect
Authentication is not specified. Check the project instructions before connecting.
Project instructions03 / Add the configuration
claude mcp add --transport stdio 'ankimcp-anki-mcp-server' -- 'npx' '-y' '@ankimcp/anki-mcp-server'04 / Check it in your client
Open your client’s MCP settings and confirm the server connects and lists its tools. A copied configuration does not confirm a working connection.
More in AI & ML
Browse the full directoryUnclaimed 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 serverSecurity profile
Claimed and verified servers get a weekly static scan that shows what the code can reach: external services, environment variables, shell commands, agent configuration folders, plus any dependencies with known advisories. Claim this listing to get one. How the security profile works
40 of 40 tools
Documented tools (40)
From project documentation. A server handshake does not verify each tool’s description or behavior.
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)
Tool change history
FAQ
Questions about Anki MCP Server
- How do I connect Anki MCP Server to Claude?
- Run `claude mcp add ankimcp-anki-mcp-server -- npx -y @ankimcp/anki-mcp-server` in Claude Code, or add the same command and arguments under mcpServers in Cursor's mcp.json or Claude Desktop's claude_desktop_config.json, then restart the client. The blocks above are ready to paste.
- Is Anki MCP Server free?
- The listed licence is MIT. Check the upstream terms for permitted use and commercial requirements; a public repository does not by itself mean the software is free or open source. Connected APIs and hosted services may have separate charges.
- What can Anki MCP Server do?
- Anki MCP Server documents 40 tools to the agent, including addModelField, addNote, addNotes. The descriptions above come from project documentation. A live handshake does not test individual tool behavior.