Feedback

Anki MCP Server — by arielbk

@arielbk Claim

Basic information

Runtime
TypeScript
Version
1.0.0
Category
License
MIT
Transports
stdio
Author
arielbk
Submitted by
Community
Quality
25
Stars
9

About Anki MCP Server

Integrate with Anki for effortless flashcards+ management, create study notes, and sync across ankiweb for effective learning and progress tracking.

Anki is a MCP server in the Ai Ml category listed in the AddMCP.net directory, published by arielbk. It exposes 25 tools, including manage_flashcards, study_session, manage_decks, get_analytics and more. Supported transport: stdio. Runtime: TypeScript. License: MIT. The repository has 9 GitHub stars. Source code is hosted on github.com. Related topics: ai-ml, analytics-data, anki, community, learning.

Setup

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

Anki MCP Server — by arielbk config

Add this server to your MCP-compatible client using the configuration below.

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

Anki MCP Server — by arielbk tools

  • manage_flashcards — Create, update, delete, search, inspect, and tag Anki flashcards through one high-level note/card workflow. Use this for note lifecycle work and card lookup, not for deck structure, note-type schema changes, or study scheduling. Mutating operations change the local Anki collection immediately; searches are read-only. Choose `operation` first, then provide the operation-specific IDs, query, fields, tags, or pagination inputs described by the schema.
    operation:string*, deckName:string, modelName:string, fields:object, tags:array, notes:array, noteId:number, noteIds:array, query:string, includeDetails:boolean, limit:number, offset:number, …
  • study_session — Find due cards and apply review-state actions such as answering, suspending, unsuspending, resetting, and relearning cards. Use this for scheduling and review flow, not for editing note content or reorganizing decks. Several operations mutate card state in Anki immediately; `find_due` and `check_status` are read-only. Select `operation`, then pass either `query`, `cardIds`, or `answers` as required for that action.
    operation:string*, query:string, cardIds:array, answers:array, days:string
  • manage_decks — Create, delete, list, inspect, move cards between, and configure Anki decks. Use this for deck-level organization, not for editing flashcard fields, note types, or study answers. Create, delete, move, and config operations mutate the collection; list and stats/config reads do not. Set `operation` first and supply the matching deck names, card IDs, target deck, or config ID.
    operation:string*, deckName:string, deckNames:array, deleteCards:boolean, cardIds:array, targetDeck:string, configId:number
  • get_analytics — Read study analytics and review history for decks, the collection, or specific cards. Use this when the agent needs reporting or diagnostics, not when it needs to mutate Anki data. This tool is read-only but some scopes can return large payloads, so prefer the narrowest scope and explicit card IDs or timestamps when available. Choose `scope`, then provide the deck, cards, or review start timestamp required by that scope.
    scope:string*, deckName:string, cardIds:array, startTimestamp:number, wholeCollection:boolean
  • manage_models — List, create, and modify Anki note types, including fields, templates, and CSS styling. Use this for schema/template work, not for individual note content, decks, or review scheduling. All operations except `list` mutate the collection and can affect future rendering or compatibility of notes using that model. Pick `operation` first, then provide the model name plus the exact field, template, CSS, or creation inputs needed.
    operation:string*, modelName:string, fields:array, templates:array, css:string, isCloze:boolean, fieldName:string, newFieldName:string, fieldIndex:number, templateName:string, template:object
  • anki_operations — Run general Anki utility operations: sync, version lookup, package import/export, profile listing, and media storage or retrieval. Use this for cross-cutting maintenance tasks that do not belong to flashcard, deck, model, or study workflows. Import, export, sync, and media writes have external side effects; version and profile reads do not. Select `operation`, then provide the relevant deck name, file path, filename, media payload, URL, or pattern.
    operation:string*, deckName:string, filePath:string, includeSched:boolean, filename:string, mediaData:string, mediaUrl:string, pattern:string
  • get_media_file — Retrieve one named Anki media file as base64 data and, for images, as MCP image content that compatible clients can inspect. Use this when an agent needs the actual contents of a referenced media asset, not when it only needs media names or storage operations; those belong in `anki_operations`. This tool is read-only and rejects path traversal. Pass a simple filename exactly as stored in Anki media.
    filename:string*
  • gui_add_cards
    deckName:string*, modelName:string*, fields:object*, tags:array
  • gui_answer_card
    ease:number*
  • gui_browse
    query:string*, reorderCards:object
  • gui_check_database
    (no parameters)
  • gui_current_card
    (no parameters)
  • gui_deck_browser
    (no parameters)
  • gui_deck_overview
    deckName:string*
  • gui_deck_review
    deckName:string*
  • gui_edit_note
    noteId:number*
  • gui_exit_anki
    (no parameters)
  • gui_import_file
    filePath:string*
  • gui_select_card
    cardId:number*
  • gui_select_note
    noteId:number*
  • gui_selected_notes
    (no parameters)
  • gui_show_answer
    (no parameters)
  • gui_show_question
    (no parameters)
  • gui_start_card_timer
    (no parameters)
  • gui_undo
    (no parameters)

Overview

What is Anki?

Anki MCP is a Model Context Protocol server that connects Anki flashcard collections to AI assistants like Claude, enabling natural language interaction with study materials.

How to use Anki?

Install the package globally with npm install -g @arielbk/anki-mcp, then configure your MCP client (e.g., Claude Desktop) to run the server with the command anki-mcp. Ensure Anki is running with the AnkiConnect plugin installed. Alternatively, clone the repository for a development setup.

Key features of Anki

  • Full Anki integration via all 115 AnkiConnect API methods
  • Conversational interface for natural language commands
  • Bulk operations for managing thousands of cards
  • Real-time study statistics and analytics
  • Media support for images, audio, and more
  • Complex search queries using Anki’s search syntax

Use cases of Anki

  • Interactive quizzing on due or struggling cards
  • Automated flashcard creation from PDFs or notes
  • Analyzing study patterns and retention rates
  • Bulk tagging, moving, and deduplicating cards
  • Organizing decks and managing card metadata

Frequently asked questions

1 What prerequisites are needed?

You need Anki installed, the AnkiConnect plugin (add-on code 2055492159), and Node.js 18+ to run the MCP server.

2 How do I fix “Failed to connect to AnkiConnect”?

Ensure Anki is running and the AnkiConnect plugin is installed and enabled. The server connects to localhost:8765 by default.

3 What AnkiConnect version is required?

AnkiConnect version 25.2.25.0 or newer is recommended for full compatibility; most features work with older versions.

4 Can I use this with other MCP clients?

Yes, Anki MCP works with any MCP-compatible client, such as the MCP Inspector, Cline, or custom clients via stdio transport.

Videos

Tutorials, guides, and showcases related to Anki MCP Server — by arielbk. The player loads when you press play.

Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬