Anki MCP Server

A Model Context Protocol (MCP) server that connects Claude and Anki, allowing you to create, manage, and enrich flashcard decks through natural

Local serverstdioPython

What is the Anki MCP Server?

Anki mcp server lets Claude, Cursor and other MCP clients work with Anki directly. A Model Context Protocol (MCP) server that connects Claude and Anki, allowing you to create, manage, and enrich flashcard decks through natural language — without ever opening the Anki UI.

What Anki does

A Model Context Protocol (MCP) server that connects Claude and Anki, allowing you to create, manage, and enrich flashcard decks through natural language — without ever opening the Anki UI.

Requirements

  • Python 3.9 or higher - Anki 2.1.x or higher - AnkiConnect add-on - Claude Desktop (or any MCP-compatible client)

Practical notes

  • Maintained by dhkim0124, written in Python.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
list_decksList all decks with stats (total, new, due, learning cards)
create_deckCreate a new deck (supports nested decks with ::)
delete_deckDelete a deck — requires explicit confirmation
create_cardCreate a single Basic card (front/back)
create_card_batchCreate multiple cards in one call
create_card_customCreate a card using a custom note type, with optional audio/image attachments
search_cardsSearch using Anki's query syntax (tags, text, deck filters)
update_cardEdit fields and tags of an existing card
delete_cardsDelete one or more cards — requires explicit confirmation
create_note_typeCreate a custom note type with chosen fields, CSS style, and HTML templates
get_note_typesList all available note types and their fields
update_note_type_styleUpdate the CSS of an existing note type
update_note_type_templateUpdate the HTML templates of an existing note type
add_mediaUpload an image or audio file (base64) to Anki's media folder
sync_ankiSync your local collection with AnkiWeb

How to install the Anki MCP Server

{
  "mcpServers": {
    "anki-mcp": {
      "command": "python",
      "args": [
        "/absolute/path/to/anki_server.py"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • Python 3.9 or higher - Anki 2.1.x or higher - AnkiConnect add-on - Claude Desktop (or any MCP-compatible client)

Frequently asked questions

A Model Context Protocol (MCP) server that connects Claude and Anki, allowing you to create, manage, and enrich flashcard decks through natural language — without Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.