Hi, I automate card creation a lot using agents and I used to have a setup where arbitrary LLM using MCP connects to Anki Desktop through AnkiConnect. The issue is that it requires running Anki Desktop which prevents me from connecting anki to my agent working on the server I communicating with over Telegram gateway.
I’ve created a simple tool that covers this, hope it could be helpful for someone else. It isn’t perfect, but it works that matters for me. I’m open for discussions and improvements!
this is exactly what I was looking for! haven’t tested it yet but it looks promising! thanks
let me know if something goes wrong, please. I’ll fix it asap
Hi. flagging what looks like a silent sync failure in anki-connect-server (built from source, latest main, anki 25.09.2).
The sync action returns {“result”: “sync completed: host=23, required=2”, “error”: null} — no error — but data doesn’t actually reach AnkiWeb.
Repro: edited a note on desktop, synced desktop → AnkiWeb (verified on ankiweb.net), closed desktop. On VPS, updated a different note via updateNoteFields, called sync. notesInfo on the VPS confirms the update is there locally. ankiweb.net (refreshed in browser, no desktop) still shows the old content. Restarted the container to clear in-memory state, retried — same result.
Ruled out: locking, schema version (confirmed 18), stale sessions, collection.media.db2, outdated deps. syncMedia works fine standalone.
Separately: full_upload_or_download (full download path, required == 3) crashes with HttpError 400, “missing original size” — but the API response surfaces it as “Anki already open, or media currently syncing”, which is misleading. Worth showing the real exception text.
Happy to share more details if useful. Thanks for the project!
Full container restart didn’t help since the collection stored in the file is persistent. I remember something similar on Anki Desktop when there was some schema inconsistency and you could either rewrite ankiweb by local or local by ankiweb. I did fix to rewrite local file by ankiweb content
Is there way to reproduce it?