AnkiConnect MCP Server

Connects Claude conversations with AnkiConnect to facilitate spaced repetition learning.

Local serverstdioGo 13

What is the AnkiConnect MCP server?

AnkiConnect MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. Connects Claude conversations with AnkiConnect to facilitate spaced repetition learning.

What you get

Connect Claude conversations with AnkiConnect via MCP to make spaced repetition as easy as "Let's go through today's flashcards" or "Make flashcards for this"

What the assistant can call

Once AnkiConnect is connected, these are the calls the assistant has available:

  • num_cards_due_today — Get the number of cards due today
  • get_due_cards — Get cards that are due for review
  • submit_reviews — Submit answers for reviewed cards
  • Ratings — "wrong", "hard", "good", "easy"
  • search_notes — Find notes by AnkiConnect query. Returns IDs + a short Front preview by default (cheap); pass return_card_content=true to receive cleaned field
  • inspect_cards — View per-card state for given card IDs or note IDs. Sparse-fieldset selection via the properties list: any of identity, state, scheduling
  • update_note_fields — Modify the text content of one note's fields. Uses the same MathJax/code conversions as add_note
  • update_note_tags — Add and/or remove tags on one or more notes
  • set_suspended — Suspend or unsuspend one or more cards
  • change_deck — Move cards (by card ID) into a different deck
  • reschedule_cards — Set due date, forget, or relearn one or more cards
  • Tools — The Tools tool exposed by this server

Configuration and credentials

  • Anki must be running with AnkiConnect plugin installed (plugin id 2055492159) AnkiConnect can be slow on Macs due to the AppSleep feature, so disable it for Anki. To do so run the following in your terminal.

Setting it up

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.

Choosing this one

Among the planning and project tracking options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. AnkiConnect's toolset — num_cards_due_today, get_due_cards, submit_reviews and 11 more — is a fair guide to whether it matches your workflow. It is maintained by samefarrar; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch AnkiConnect.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the ankiconnect mcp server does with a few real requests.

Available tools

ToolWhat it does
num_cards_due_todayGet the number of cards due today
get_due_cardsGet cards that are due for review
submit_reviewsSubmit answers for reviewed cards
Ratings"wrong", "hard", "good", "easy"
search_notesFind notes by AnkiConnect query. Returns IDs + a short Front preview by default (cheap); pass return_card_content=true to receive cleaned field content inline.
inspect_cardsView per-card state for given card IDs or note IDs. Sparse-fieldset selection via the properties list: any of identity, state, scheduling, timestamps, history, fields, or all (default: ["identity", "state", "scheduling"]
update_note_fieldsModify the text content of one note's fields. Uses the same MathJax/code conversions as add_note.
update_note_tagsAdd and/or remove tags on one or more notes.
set_suspendedSuspend or unsuspend one or more cards.
change_deckMove cards (by card ID) into a different deck.
reschedule_cardsSet due date, forget, or relearn one or more cards.
ToolsThe Tools tool exposed by this server.
PrerequisitesThe Prerequisites tool exposed by this server.
InstallationThe Installation tool exposed by this server.

Configuration

  • Anki must be running with AnkiConnect plugin installed (plugin id 2055492159) AnkiConnect can be slow on Macs due to the AppSleep feature, so disable it for Anki. To do so run the following in your terminal.

Example prompts to try

  • Use AnkiConnect to num cards due today.
  • Use AnkiConnect to get due cards.
  • Use AnkiConnect to submit reviews.

Frequently asked questions

AnkiConnect for Claude connects your Claude conversations with your Anki spaced repetition system. It allows you to easily create flashcards and review them directly from your Claude interface.