Anki MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
Current DeckCurrent Anki deck
Due cardsCards in review and learning waiting to be studied
New cardsAll unseen cards

Tools

Functions exposed to the LLM to take actions

NameDescription
update_cards

After the user answers cards you've quizzed them on, use this tool to mark them answered and update their ease

add_card

Create a new flashcard in Anki for the user. Must use HTML formatting only. IMPORTANT FORMATTING RULES:

  1. Must use HTML tags for ALL formatting - NO markdown
  2. Use <br> for ALL line breaks
  3. For code blocks, use <pre> with inline CSS styling
  4. Example formatting:
    • Line breaks: <br>
    • Code: <pre style="background-color: transparent; padding: 10px; border-radius: 5px;">
    • Lists: <ol> and <li> tags
    • Bold: <strong>
    • Italic: <em>
get_due_cards

Returns a given number (num) of cards due for review.

get_new_cards

Returns a given number (num) of new and unseen cards.