
Anki
io.github.nietusv0.2.0Updated Oct 5, 2026
Study and manage Anki flashcards via AnkiConnect: quizzes, stats, leeches, bulk edits.
Overview
Lets an assistant study and manage an Anki flashcard collection through AnkiConnect, including quizzes, stats, leech review, and bulk edits.
- What it does
- Exposes 35 tools over AnkiConnect for studying and managing an Anki collection. It can quiz you on due cards and record answers, report due counts, streaks, retention and review history, find leeches, and create, edit, move, reschedule, suspend or delete notes and cards in bulk. It also manages decks, note types, tags and AnkiWeb sync, and can generate audio for cards when an Azure key is configured.
- When to use it
- Useful if you already study with Anki and want an assistant to run quiz sessions, summarize what is due and how retention is going, clean up cards you keep forgetting, or make bulk changes to notes, tags and scheduling.
- Requirements
- Runs locally as a stdio process; needs Node.js 18+, Anki running, and the AnkiConnect add-on (code 2055492159). Optional environment variables: ANKI_CONNECT_HOST, ANKI_CONNECT_PORT, ANKI_CONNECT_KEY, and AZURE_API_KEY with AZURE_REGION for the audio tools. Desktop only.
Installation
In SourceWeft
- Open Anki in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
anki-mcp
Study and manage your Anki collection by talking to Claude (or any MCP client). 35 tools over AnkiConnect: get quizzed in chat, see what is due and how your retention is going, find the cards you keep forgetting, create and clean up notes in bulk, and pause whole groups of cards until you want them back.
What you can ask
- "What do I have to study today?" → due counts per deck, streak, reviews this week.
- "Quiz me on 10 due cards from my Spanish deck." → one question at a time, graded, and recorded in Anki with the next interval.
- "Which cards do I keep getting wrong? Help me fix them." → leeches, their review history, and rewrites you approve.
- "Suspend everything tagged HSK5 until my exam, and make it easy to bring back." → named pause that restores exactly those cards, scheduling intact.
- "Turn this article into cloze cards in my Biology deck." → duplicate-checked bulk add.
- "Add audio to every card in this deck that doesn't have it." → Azure TTS in bulk.
- "Move the cards tagged
grammarto a new subdeck" / "rename the tagtodotoreview" / "spread my backlog over the next two weeks".
Bulk changes can be previewed with a dry run, deleting always needs a confirmation step, and when Anki is closed the assistant is told to ask you to open it instead of failing silently.
Install
You need Node.js 18+, Anki running, and the AnkiConnect add-on (code 2055492159).
Claude Desktop
Download anki-mcp.mcpb from the latest release and drag it into Settings → Extensions. That's it.
Claude Code
Cursor and other MCP clients
Add this to the client's MCP configuration:
On Windows, if the client cannot start npx directly, use "command": "cmd" with "args": ["/c", "npx", "-y", "github:nietus/anki-mcp"].
From source
Then point your client at node /path/to/anki-mcp/build/client.js. To build the Claude Desktop bundle yourself, run npm run pack:mcpb (output in dist/anki-mcp.mcpb).
Configuration
All environment variables are optional. Put them in a .env file in the project folder or pass them through your MCP client.
Development
Available Tools
Every tool is annotated as read-only, write or destructive, so clients like Claude Desktop can auto-approve reads and ask before destructive changes. Errors (including "Anki is not running") come back as readable tool results.
Most bulk tools select cards or notes the same way: deckName (subdecks included), tags (matches any), query (any Anki search, ANDed), or explicit cardIds / noteIds. Write tools accept dryRun: true to preview the change first.
Studying
Selecting and scheduling cards
Creating and editing notes
Audio (requires AZURE_API_KEY)
Supported languages: en, es, fr, de, it, ja, ko, pt, pt-PT, ru, zh, ar, nl, hi, tr, pl, sv, fi, da, no, cs, hu, el, he, th, vi, id, ms, ro.
Decks and note types
Prompts
Resources
anki://collection/overview– study overview.anki://search/isdue,anki://search/isnew,anki://search/deckcurrent– up to 50 cards each.anki://deck/{deckName}/overview– due counts for one deck.anki://model/{modelName}– fields, templates and CSS of a note type.
License
Source: README.md at commit ace7997
Tools
0Version history
1- v0.2.0LatestOct 5, 2026


