{
 "kind": "mcp",
 "slug": "ai-ankimcp-anki-mcp-server",
 "path": "mcp/servers/ai-ankimcp-anki-mcp-server/",
 "name": "Anki",
 "maker": "ankimcp",
 "density": "full",
 "crumbs": [
  [
   "MCP servers",
   "mcp/"
  ],
  [
   "Productivity and workspace",
   "mcp/productivity/"
  ]
 ],
 "lead": "let your AI assistant make and review flashcards.",
 "chips": [
  {
   "label": "Productivity and workspace",
   "path": "mcp/productivity/"
  },
  {
   "label": "Local"
  }
 ],
 "primary": {
  "label": "Copy connect command",
  "copy": "claude mcp add --transport stdio anki -- npx -y @ankimcp/anki-mcp-server --stdio"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/ankimcp/anki-mcp-server"
  },
  {
   "label": "Website",
   "href": "https://ankimcp.ai"
  }
 ],
 "track": "New versions and outages of the remote endpoint on your dashboard",
 "verdicts": [
  {
   "key": "official",
   "label": "Made by",
   "value": "A third party",
   "status": "info",
   "sub": "Community server",
   "quote": "This is an independent community project not affiliated with Ankitects.",
   "note": "It wraps the Anki app and the AnkiConnect add-on, but it is an independent community project, not made by Ankitects, the company behind Anki. The repository and ankimcp.ai belong to that project.",
   "src": "https://ankimcp.ai/"
  },
  {
   "key": "secrets",
   "label": "Keys",
   "value": "2 secrets needed",
   "status": "info",
   "sub": "ANKI_CONNECT_URL (default http://localhost:8765), ANKI_CONNE",
   "quote": "claude mcp add --transport stdio anki -- npx -y @ankimcp/anki-mcp-server --stdio",
   "note": "Needs the Anki desktop app open with the AnkiConnect add-on (code 2055492159). The makers suggest their AnkiMCP add-on for most setups; this package is for clients that start a local server (stdio) and for the Claude Desktop bundle.",
   "src": "https://ankimcp.ai/docs/how-to/connect-claude/"
  },
  {
   "key": "where",
   "label": "Runs",
   "value": "On your machine",
   "status": "cond",
   "sub": "Runs code locally: npm",
   "note": "Checked: no hosted server (runs on your computer).",
   "src": "https://github.com/ankimcp/anki-mcp-server"
  },
  {
   "key": "license",
   "label": "Commercial use",
   "value": "Allowed",
   "status": "yes",
   "sub": "MIT license",
   "quote": "\"license\":\"MIT\"",
   "note": "The code is MIT; keep the notice when you copy it.",
   "src": "https://registry.npmjs.org/@ankimcp/anki-mcp-server/latest"
  }
 ],
 "vfoot": "Checked against its repository at one commit, on Nov 10, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Anki does",
   "parts": [
    {
     "t": "prose",
     "text": "Anki MCP Server lets an AI assistant work with the Anki flashcard app on your computer. It can make new cards, quiz you on cards that are due and record how well you knew each one, like a private tutor. Your cards stay in your own Anki; the server sends nothing to its makers."
    },
    {
     "t": "h3",
     "text": "What people use it for"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "Study a deck in conversation",
       "text": "Say \"help me review my Spanish deck\". The assistant shows each due card, checks your answer, explains mistakes and records your rating in Anki.",
       "idea": false
      },
      {
       "title": "Make cards from what you read",
       "text": "Paste notes, a lecture summary or a word list and ask for cards. The assistant adds them to the deck you name, up to 100 at a time.",
       "idea": false
      },
      {
       "title": "Language cards with right-to-left text",
       "text": "For Arabic or Hebrew vocabulary, the assistant can create a card style that writes right to left and then fill it with words.",
       "idea": false
      },
      {
       "title": "Add a picture to a card",
       "text": "Point the assistant at an image on your computer or a web address, and it puts the picture on the front of the selected card.",
       "idea": false
      },
      {
       "title": "Let the assistant look but not edit",
       "text": "Start it in read-only mode to browse decks and search notes without risk of the assistant changing or deleting cards.",
       "idea": false
      },
      {
       "title": "A weekly study check-in",
       "text": "Ask once a week how your reviews went, which decks fall behind and how long your study streak is, then plan the next week.",
       "idea": true
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Anki popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "567",
       "l": "GitHub stars, ankimcp/anki-mcp-server"
      },
      {
       "n": "1,179",
       "l": "downloads last week, @ankimcp/anki-mcp-server"
      },
      {
       "n": "0",
       "l": "public agent projects connect it"
      }
     ]
    }
   ]
  },
  {
   "id": "tools",
   "nav": "Tools",
   "h2": "Tools it gives your agent (53)",
   "parts": [
    {
     "t": "tools",
     "items": [
      {
       "name": "sync",
       "text": "Sync with AnkiWeb to pull latest data and push changes. Risk: changes your collection or the Anki window."
      },
      {
       "name": "get_due_cards",
       "text": "Get cards that are due for review, optionally filtered by deck. Risk: read-only."
      },
      {
       "name": "get_cards",
       "text": "Get cards with flexible filtering by state. Risk: read-only."
      },
      {
       "name": "present_card",
       "text": "Show a card for review with its question/front side. Risk: read-only."
      },
      {
       "name": "rate_card",
       "text": "Rate card performance. Risk: changes your collection or the Anki window."
      },
      {
       "name": "forgetCards",
       "text": "Reset cards to new, discarding their scheduling without recording a review. Risk: deletes or overwrites data (destructive hint in the code)."
      },
      {
       "name": "setDueDate",
       "text": "Reschedule cards to become due in N days. Risk: deletes or overwrites data (destructive hint in the code)."
      },
      {
       "name": "areSuspended",
       "text": "Check suspension state for one or more cards without changing anything. Risk: read-only."
      },
      {
       "name": "suspend",
       "text": "Suspend cards so they are skipped during review until unsuspended. Risk: changes your collection or the Anki window."
      },
      {
       "name": "unsuspend",
       "text": "Unsuspend cards so they return to normal review. Risk: changes your collection or the Anki window."
      },
      {
       "name": "listDecks",
       "text": "List all decks, optionally with per-deck study-queue statistics. Risk: read-only."
      },
      {
       "name": "deckStats",
       "text": "Get comprehensive statistics for a single deck. Risk: read-only."
      },
      {
       "name": "createDeck",
       "text": "Create a new empty deck. Risk: changes your collection or the Anki window."
      },
      {
       "name": "changeDeck",
       "text": "Move cards to a different deck. Risk: changes your collection or the Anki window."
      },
      {
       "name": "addNote",
       "text": "Create a single note with specified fields and tags. Risk: changes your collection or the Anki window."
      },
      {
       "name": "addNotes",
       "text": "Batch-create up to 100 notes sharing a deck and model. Risk: changes your collection or the Anki window."
      },
      {
       "name": "findNotes",
       "text": "Search for notes using Anki query syntax. Risk: read-only."
      },
      {
       "name": "notesInfo",
       "text": "Get detailed information about notes. Risk: read-only."
      },
      {
       "name": "updateNoteFields",
       "text": "Update existing note fields. Risk: deletes or overwrites data (destructive hint in the code)."
      },
      {
       "name": "deleteNotes",
       "text": "Delete notes and all associated cards. Risk: deletes or overwrites data (destructive hint in the code)."
      },
      {
       "name": "getTags",
       "text": "Get all tags in the collection. Risk: read-only."
      },
      {
       "name": "addTags",
       "text": "Add space-separated tags to specified notes. Risk: changes your collection or the Anki window."
      },
      {
       "name": "removeTags",
       "text": "Remove space-separated tags from specified notes. Risk: changes your collection or the Anki window."
      },
      {
       "name": "replaceTags",
       "text": "Rename a tag across specified notes. Risk: changes your collection or the Anki window."
      },
      {
       "name": "clearUnusedTags",
       "text": "Remove orphaned tags not used by any notes. Risk: deletes or overwrites data (destructive hint in the code)."
      },
      {
       "name": "getMediaFilesNames",
       "text": "List media files in `collection.media`, optionally filtered by pattern. Risk: read-only."
      },
      {
       "name": "retrieveMediaFile",
       "text": "Download a media file as base64 content. Risk: read-only."
      },
      {
       "name": "storeMediaFile",
       "text": "Upload media from base64 data, an absolute file path, or a URL. Risk: deletes or overwrites data (destructive hint in the code)."
      },
      {
       "name": "deleteMediaFile",
       "text": "Remove a media file from `collection.media`. Risk: deletes or overwrites data (destructive hint in the code)."
      },
      {
       "name": "modelNames",
       "text": "List all available note types/models. Risk: read-only."
      },
      {
       "name": "modelFieldNames",
       "text": "Get field names for a specific note type. Risk: read-only."
      },
      {
       "name": "modelStyling",
       "text": "Get CSS styling information for a note type. Risk: read-only."
      },
      {
       "name": "modelTemplates",
       "text": "Get the card templates. Risk: read-only."
      },
      {
       "name": "createModel",
       "text": "Create a new note type with custom fields, card templates, and CSS. Risk: changes your collection or the Anki window."
      },
      {
       "name": "updateModelStyling",
       "text": "Update the CSS styling for an existing note type. Risk: deletes or overwrites data (destructive hint in the code)."
      },
      {
       "name": "updateModelTemplates",
       "text": "Update the card templates. Risk: deletes or overwrites data (destructive hint in the code)."
      },
      {
       "name": "addModelField",
       "text": "Add a new field to an existing note type. Risk: changes your collection or the Anki window."
      },
      {
       "name": "removeModelField",
       "text": "Remove a field from an existing note type. Risk: deletes or overwrites data (destructive hint in the code)."
      },
      {
       "name": "renameModelField",
       "text": "Rename a field in an existing note type. Risk: changes your collection or the Anki window."
      },
      {
       "name": "repositionModelField",
       "text": "Change the position of a field within an existing note type. Risk: changes your collection or the Anki window."
      },
      {
       "name": "collection_stats",
       "text": "Aggregated statistics across all decks with per-deck breakdown and collection-wide card-state counts. Risk: read-only."
      },
      {
       "name": "review_stats",
       "text": "Review history analysis. Risk: read-only."
      },
      {
       "name": "guiBrowse",
       "text": "Open the Card Browser and search for cards. Risk: changes your collection or the Anki window."
      },
      {
       "name": "guiSelectCard",
       "text": "Select a specific card in the Card Browser. Risk: changes your collection or the Anki window."
      },
      {
       "name": "guiSelectedNotes",
       "text": "Get IDs of notes currently selected in the Card Browser. Risk: read-only."
      },
      {
       "name": "guiAddCards",
       "text": "Open the Add Cards dialog with preset note details. Risk: changes your collection or the Anki window."
      },
      {
       "name": "guiEditNote",
       "text": "Open the note editor for a specific note. Risk: changes your collection or the Anki window."
      },
      {
       "name": "guiDeckOverview",
       "text": "Open the Deck Overview dialog for a specific deck. Risk: changes your collection or the Anki window."
      },
      {
       "name": "guiDeckBrowser",
       "text": "Open the Deck Browser dialog. Risk: changes your collection or the Anki window."
      },
      {
       "name": "guiCurrentCard",
       "text": "Get info about the current card in review mode. Risk: read-only."
      },
      {
       "name": "guiShowQuestion",
       "text": "Show the question side of the current card. Risk: changes your collection or the Anki window."
      },
      {
       "name": "guiShowAnswer",
       "text": "Show the answer side of the current card. Risk: changes your collection or the Anki window."
      },
      {
       "name": "guiUndo",
       "text": "Undo the last action in Anki. Risk: deletes or overwrites data (destructive hint in the code)."
      }
     ]
    }
   ]
  },
  {
   "id": "data",
   "nav": "Data and license",
   "h2": "What it sends and its license",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Sends",
       "v": "nothing in local mode; requests go only to AnkiConnect on your computer",
       "sub": "To AnkiConnect (default http://localhost:8765); on each tool call. Opt out: not needed."
      },
      {
       "l": "Sends",
       "v": "your cards and the assistant's requests, passing through",
       "sub": "To the AnkiMCP tunnel servers (wss://tunnel.ankimcp.ai); only in tunnel mode (--tunnel). Opt out: use the local stdio or HTTP mode."
      },
      {
       "l": "Sends",
       "v": "a download request for the image or audio address you give",
       "sub": "To the web address passed to storeMediaFile; only when a media file is added from a web address. Opt out: pass a local file path instead."
      },
      {
       "l": "Sends",
       "v": "your collection, through Anki's own sync",
       "sub": "To AnkiWeb; when the assistant calls the sync tool. Opt out: do not call sync."
      }
     ]
    },
    {
     "t": "prose",
     "text": "The server's code is free under the MIT license, also for paid work. Running it on your own computer costs nothing; only the optional remote tunnel has paid plans."
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In a paid app",
       "v": "Yes",
       "status": "yes",
       "sub": "The code is MIT; keep the notice when you copy it.",
       "quote": "\"license\":\"MIT\"",
       "src": "https://registry.npmjs.org/@ankimcp/anki-mcp-server/latest"
      },
      {
       "l": "Pass on its files",
       "v": "With conditions",
       "status": "cond",
       "sub": "Copies of the code must keep the MIT copyright and permission notice.",
       "quote": "The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.",
       "src": "https://github.com/ankimcp/anki-mcp-server/blob/d7d65125e8469c63d84b7670ad645f997825ff3f/LICENSE"
      },
      {
       "l": "client-work",
       "v": "Yes",
       "status": "yes",
       "sub": "MIT allows any use, paid or not.",
       "quote": "Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction",
       "src": "https://github.com/ankimcp/anki-mcp-server/blob/d7d65125e8469c63d84b7670ad645f997825ff3f/LICENSE"
      }
     ]
    }
   ]
  },
  {
   "id": "alive",
   "nav": null,
   "spy_as": "data",
   "h2": "Is it alive",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Latest version",
       "v": "0.27.0 in the registry, updated Oct 4, 2026"
      },
      {
       "l": "Last release",
       "v": "0.27.0 on npm (2026-10-04); main is at 0.27.1, not yet released, at the pinned commit"
      },
      {
       "l": "Remote endpoint",
       "v": "no hosted server (runs on your computer)",
       "status": "cond"
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Anki",
       "me": true,
       "facts": [
        "567 stars",
        "Local"
       ]
      },
      {
       "name": "ts-fsrs",
       "why": "Pick it if you are building your own flashcard app and need a review scheduler in code",
       "path": null,
       "facts": [
        "Local"
       ]
      }
     ],
     "more": "All productivity and workspace servers",
     "more_path": "mcp/productivity/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "Connect the Anki MCP server (npx -y @ankimcp/anki-mcp-server@0.27.0 --stdio) with Anki open, list my decks, then create 10 cards in the deck I name from this text and ask me before deleting anything."
    },
    {
     "t": "h3",
     "text": "Connect it"
    },
    {
     "t": "tabs",
     "label": "Connect by client",
     "items": [
      {
       "tab": "Claude Code",
       "code": "claude mcp add --transport stdio anki -- npx -y @ankimcp/anki-mcp-server --stdio"
      },
      {
       "tab": "npm (stdio)",
       "code": "npx -y @ankimcp/anki-mcp-server"
      },
      {
       "tab": "Cursor",
       "code": "{\n  \"mcpServers\": {\n    \"anki-mcp\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@ankimcp/anki-mcp-server\", \"--stdio\"],\n      \"env\": {\n        \"ANKI_CONNECT_URL\": \"http://localhost:8765\"\n      }\n    }\n  }\n}\n"
      }
     ]
    },
    {
     "t": "small",
     "text": "Needs the Anki desktop app open with the AnkiConnect add-on (code 2055492159). The makers suggest their AnkiMCP add-on for most setups; this package is for clients that start a local server (stdio) and for the Claude Desktop bundle."
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "Rating a card Again to push it back in the schedule",
       "fix": "Use setDueDate to move the next review, or forgetCards to start the card over",
       "why": "Rating Again records a real lapse and permanently skews scheduling and statistics."
      },
      {
       "dont": "Uploading an image to storeMediaFile as base64 text",
       "fix": "Pass the file path (/Users/you/image.png) or the image's web address",
       "why": "Base64 is very slow and uses many tokens."
      },
      {
       "dont": "deleteNotes(notes=[...]) without confirmDeletion",
       "fix": "Show the person the notes first, then call deleteNotes with confirmDeletion true",
       "why": "The call is rejected unless confirmDeletion is true, and deletion removes all cards of the note."
      },
      {
       "dont": "Running the server on Node.js 18 or 20 (ERR_REQUIRE_ESM)",
       "fix": "Install Node.js 22.12.0 or newer",
       "why": "The server needs Node.js 22.12.0 or newer."
      },
      {
       "dont": "Tags or decks named freely without checking what exists",
       "fix": "Call getTags and listDecks first",
       "why": "The README says to list tags first to avoid duplicates."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Does it work without Anki open?",
       "a": "No. The Anki desktop app has to be open, because the server works on your real collection.",
       "evidence": {
        "url": "https://ankimcp.ai/docs/how-to/connect-mcp-clients/",
        "quote": "Both need the Anki desktop app open and running."
       }
      },
      {
       "q": "Does it cost money?",
       "a": "Not on your own computer. Only the optional tunnel for web or phone assistants has a free tier and paid plans.",
       "evidence": {
        "url": "https://ankimcp.ai/pricing/",
        "quote": "You only pay when you want"
       }
      },
      {
       "q": "Should I use this package or the AnkiMCP add-on?",
       "a": "The makers suggest the add-on for most setups; use this package when your client starts a local server over stdio or for the Claude Desktop bundle.",
       "evidence": {
        "url": "https://ankimcp.ai/docs/how-to/connect-mcp-clients/",
        "quote": "Choose the CLI (STDIO) only if your client needs STDIO."
       }
      },
      {
       "q": "Does the server collect my data?",
       "a": "No. It runs on your computer, collects no usage data and only talks to the AnkiConnect address you set.",
       "evidence": {
        "url": "https://github.com/ankimcp/anki-mcp-server/blob/d7d65125e8469c63d84b7670ad645f997825ff3f/README.md",
        "quote": "The server only talks to the AnkiConnect URL you configure (default: localhost)."
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Registry name",
   "ai.ankimcp/anki-mcp-server"
  ],
  [
   "Category",
   "Productivity and workspace"
  ],
  [
   "Version",
   "0.27.0"
  ],
  [
   "Package",
   "npm @ankimcp/anki-mcp-server"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "GitHub",
   "ankimcp/anki-mcp-server"
  ],
  [
   "In the registry since",
   "Oct 4, 2026"
  ],
  [
   "Works with",
   "Claude Code, OpenAI Codex, OpenCode, LangChain, n8n, LangGraph"
  ]
 ],
 "good": [
  "The Anki desktop app must be open on the same computer, with the AnkiConnect add-on installed.",
  "The assistant can delete notes and all their cards, but only when the call confirms the deletion on purpose.",
  "Edits fail without a warning if the same note is open in Anki's card browser. Close the browser window first."
 ],
 "checked_line": "Read by AgentGid from 13 pages and files at one commit, checked Nov 10, 2026; stars update daily.",
 "logo": "https://agentgid.com/media/avatars/ankimcp.png"
}