# AnkiConnect Server

**URL:** <https://forums.ankiweb.net/t/ankiconnect-server/69962>\
**Category:** Add-ons\
**Created:** [June 3, 2026, 9:05am UTC](https://forums.ankiweb.net/t/ankiconnect-server/69962 "2026-06-03T09:05:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![glech](https://avatars.discourse-cdn.com/v4/letter/g/d78d45/32.png) [@glech](https://forums.ankiweb.net/u/glech)\
**Post date:** [June 3, 2026, 9:05am UTC](https://forums.ankiweb.net/t/ankiconnect-server/69962/1 "2026-06-03T09:05:53Z")

</div>

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!

> **[GitHub - glechic/anki-connect-server: Headless AnkiConnect-compatible REST API server...](https://github.com/glechic/anki-connect-server)**
>
> Headless AnkiConnect-compatible REST API server with AnkiWeb sync support and MCP server integration.

---

<div class="post-metadata">

**Author:** ![AnkiJoe](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@AnkiJoe](https://forums.ankiweb.net/u/AnkiJoe)\
**Post date:** [June 15, 2026, 4:02pm UTC](https://forums.ankiweb.net/t/ankiconnect-server/69962/2 "2026-06-15T16:02:13Z")

</div>

this is exactly what I was looking for! haven’t tested it yet but it looks promising! thanks

---

<div class="post-metadata">

**Author:** ![glech](https://avatars.discourse-cdn.com/v4/letter/g/d78d45/32.png) [@glech](https://forums.ankiweb.net/u/glech)\
**Post date:** [June 15, 2026, 8:49pm UTC](https://forums.ankiweb.net/t/ankiconnect-server/69962/3 "2026-06-15T20:49:48Z")

</div>

let me know if something goes wrong, please. I’ll fix it asap

---

<div class="post-metadata">

**Author:** ![AnkiJoe](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@AnkiJoe](https://forums.ankiweb.net/u/AnkiJoe)\
**Post date:** [June 16, 2026, 10:12am UTC](https://forums.ankiweb.net/t/ankiconnect-server/69962/4 "2026-06-16T10:12:35Z")

</div>

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](http://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](http://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!

---

<div class="post-metadata">

**Author:** ![glech](https://avatars.discourse-cdn.com/v4/letter/g/d78d45/32.png) [@glech](https://forums.ankiweb.net/u/glech)\
**Post date:** [June 16, 2026, 4:47pm UTC](https://forums.ankiweb.net/t/ankiconnect-server/69962/5 "2026-06-16T16:47:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![glech](https://avatars.discourse-cdn.com/v4/letter/g/d78d45/32.png) [@glech](https://forums.ankiweb.net/u/glech)\
**Post date:** [June 16, 2026, 4:57pm UTC](https://forums.ankiweb.net/t/ankiconnect-server/69962/6 "2026-06-16T16:57:01Z")

</div>

> [@AnkiJoe](#):
>
> 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.

Is there way to reproduce it?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [July 16, 2026, 4:57pm UTC](https://forums.ankiweb.net/t/ankiconnect-server/69962/7 "2026-07-16T16:57:47Z")

</div>

Closed on July 16, 2026, 4:57pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
