Anki MCP

An MCP server for Anki, with optional skills that teach your agent good study workflows. Your agent can quiz you, turn your notes into cards, plan your studying toward a date, tell you what you keep getting wrong, and tidy up your decks, all against your real collection.
Install
You need Anki running with the AnkiConnect add-on (in Anki: Tools → Add-ons → Get Add-ons…, code 2055492159, then restart Anki), and Node.js 20+.
Then add the server to your agent:
npx add-mcp @arielbk/anki-mcp --name anki -g
add-mcp writes the config for Claude Code, Codex, Cursor, VS Code, Claude Desktop and about 20 other agents. To set it up by hand instead, any MCP client takes this:
{
"mcpServers": {
"anki": { "command": "npx", "args": ["-y", "@arielbk/anki-mcp"] }
}
}
Or with your agent's own CLI:
claude mcp add --scope user anki -- npx -y @arielbk/anki-mcp
codex mcp add anki -- npx -y @arielbk/anki-mcp
On Claude Code you can install the server and the skills together as a plugin instead:
/plugin install anki --marketplace arielbk/anki-mcp
Start a new session, then ask "what's due in Anki today?" to check it works.
Things to try
- "Quiz me on 10 cards from my Japanese deck."
- "Turn this chapter into cards. Write them to a file first so I can check them."
- "What have I been getting wrong this week?"
- "I've got an exam on January 10th and I'm struggling with cardiology. Make me a study plan."
- "How am I doing with my Japanese deck?"
- "Pause my Spanish deck for now."
- "Give my interview prep deck its own limit of 15 new cards a day."
What's in the box
Eight tools, each with a handful of operations:
| Tool | For |
|---|
manage_flashcards | Create, find, edit, tag and delete notes. Batch import from JSON, CSV or TSV, with a dry run. |
manage_scheduling | Due cards, answering, suspend/unsuspend, forget, relearn, and the order new cards come in. |
manage_decks | Create, rename and delete decks, move cards, today's due counts, per-deck limits, display order. |
get_analytics | Progress and review history: deck overviews, trouble cards, reviews per day, forecasts. |
manage_models | Note types: fields, templates, styling. |
manage_collection | AnkiWeb sync, .apkg import/export, profiles, media. |
get_media_file | Read an image or audio file from your collection. |
control_gui | Drive the Anki app itself: open the browser, add or edit dialogs, review on screen. |
There's also a writing_good_flashcards prompt (card-writing guidelines based on Andy Matuschak's and SuperMemo's advice) and read-only anki:/// resources.
Bulk operations take an Anki search query, so "suspend everything in this deck" is one call however big the deck is, and they support dryRun so you can see what would change first.
The full parameter reference is in docs/tools.md. Upgrading from 1.x? Three tools were renamed; see the notes at the top of that page.
Skills
The tools let your agent do things in Anki; the skills teach it how to do them well. Each one is a workflow with the judgment built in: