Enables managing Anki flashcards through AnkiConnect, including retrieving due cards for review, checking card counts, and submitting review ratings for spaced repetition learning.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-ankiconnectHow many flashcards are due for review today?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-ankiconnect MCP server
Connect Claude conversations with AnkiConnect via MCP to make spaced repetition as easy as "Let's go through today's flashcards" or "Make flashcards for this"
Components
Tools
The server implements three tools:
num_cards_due_today: Get the number of cards due todayOptional
deckargument to filter by specific deckReturns count of due cards across all decks or specified deck
get_due_cards: Get cards that are due for reviewOptional
limitargument (default: 5) to control number of cardsOptional
deckargument to filter by specific deckOptional
today_onlyargument (default: true) to show only today's cardsReturns cards in XML format with questions and answers
submit_reviews: Submit answers for reviewed cardsTakes list of
reviewswithcard_idandratingRatings: "wrong", "hard", "good", "easy"
Returns confirmation of submitted reviews
Related MCP server: Anki MCP Server
Configuration
Prerequisites
Anki must be running with AnkiConnect plugin installed (plugin id 2055492159) AnkiConnect can be slow on Macs due to the AppSleep feature, so disable it for Anki. To do so run the following in your terminal.
defaults write net.ankiweb.dtop NSAppSleepDisabled -bool true defaults write net.ichi2.anki NSAppSleepDisabled -bool true defaults write org.qt-project.Qt.QtWebEngineCore NSAppSleepDisabled -bool true
Installation
Quickstart
Install the AnkiConnect plugin in Anki:
Tools > Add-ons > Get Add-ons...
Enter code:
2055492159Restart Anki
Configure Claude Desktop:
On MacOS:
~/Library/Application\ Support/Claude/claude_desktop_config.jsonOn Windows:%APPDATA%/Claude/claude_desktop_config.jsonAdd this configuration:
{ "mcpServers": { "mcp-ankiconnect": { "command": "uv", "args": ["run", "--with", "mcp-ankiconnect", "mcp-ankiconnect"] } } }Restart Anki and Claude desktop
Debugging
Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector. First, clone the repository and install the dependencies:
You can launch the MCP Inspector via the mcp CLI:
Upon launching, the Inspector will display a URL you can access in your browser to begin debugging.