Anki MCP Server
Lets your AI agent study with your Anki flashcards: review cards, create notes, manage decks and media.
546 stars on GitHubby AnkiMCP (ankimcp.ai project)License MITUpdated last month
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add anki -- npx -y @ankimcp/anki-mcp-server
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Help me review my Spanish deck
Create 10 Arabic vocab cards with right-to-left styling
What it is
This server connects your AI agent to Anki, the spaced repetition flashcard app, through the AnkiConnect plugin. The agent can quiz you on due cards, rate your answers, and create or edit notes. It can also manage decks, tags, media files and note types.
What it can do
get_due_cards,present_card,rate_card: run a review sessionsync: sync with AnkiWebaddNoteandaddNotes: create flashcards, up to 100 at a timefindNotesandupdateNoteFields: search and edit noteslistDecks,deckStats,createDeck: manage decksstoreMediaFile: add images and audio from a file, URL or base64createModel: make a new note type, for example right-to-left styling
When to use
- βΊWhen you want an AI tutor to quiz you from your own deck
- βΊWhen you want to create many flashcards quickly from a topic
- βΊWhen you want to check study statistics and tidy tags or decks
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
memento-flashcardsTeaches your agent to make flashcards, quiz you with spaced repetition, and export or import decks, all stored in a local file.flashcardsHelps your agent make and drill flashcards for rule memorization, moving each card between review buckets as you learn it.lesson-generatorHelps your agent create complete and organized courses. It assembles lessons with navigation, objectives, flashcards, and source links. Ideal for teaching or learning in a structured way.Frequently asked questions
Is it free and open source?
The readme shows an npm package and a GitHub repository, and does not mention a price.
What do I need?
Anki with the AnkiConnect plugin and Node.js 22.12.0 or newer.
Is there an easier way to set it up?
The readme recommends the AnkiMCP addon for most setups, because it runs inside Anki with no Node.js and no AnkiConnect. This repository is for STDIO clients and the one-click .mcpb bundle for Claude Desktop.
How many tools does it have?
53 tools: 42 for everyday Anki work and 11 that drive the Anki desktop interface.
Can it delete my data?
Yes. Tools such as deleteNotes and clearUnusedTags are marked destructive, and the readme says deleteNotes needs confirmation.
What is the best way to add images?
Use a file path or a URL. The readme says base64 is slow and wastes tokens.
If it does not work
- βΊMake sure Anki is open and the AnkiConnect plugin is installed; the default address is http://localhost:8765
- βΊCheck that Node.js is version 22.12.0 or newer
- βΊRestart Claude Desktop after installing the .mcpb bundle or changing the config
5 new skills a week. 1 minute to read.