Anki MCP Server

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>

Input Schema

NameRequiredDescriptionDefault
backYesThe back of the card. Must use HTML formatting only.
frontYesThe front of the card. Must use HTML formatting only.

Input Schema (JSON Schema)

{ "properties": { "back": { "description": "The back of the card. Must use HTML formatting only.", "type": "string" }, "front": { "description": "The front of the card. Must use HTML formatting only.", "type": "string" } }, "required": [ "front", "back" ], "type": "object" }