Labsco
spacholski1225 logo

AnkiConnect

โ˜… 23

from spacholski1225

AnkiConnect MCP server for interacting with Anki via AnkiConnect.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

Anki Connect MCP Server

A Model Context Protocol (MCP) server that provides seamless integration with Anki through the AnkiConnect add-on. This server enables AI assistants and other MCP clients to interact with your Anki flashcard collection programmatically.

Project

What is Anki Connect?

AnkiConnect is a powerful Anki add-on that exposes Anki's functionality through a REST API. It allows external applications to:

  • Create, modify, and delete flashcards
  • Manage decks and their configurations
  • Control Anki's GUI programmatically
  • Search and retrieve card information
  • Manage tags and note types
  • Perform bulk operations on cards and notes

What is MCP (Model Context Protocol)?

The Model Context Protocol is a standardized way for AI assistants to connect to external data sources and tools. This MCP server acts as a bridge between MCP clients (like Claude Desktop) and AnkiConnect, allowing AI assistants to help you manage your Anki flashcards naturally through conversation.

Features

This MCP server provides comprehensive access to AnkiConnect functionality through the following tools:

Flashcard Management

  • create_flashcard() - Create new flashcards with front and back content
  • add_note() - Add notes with custom fields and tags
  • add_notes() - Bulk add multiple notes
  • update_note_fields() - Update existing note fields
  • find_notes() - Search for notes using Anki's query syntax

Deck Management

  • deck_names() - Get all deck names
  • deck_names_and_ids() - Get deck names with their IDs
  • change_deck() - Move cards between decks
  • delete_decks() - Delete decks and optionally their cards
  • get_deck_config() - Retrieve deck configuration settings

Card Operations

  • find_cards() - Search for cards
  • cards_info() - Get detailed card information
  • suspend() / unsuspend() - Suspend/unsuspend cards
  • are_suspended() / are_due() - Check card status

GUI Control

  • gui_deck_browser() - Open deck browser
  • gui_deck_review() - Start deck review
  • gui_browse() - Open card browser with search
  • gui_add_cards() - Open add cards dialog

Utility Tools

  • version() - Get AnkiConnect version
  • get_tags() - Retrieve all tags
  • multi() - Execute multiple AnkiConnect requests in batch

References