Anki

Anki

An MCP server for interacting with your Anki decks and cards.

174
Stars
29
Forks
0
Releases

Overview

Anki MCP Server is an MCP server implementation that connects to a locally running Anki, providing card review and creation. This server is designed to work with the Anki desktop app and the Anki-Connect add-on. Make sure you have the add-on installed before using. It exposes MCP‑style tools to interact with Anki decks: updating existing cards, creating new cards, and retrieving due or new cards. Tools include update_cards (marks cards as answered and assigns an ease score from 1 to 4), add_card (creates a new card in the Default Anki deck), get_due_cards (returns a specified number of due cards), and get_new_cards (returns a specified number of new cards). Development workflow uses npm install, npm run build, and npm run watch for auto‑rebuild. Debugging of MCP servers uses stdio communication and the MCP Inspector, accessible via npm run inspector. Configuration examples show how to register the server with Claude Desktop and point to the built index.js, enabling cross‑application use.

Details

Owner
scorzeth
Language
JavaScript
License
MIT License
Updated
2025-12-07

Features

update_cards

Marks cards with given card IDs as answered and assigns an ease score between 1 (Again) and 4 (Easy). Inputs: answers (array) of objects with cardId (number) and ease (number).

add_card

Creates a new card in the Default Anki deck. Inputs: front (string), back (string).

get_due_cards

Returns n number of cards currently due for review. Inputs: num (number).

get_new_cards

Returns n number of cards from new. Inputs: num (number).

Tags

AnkiMCPAnki-Connectcardsdeckreviewcreationdesktop app