Language learning in the age of AI: Connecting Anki to Claude for ultra-personalized learning

AI-disclaimer: this post is written without any use of AI; the tools developed here are entirely vibe-coded.

Whenever I mention to people that I am learning a new language, their first response is always: “Oh, do you use Duolingo?”

Well, I do, but only because I like seeing numbers go up and one lesson fits exactly in a toothbrushing session. With their native ads making it past my pi-hole and their dopamine-overdosing loot boxes taking up as much time as the actual lesson, I’ve never made it to a 2nd lesson.

In 2026, however, there are incredible tools available that are not only a thousand times more effective at helping you learn a language than Duolingo, but they can do so without psychological manipulation and commercial influences. They can be set up to fully serve you, with all your weird preferences, existing habits and knowledge. For me, that all starts with Anki.

Memorizing anything with Anki

I am an Anki-evangelist. This free and open-source app promises to put stuff into your long-term memory, and it fulfills its promise incredibly well.

It does this via a combination of spaced repetition and active recall testing. Instead of passively reading information and hoping it sticks, you’re quizzed with flash cards from the beginning. At first, you will probably have no clue and press “Again”. It registers that you don’t know this card and schedules it for a later moment, e.g., a minute later. If you get it right, it will ask you again tomorrow. Then, if you get it right again, it asks a few days later, then weeks, et cetera.

These cards can contain anything. I now mostly use it to learn vocabulary (text), but over the span of 10 years I’ve also used it to learn dog breeds (from pictures), bird sounds (from audio), morse code, and geography. You can either create these cards yourself or browse through the enormous library of user-created decks.

Left: the initial screen you see when you open a deck, showing a card. You think about the answer and press the screen, bringing you to the screen on the right. Here, you decide which button to press based on how easy it was to answer. Pressing anywhere on right half of the screen also means “Good”, the left half also means “Again”. The buttons display the time it takes for the card to show up next.

There is a huge catch, though, and it is the (very valid) reason why Anki is less popular than Duolingo: it takes a lot of commitment. You need to review your scheduled cards every day, on top of any new cards that you are learning. Not because you need to keep some artificial streak number alive, but because the whole method comes crashing down on you if you don’t.

Many of the examples I mentioned above are actually not in my long-term memory now. That is not Anki’s fault but my own: I was overly ambitious from the start, learning sometimes 20 new cards per day. This was fine at the beginning, but over time grew to 200 cards being scheduled per day. By then, it’s too late: even if you set the number of new cards per day to zero, you have to review the previously scheduled cards today, or you’ll have double the work load tomorrow. Any missed day would could it snowball. It often did, and I forgot the stuff that did not come up naturally in daily life (luckily, dog breeds came up aplenty).

I’ve since learned it’s best to be very conservative in the amount of new cards you learn per day. For me, this comes to about 6 new cards each day. The total daily review load has long stabilized around 90-110 cards per day, which takes 20-40 minutes with the difficulty of my decks. I haven’t missed a day in about two years, but even if I would, I feel like I could come back from it by doing twice this load the next day.

Whatever the work load, it’s a daily commitment, and that alone is enough to scare a lot of people away. I completely understand. But if you are willing to put in the effort, the additional tools I describe in this post will make it 200% worth your while.

The problem with learning a language through flashcards

In the past two years, I have learned 2166 words in Russian. That is 3 per day from English to Russian and back. On average, there’s a 89% that I can correctly translate any of these words.

…on paper. In Anki. Sure, when someone speaks clearly, I’ll understand some words. But I learn words in the infinitive form, which is not how they’re used in a sentence 80% of time. Across gender-dependent forms, different tenses, 6 cases (singular and plural)… that’s a big gap to bridge.

I often hear people claiming the only way to really learn a language is to live in the country, completely submerge yourself and speak it exclusively. But what about those of us who live somewhere else?

To get some real-life practice, I joined a local evening course. It helps. Actually using the vocabulary you’re learning to form sentences and make conversation, having some external motivation to sit and do grammar homework exercises, it’s a good addition. I got some children’s books as well for reading practice, and while the vocabulary in there is much harder than I’d expect, the extra practice can be nice.

Here’s the problem, though. I invest a lot of time learning through a method (Anki) that works well for me, and only a tiny fraction of this pre-existing knowledge is activated in a 2-hour bi-weekly session that is based on a general coursebook. I don’t expect a general course to cater to this personal context, so I look further for tools to help me learn more effectively. With no budget for a personal tutor, I turn to Claude.

A tutor that sees inside your brain

Over the past two years, Anki generated a ton of data about my learning process. For each word that I’ve been learning, it tracks exactly how often I forgot it or successfully remembered it.

To me, that sounds like invaluable context for a personal LLM tutor.

Good human tutors probably display good patience and zero judgment. Those basic requirements are easy enough for an AI tutor.

But great personal tutors, I imagine, distinguish themselves by knowing their pupil very well. Ideally, if they’ve been someone’s exclusive tutor all their life, they would know exactly what pre-existing knowledge to invoke to teach a new concept, with minimal inferential distance.

Don’t get me wrong, I would much prefer to learn from such a human tutor. It sounds much more enjoyable, and the tools I’m doing to describe are by no means better. It’s just that I have no budget for daily 1-on-1 human tutoring sessions, but I do have a monthly Claude subscription.

With full Anki context, an AI tutor knows what new words I learned this morning, what words are deeply engraved in my brain, what words keep coming back every month because they just don’t stick. There’s a ton of possibilities that we can exploit, but first, we need a good foundation.

Starting out: customizing Anki decks with AI

The main deck I use to learn vocabulary claims to contain the 5000 most-used words, frequency-sorted. I appreciate them putting in the effort to share this huge deck of cards and share it for free, but the frequency sorting is… flawed. Maybe something went wrong during my initial import, but however it happened: I learned “anthill” and “to bribe” before “to choose” and “best”. I refused to accept the strange and stereotype-confirming implications of this order, and decided to modify the deck.

Anki is built for nerds. There’s a ton of customizability, and it was very easy to make a full export, point Claude Code to it with a list of requests (improve the order, clarify near-duplicates, include perfective forms, and some more), and load an improved version that maintained all my progress and scheduling information. I recommend doing this for any Anki deck you’re seriously using.

Connecting Claude to Anki: setting it up

The whole point of this post is personalized learning and that includes the set-up itself. Below are some details of my setup and how your AI can set up something similar. Since building this costs much fewer tokens than a default session limit, and you’ll likely want to customize it anyway, I will share a generated handover prompt rather than a Github repo. This should be enough to get it to work.

Moreover, I put very little technical effort into this whole set-up myself; I just wanted the job done and get to learning. So take this specific setup with a big grain of salt, there might be much better options out there. I think we’re past the point where, for non-critical stuff like this where the outcome is easily verified, we humans need to worry too much about the details if we don’t feel like it.

When I casually mentioned to Claude Opus 5.5 that I wanted to have an MCP for Anki, it asked for details, got to work and got back to me a while later with a setup it built from scratch. It apparently did check existing solutions (Mousetail and anki-connect-server) but made the executive decision to make a custom solution that would definitely respect my many custom additional requests. When asked about the differences, it gives the following comparison, though I haven’t verified it:

Click the “+” below for a prompt to achieve a setup similar to mine, and let’s proceed to the cool part: what can we actually do now?

Build a self-hosted remote MCP server that lets Claude (claude.ai, mobile and voice mode) work with the user’s Anki collection without Anki desktop running. Use Python with the official anki package (Anki’s own engine) and the official mcp SDK, served over streamable HTTP. The server keeps its own local copy of the collection and acts as one more Anki device: col.sync_login once (store only the returned sync key, never the password), then col.sync_collection for incremental two-way syncs. It must never sync on a schedule: only when the sync_anki tool is called, plus exactly one automatic sync a few minutes after the last review answer (a debounced timer), so reviews aren’t stranded when a voice session just stops. Tools: sync_anki; voice review via next_card(deck) (returns question and answer as plain speakable text, from the rendered card with HTML stripped), answer_card(card_id, rating, deck) (again/hard/good/easy through the v3 scheduler, returns the next card) and undo_last_answer; stats (list_decks, deck_stats, study_overview, search_cards, hardest_cards); and known_vocabulary(deck), which lists learned words grouped solid/known/shaky/recent for conversation practice. Put voice-session rules in the server instructions: read only the question, wait for the attempt, take the user’s spoken rating, sync at the start and end. Optionally write one skill for review sessions and one for conversation practice in the user’s target language.

Protecting the user’s review history is the top priority. Never do a full upload: if AnkiWeb asks for one, refuse. On a sync conflict that would discard unsynced local reviews, stop and require an explicit flag before going further. Before and after each sync, compare counts of notes, cards, new cards and review-log entries, and alert on any drop in review history, mass deletions or mass resets. Export a full .colpkg backup after every sync and before any sync that pushes reviews (note that export_collection_package closes the collection, so reopen it), with rotation, and offer a --verify-backup command that restores one into a temp collection. Keep alerts in a state file until the user acknowledges them, show them in sync results and a safety_report tool, and push them to an optional generic webhook (Home Assistant, ntfy, whatever the user has). Also add a daily answer cap, a read-only switch and an append-only audit log. Hosting: claude.ai calls connectors from Anthropic’s cloud, so the server must be publicly reachable over HTTPS, but no ports should be opened at home. Use an outbound tunnel such as Tailscale Funnel (free, TLS ends on the user’s server), Cloudflare Tunnel (needs a domain, allows IP allowlisting of Anthropic’s ranges), or a small VPS. Secure it with a long random secret in the URL path plus the SDK’s Host-header check. Run it in hardened Docker (non-root, read-only filesystem, all capabilities dropped, its own bridge network), with firewall rules that block that network from the LAN and the host. Before writing code, check whether an existing project (e.g. the ankimcp add-on with its tunnel) already meets the user’s needs, and let them choose. Test end to end against a local python -m anki.syncserver before touching the real collection, and have the user make a backup in Anki desktop before the first sync.

Practicing language with Claude and Anki

Below are some of the applications I’m most exciting about. See them as a starting point, it just goes to show how the number of possibilities such a setup can give you when learning.

Reviewing Anki cards in voice mode

My main motivation for this project was that I wanted to be able to review my Anki cards while on the go, fully hands-free. If I know I’m going to be on the road anyway, I’d much rather spend that time going over my reviews than free time at home. It works fantastically:

Not only does it correctly pull the appropriate cards from Anki, it also comments on my grammar. If I have questions, I can ask them on the spot. Opus 5.5 also seamlessly switches to English when I ask it to.

Finding news stories and summarizing them using only the vocabulary that I know

This one was fun:

Practicing new forms of verbs for which I only learned the infinitive form

I asked it to go over some of my most well-mastered verbs and practice different forms (he, you, etc.):

Giving context to the words I learnt this morning by combining them all in a one-paragraph story

This is my favorite. You know how things tend to stick better if you have some context for them? I learned 7 (completely unrelated) words in Anki this morning, and it being an LLM, it does a great job at stitching them into a coherent little story:

Having it generate random English sentences for me to translate, from only known vocabulary

This was possibly the most effective use-case when it comes to practicing speaking. With every sentence it found a few mistakes that taught me more about the use of vocabulary I already learned.

Final thoughts

Yes, AI is wreaking havoc on education in every layer. Primary school children work on Chromebooks on which Google refuses to selectively disable AI functions, leading to classes of kids giving each other presentations that are fully AI-generated. University professors are longer able to reliably use reports as a form of grading while workload might already be too high for thorough individual oral exams. Students face uncertainty about their future job opportunities in a rapidly changing field. It can be quite depressing.

Today, though, for a change, I felt a lot of excitement about the application of AI to education. There are hundreds of ways in which AI can (and does) hurt education and I truly hope this debate will grow louder, but I like to keep an eye out for these positive opportunities as well. While it’s a low bar to beat Duolingo in effectiveness, an ultra-personalized AI tutor with full context of my vocabulary is about as good as I could hope for.

If you’ve enjoyed reading this, please consider signing up for the mailing list in the side-bar, you’ll be notified only when there’s a new post.