AnkiMCP Troubleshooting: Fix Common Problems
Most AnkiMCP problems have one of three causes: Anki is closed, the connection or add-on isn’t running, or your AI client needs a restart.
Find your symptom below, apply the fix, then try your AI assistant again. Most fixes take a minute or two. Some steps differ by how you connect, so each section tells you which path it applies to.
Start with these quick checks
These two checks fix most problems, no matter how you connect.
- Make sure Anki is open. AnkiMCP only reaches your cards while the Anki app is running. Open Anki, then ask your AI again.
- Restart your AI client. Close and reopen it so it reconnects to AnkiMCP. Clients connect to AnkiMCP only when they start.
If your AI still can’t reach your cards, keep reading.
Your AI can’t see your decks or won’t connect
Symptom: You ask your AI to list your decks and it finds nothing, or it can’t connect at all.
The fix depends on how you connect. Not sure which path you use? See Add-on vs CLI.
If you use the AnkiMCP add-on
The add-on runs a server inside Anki. No AnkiConnect is involved on this path.
- In Anki, open Tools → AnkiMCP Server Settings…
- Confirm the server shows as running. It starts automatically when Anki opens.
- If you don’t see it, restart Anki, then check again.
If you use the CLI or the Claude Desktop bundle
These paths reach Anki through the AnkiConnect add-on.
- Open http://localhost:8765 in your browser. You should see the plain text
AnkiConnect. - If you don’t, install or reinstall AnkiConnect. In Anki, go to Tools → Add-ons → Get Add-ons…, enter the code
2055492159, click OK, then restart Anki. - For the CLI, also confirm Node.js 22.12.0 or newer is installed.
- For the CLI, check your config JSON for typos: no trailing commas, no mismatched braces.
- Restart your AI client so it reconnects.
For setup help, see Connect Claude or Connect other MCP clients.
Using Claude on the web, ChatGPT, or another remote AI (tunnel)
Symptom: A remote AI like ChatGPT can’t reach your cards, or the connection drops.
A remote AI reaches your computer through a tunnel. The tunnel only relays requests to Anki on your own machine, so a few things must stay true.
- Check the tunnel is connected. Add-on: open Tools → AnkiMCP Server Settings… and confirm the tunnel shows connected. CLI: make sure the
--tunnelterminal is still running (see the CLI tunnel docs). - Keep your computer awake and Anki open. If your computer sleeps or Anki closes, the tunnel has nothing to relay.
- Sign in again if the session expired. Reconnect the tunnel to refresh it.
For full setup, see Connect ChatGPT to Anki.
Advanced: If you see 421 Invalid Host header after setting a custom hostname for the add-on’s HTTP server, see Remote Access Security to allow that name.
Note edits succeed but the note doesn’t change
Symptom: You ask your AI to edit a note. It reports “done,” but the note doesn’t change. No error appears.
This happens when the note is open in Anki’s Browse window. You can’t update a note while you’re viewing or selecting it there. This is an Anki Browse-window limitation, not an AnkiMCP bug, and it affects both the add-on and AnkiConnect.
Fix: Before you ask your AI to edit a note, deselect or close it in Anki:
- Close Anki’s Browse window, or press Escape to deselect the note, or click a different note.
- Ask your AI to make the update.
- Open Browse again to confirm the change saved.
The AnkiConnect documentation records the same rule: “You must not be viewing the note that you are updating on your Anki browser, otherwise the fields will not update.” See AnkiConnect issue #82 for the original report. It applies to the add-on too, because the limit comes from Anki itself.
We can’t auto-fix this. There’s no reliable way to detect a viewed note, deselect it for you, or return an error when the update is blocked. For now, deselecting the note yourself is the dependable solution.
Still stuck?
If none of these fixes work, you have a few options:
- Read the Getting Help guide for more support.
- Ask in the community forum.
- Report it on GitHub issues.
Disclaimer: “Anki” is a registered trademark of Ankitects Pty Ltd. AnkiMCP is an independent, community-built project and is not affiliated with, endorsed by, or sponsored by Ankitects. MCP is an open standard originated by Anthropic; AnkiMCP is likewise not affiliated with or endorsed by Anthropic.