Anki MCP Server
This server (as defined by the given schema) is a minimal Anki deck/note creator, not the full 35-tool anki-mcp described in the README.
Create a deck —
anki_create_deckmakes a new deck by name.Add one flashcard —
anki_add_noteadds a single note to a deck, givendeckName,front, andback.Add many flashcards —
anki_add_notesbulk-adds an array of front/back cards to a deck in one call.
Note: the schema exposes only 3 simple write tools with no read, study, search, suspend, tag, audio, or destructive operations, so it does not match the README's advertised capabilities (study/quizzing, due-card retrieval, leech finding, retention stats, bulk edit, audio via Azure TTS, note types, resources, prompts, etc.). No tool supports dry runs or confirmation tokens.
Provides tools for managing Anki flashcards and decks, including creating and updating cards, managing note types, searching for cards, retrieving due and new cards, and handling card reviews programmatically through the AnkiConnect plugin.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Anki MCP Server create a flashcard for the capital of France"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Related MCP server: Anki MCP Server
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
claude mcp add anki --scope user -- npx -y github:nietus/anki-mcpCursor and other MCP clients
Add this to the client's MCP configuration:
{
"mcpServers": {
"anki": {
"command": "npx",
"args": ["-y", "github:nietus/anki-mcp"]
}
}
}On Windows, if the client cannot start npx directly, use "command": "cmd" with "args": ["/c", "npx", "-y", "github:nietus/anki-mcp"].
From source
git clone https://github.com/nietus/anki-mcp
cd anki-mcp
npm install
npm run buildThen 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.
Variable | Default | Purpose |
| – | Enables the audio tools (Azure Text-to-Speech). |
|
| Azure Speech region. |
|
| AnkiConnect host. |
|
| AnkiConnect port. |
| – | AnkiConnect API key, if you set one in the add-on config. |
Development
npm test # unit + in-memory MCP server tests (no Anki needed)
npm run inspector # try the tools interactivelyAvailable 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
Tool | What it does |
| Today's new/learning/review counts per deck, cards reviewed today, streak, 7/30-day totals. |
|
|
| Record answers ( |
| Weakest cards (leech tag / many lapses), ranked by lapses and ease. |
| Full review log of up to 20 cards. |
| True retention (young/mature), reviews per day and time spent for a deck over N days. |
| Undo the last action in Anki. |
Selecting and scheduling cards
Tool | What it does |
| Paginated search ( |
| Deactivate/reactivate cards, e.g. all cards with tag X in deck Y. Scheduling is preserved. Pass a |
| Move cards to |
|
|
Creating and editing notes
Tool | What it does |
| Create one note. |
| Create many notes; duplicates/invalid notes are skipped and reported with the reason. |
| Create cloze notes from text plus |
| Edit fields of existing notes. |
| Plain or regex replace across notes, optionally limited to some |
|
|
| Add an image to a field from a |
| Two-step delete: the first call previews and returns a |
Audio (requires AZURE_API_KEY)
Tool | What it does |
| Create a note with audio generated from |
| Generate audio for one existing note. |
| Generate audio for many notes (by default only those with an empty audio field), |
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
Tool | What it does |
| List or create decks. |
| Which note types a deck uses (call before adding cards to it). |
| List note types / fields, templates and CSS of one. |
|
|
| Replace templates or CSS. |
| Create a note type. |
| Sync with AnkiWeb. |
Prompts
Prompt | What it does |
| Study session: one question at a time, graded and recorded in Anki. |
| Turn a text into atomic flashcards (previewed before adding). |
| Find the cards you keep forgetting and fix them. |
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
Available Tools
3 toolsanki_add_noteC
Add a flashcard to an Anki deck
Inputs: back (required), deckName (required), front (required).
anki_add_notesC
Add multiple flashcards to an Anki deck
Inputs: cards (required), deckName (required).
anki_create_deckC
Create a new Anki deck
Inputs: deckName (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The tools have overlapping purposes, as 'anki_add_note' and 'anki_add_notes' both handle adding flashcards, which could cause confusion for an agent deciding between single vs. batch operations. However, the descriptions clarify the distinction (single vs. multiple), mitigating some ambiguity. The 'anki_create_deck' tool is clearly distinct, focusing on deck management rather than note addition.
All tool names follow a consistent 'anki_' prefix and snake_case pattern (e.g., anki_add_note, anki_add_notes, anki_create_deck), with clear verb_noun structures. This predictability makes it easy for agents to understand and navigate the tool set without confusion from mixed conventions.
With only 3 tools, the server feels thin for managing Anki flashcards, a domain that typically involves operations like updating, deleting, reviewing, or searching notes and decks. The count is too low for the apparent scope, lacking essential CRUD lifecycle coverage beyond basic creation, which may limit agent functionality.
The tool set is severely incomplete for Anki management, covering only note addition and deck creation. Obvious gaps include updating or deleting notes/decks, listing or searching existing content, and handling reviews or scheduling—core aspects of flashcard workflows. This will likely cause agent failures when trying to perform common tasks beyond initial setup.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Model Context Protocol server for Studex tools, notifications, and profile integrations
Related MCP Servers
- AlicenseAqualityDmaintenanceA server implementation that connects to a locally running Anki, enabling card review and creation through the Model Context Protocol.4185MIT
- AlicenseAqualityBmaintenanceA Model Context Protocol server that enables LLMs to interact with Anki flashcard software through AnkiConnect, allowing for creation and management of flashcards, decks, and note types.16380 npm255MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that allows LLMs to interact with Anki flashcard software, enabling functions like creating decks, adding notes, searching cards, and managing flashcard content through natural language.1MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables interaction with Anki flashcards through AnkiConnect, providing organized tools for managing decks, notes, cards, models, and media files.407MIT