anki-mcp

anki-mcp

3.3

A Model Context Protocol (MCP) server for integrating AI assistants with Anki, the popular spaced repetition flashcard software.

The Anki MCP Server is designed to facilitate seamless interaction between AI assistants and Anki, a widely-used flashcard application that employs spaced repetition for effective learning. By leveraging the Model Context Protocol, this server allows AI systems to perform various operations on Anki collections, such as retrieving collection overviews, adding or updating notes, and querying notes using Anki's search syntax. This integration is particularly useful for users who wish to automate or enhance their study sessions with AI-driven insights and functionalities. The server requires Anki to be installed and running, along with the AnkiConnect add-on, which acts as a bridge between Anki and external applications. The server is built using the uv framework, ensuring a robust and efficient communication channel between the AI assistant and Anki.

Features

  • get-collection-overview: Returns an overview of the Anki collection like available decks, available models and their fields.
  • add-or-update-notes: Adds new notes or updates existing ones. Allows batch adding/updating multiple notes at once.
  • get-cards-reviewed: Get the number of cards reviewed by day.
  • find-notes: Allows querying notes using the Anki searching syntax.

MCP Tools

  • {'get-collection-overview': 'Returns an overview of the Anki collection like available decks, available models and their fields.'}
  • {'add-or-update-notes': 'Adds new notes or updates existing ones. Allows batch adding/updating multiple notes at once.'}
  • {'get-cards-reviewed': 'Get the number of cards reviewed by day.'}
  • {'find-notes': 'Allows querying notes using the Anki searching syntax.'}

Usage with Different Platforms

Claude Desktop


{
  "mcpServers": {
    "anki-mcp": {
      "command": "uvx",
      "args": [
        "anki-mcp"
      ]
    }
  }
}