Enables AI assistants to seamlessly create, update, and manage Anki flashcard decks and cloze deletions via the Model Context Protocol with full AnkiConnect integration.
Unlock the full potential of Clanki through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.
Free tier available • No credit card required
An MCP server that enables AI assistants like Claude to interact with Anki flashcard decks through the Model Context Protocol (MCP).
git clone https://github.com/yourusername/clanki.git cd clanki
npm install
npm run build
Make sure Anki is running and the AnkiConnect plugin is installed and enabled
Configure Claude for Desktop to use the server by editing claude_desktop_config.json
:
{ "mcpServers": { "clanki": { "command": "node", "args": ["/absolute/path/to/clanki/build/index.js"] } } }
Replace /absolute/path/to/clanki
with the actual path to your clanki installation.
Creates a new Anki deck
name
: Name for the new deckCreates a new basic flashcard in a specified deck
deckName
: Name of the deck to add the card tofront
: Front side content of the cardback
: Back side content of the cardtags
: (Optional) Array of tags for the cardCreates a new cloze deletion card in a specified deck
deckName
: Name of the deck to add the card totext
: Text containing cloze deletions using {{c1::text}} syntaxbackExtra
: (Optional) Extra information to show on the back of the cardtags
: (Optional) Array of tags for the cardUpdates an existing basic flashcard
noteId
: ID of the note to updatefront
: (Optional) New front side contentback
: (Optional) New back side contenttags
: (Optional) New tags for the cardUpdates an existing cloze deletion card
noteId
: ID of the note to updatetext
: (Optional) New text with cloze deletionsbackExtra
: (Optional) New extra information for the backtags
: (Optional) New tags for the cardTo modify or extend the server:
src/index.ts
npm run build
npx @modelcontextprotocol/inspector node build/index.js
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!