anki-mcp-server

anki-mcp-server

MCP.Pizza Chef: nailuoGG

Ask for twenty cards on Spanish irregular verbs and they land in the deck you name, ready to review tonight. Editing, tagging, searching and deleting existing cards all work too, as does making new decks and card layouts. Anki itself must be open on your computer with the AnkiConnect add-on installed, because everything happens locally rather than through an online account. You can trigger a sync to AnkiWeb, though a success reply only means Anki accepted the request.

Notes
Writing

Use This MCP server To

Make twenty flashcards from the chapter I just read Add cards to my Spanish deck without leaving the chat Find every card I tagged as difficult last month Fix the same typo across several cards at once Create a fresh deck for my exam revision Delete the duplicate cards cluttering up my collection

README

Anki MCP Server

A Model Context Protocol (MCP) server that enables LLMs to interact with Anki flashcard software through AnkiConnect.

Anki Icon

Features

Tools

  • anki_check_connection - Check whether AnkiConnect is reachable
  • anki_list_decks - List all available Anki decks, optionally with deck IDs
  • anki_create_deck - Create a new Anki deck
  • anki_list_tags - List all tags currently used in the collection
  • anki_add_note_tags - Add tags to one or more notes
  • anki_remove_note_tags - Remove tags from one or more notes
  • anki_create_note - Create a new note
  • anki_batch_create_notes - Create multiple notes at once
  • anki_search_notes - Search for notes using Anki query syntax
  • anki_get_note_info - Get detailed information about a note
  • anki_update_note - Update an existing note's fields and/or tags
  • anki_delete_note - Delete one or multiple notes
  • anki_list_note_types - List all available note types
  • anki_create_note_type - Create a new note type
  • anki_get_note_type_info - Get detailed structure of a note type
  • anki_sync - Trigger AnkiWeb sync (fire-and-forget; success means Anki accepted the request, not that AnkiWeb received the data; a blocking dialog in Anki can silently keep the sync queued)

Legacy unprefixed tool names such as create_note and list_decks remain callable for existing clients, but new agent integrations should use the anki_* names.

Resources

  • anki://decks/all - Complete list of available decks with deck IDs
  • anki://tags/all - Complete list of tags
  • anki://note-types/all - List of all available note types
  • anki://note-types/all-with-schemas - Detailed structure information for all note types
  • anki://note-types/{modelName} - Detailed structure information for a specific note type

Prerequisites

  1. Anki installed on your system
  2. AnkiConnect add-on installed in Anki
  3. Node.js 20.11 or newer

anki-mcp-server FAQ

Is this still maintained?
Yes. The repository had commits in July 2026 and the package is published to both npm and the MCP registry.
Can I use this to make flashcards from something I am reading?
Yes. Paste the text, say how many cards you want and which deck, and they are written straight into Anki.
Does Anki have to be open?
Yes. It speaks to the Anki app running on your computer through the AnkiConnect add-on, so both must be installed and Anki must be running.
Do I need a key or a subscription?
No. Everything happens between your assistant and the Anki app on your own machine.
Can it change or delete cards, or only add them?
Both. Creating, editing, tagging and deleting cards and decks are all supported, so be precise about anything you ask it to remove.
Should I install the one-click desktop bundle it offers?
No. The project's own warning says that packaged bundle breaks the connection, and tells you to use the ordinary config snippet instead.
Does asking it to sync guarantee my cards reach AnkiWeb?
No. A success reply only means Anki accepted the request; an open dialog inside Anki can leave the sync quietly queued.
Which apps does it work in?
Claude Desktop, VS Code and Cline are documented, and Claude Code has a matching skill you can install in one command.