MCP-AnkiConnect
Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
ANKI_HOST | No | The host where AnkiConnect is running | localhost |
ANKI_PORT | No | The port AnkiConnect is using | 8765 |
Schema
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
No prompts |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
No resources |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
num_cards_due_today | Get the number of cards due today with an optional deck filter |
list_decks_and_notes | Get all decks and note types with their fields |
get_examples | Get example notes from Anki to guide your flashcard making. Limit the number of examples returned and provide a sampling technique: Copy |
fetch_due_cards_for_review | Fetch cards that are due for learning and format them for review. Takes optional arguments: - deck: str - Filter by specific deck. - limit: int - Maximum number of cards to fetch (default 5). More than 5 is overwhelming for users. - today_only: bool - If true, only fetch cards due today, else fetch cards up to 5 days ahead. |
submit_reviews | Submit multiple card reviews to Anki. Copy |
add_note | Add a flashcard to Anki. Ensure you have looked at examples before you do this, and that you have got approval from the user to add the flashcard. Args: deckName: str - The name of the deck to add the flashcard to. modelName: str - The name of the note type to use. fields: dict - The fields of the flashcard to add. tags: List[str] - The tags to add to the flashcard. |