A Model Context Protocol (MCP) server for integrating AI assistants with Anki, the popular spaced repetition flashcard software.
This MCP server enables AI assistants to interact with Anki through the following 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
- Anki must be installed and running
- The AnkiConnect add-on must be installed in Anki and running
- This MCP server uses
uv
. To installuv
, follow the official instructions.
- Open your Claude Desktop config file:
- MacOS:
~/Library/Application\ Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%/Claude/claude_desktop_config.json
- Add
anki-mcp
to themcpServers
section:
"mcpServers": {
"anki-mcp": {
"command": "uvx",
"args": [
"anki-mcp"
]
}
}
- Restart Claude Desktop.