Connects AI clients to Anki through AnkiConnect for studying, card editing, scheduling, analytics, audio, and synchronization.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Anki.
get_study_overviewToday's new/learning/review counts per deck, cards reviewed today, streak, 7/30-day totals.
get_due_cardsnum` cards to study (optionally from one `deckName`), with the interval each button would give.
answer_cardsRecord answers (`cardId`, `ease` 1-4) and get each card's new interval. *(Previously `update_cards`.)*
find_leechesWeakest cards (leech tag / many lapses), ranked by lapses and ease.
get_card_historyFull review log of up to 20 cards.
get_retention_statsTrue retention (young/mature), reviews per day and time spent for a deck over N days.
The Anki MCP server lets an MCP-compatible client work with an Anki collection through AnkiConnect. It supports both study workflows and collection maintenance. An agent can inspect today's workload, retrieve cards due for review, record answers, examine review history, identify leeches, and calculate retention metrics for a deck over a selected period.
Collection-management tools cover card selection, scheduling, suspension, deck moves, note creation, field updates, tag operations, image insertion, and deletion. Bulk operations can target a deck, matching tags, an Anki search query, or explicit card and note IDs. Bulk writes can be previewed with a dry-run option, and note deletion uses a preview followed by a confirmation token.
The server communicates with Anki through the AnkiConnect add-on. Anki must be running for requests to reach the collection; connection errors are returned as readable tool results rather than being silently ignored. The default connection uses http://127.0.0.1 on port 8765, with an optional API key if AnkiConnect has been configured to require one.
Study interactions can be handled conversationally. The client can retrieve due cards, present questions, submit ease values from 1 through 4, and receive the resulting intervals. Named suspension labels add a paused::<label> tag, allowing a later unsuspend operation to restore that particular group without reactivating cards suspended for another reason.
Install Node.js 18 or newer, Anki, and the AnkiConnect add-on using code 2055492159. In Claude Code, the repository can be registered with npx -y github:nietus/anki-mcp. Other MCP clients can use a stdio configuration that launches the same command. The project can also be cloned, installed with npm, built, and started from its generated build/client.js entry point.
The Anki MCP server has no mandatory environment variables. ANKI_CONNECT_HOST, ANKI_CONNECT_PORT, and ANKI_CONNECT_KEY adjust the AnkiConnect connection. Audio features additionally use AZURE_API_KEY; AZURE_REGION selects the Azure Speech region and defaults to eastus. Without the Azure key, the regular study and collection tools remain available, but audio generation is not enabled.
The server depends on Anki and AnkiConnect being available locally or at the configured host and port. Audio generation is a separate capability that depends on Azure credentials. Before adding cards, inspect the destination deck's model information so the note type and fields match the intended content. Scheduling changes, bulk edits, and deletion affect the connected collection, so previews, labels, and the deletion confirmation step should be used where appropriate.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/anki)<a href="https://allmcps.com/mcp/anki"><img src="https://allmcps.com/api/badge/anki?style=directory" alt="Anki on AllMCPs" /></a>