Anki MCP Server

Enables Large Language Models to interact with Anki flashcard software through AnkiConnect using the Model Context Protocol.

Local serverstdio 247

What is the Anki MCP server?

Enables Large Language Models to interact with Anki flashcard software through AnkiConnect using the Model Context Protocol. The anki mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 14 defined tools rather than through you.

Its toolset

Everything the assistant can do here goes through one of these:

  • 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

Adding it to your client

Installation goes through your MCP client rather than a global install: point it at skills on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

Configuration

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

When to reach for it

Plenty of planning and project tracking servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Anki's toolset — anki_check_connection, anki_list_decks, anki_create_deck and 11 more — is a fair guide to whether it matches your workflow. It is maintained by nailuoGG; 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.

Caveats

  • 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 Anki.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the anki mcp server does with a few real requests.

Available tools

ToolWhat it does
anki_check_connectionCheck whether AnkiConnect is reachable
anki_list_decksList all available Anki decks, optionally with deck IDs
anki_create_deckCreate a new Anki deck
anki_list_tagsList all tags currently used in the collection
anki_add_note_tagsAdd tags to one or more notes
anki_remove_note_tagsRemove tags from one or more notes
anki_create_noteCreate a new note
anki_batch_create_notesCreate multiple notes at once
anki_search_notesSearch for notes using Anki query syntax
anki_get_note_infoGet detailed information about a note
anki_update_noteUpdate an existing note's fields and/or tags
anki_delete_noteDelete one or multiple notes
anki_list_note_typesList all available note types
anki_create_note_typeCreate a new note type

How to install the Anki MCP server

{
  "mcpServers": {
    "anki-3": {
      "command": "npx",
      "args": ["-y", "skills"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

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

Example prompts to try

  • Use Anki to anki check connection.
  • Use Anki to anki list decks.
  • Use Anki to anki create deck.

Frequently asked questions

You can programmatically create new Anki decks, add or update flashcards (both basic and cloze deletion types), search for specific notes using Anki's query syntax, and retrieve detailed information about your notes and note types, all powered by LLMs.