How to Connect Claude to Anki (Web, Desktop & Claude Code)
Connect Anki to Claude in about 5 minutes, so Claude can read your decks and build cards for you. Pick the path that matches where you use Claude: the web, the desktop app, or Claude Code in your terminal.
Set it up once and Claude reaches your Anki on every device. Install the AnkiMCP add-on, turn on its built-in tunnel, and add the tunnel address to claude.ai. After that, Claude can read your decks and build cards from the web, the desktop app, and your phone.
The AnkiMCP add-on runs inside Anki and gives your collection a secure web address. You add that address to claude.ai once. Because the connector is tied to your Claude account, it then works everywhere you sign in to Claude.
What you need
- Anki 25.07 or later, open on your computer. Get it from apps.ankiweb.net.
- The AnkiMCP add-on for Anki, code
124672614. You’ll install it below. - An AnkiMCP account. The tunnel has a free tier and a paid tier. You sign in the first time you connect it.
- A Claude account at claude.ai.
Time: about 5 minutes.
Why claude.ai needs the tunnel
Claude on the web runs in Anthropic’s cloud, not on your computer. It can’t see Anki on your machine on its own. The tunnel gives your local Anki a secure public web address that Claude can reach. Anki stays on your computer; the tunnel only relays messages to it.
Step 1: Install the AnkiMCP add-on
The add-on starts a small server inside Anki. It launches on its own every time you open Anki.
- Open Anki.
- Go to Tools → Add-ons → Get Add-ons…
- Enter this code:
124672614 - Click OK, then restart Anki.

Step 2: Connect the tunnel and sign in
Now turn on the tunnel so your Anki gets a public web address.
- Go to Tools → AnkiMCP Server Settings…
- Click Connect Tunnel.
- A login dialog shows a one-time code. Click Open Browser and enter that code on the page that opens.
- Approve the sign-in. The add-on saves your login, so you won’t repeat this each time.

Step 3: Copy the tunnel URL
The tunnel address is the same for everyone:
https://tunnel.ankimcp.ai/mcpIt’s safe to share, because it only works after you sign in — requests reach your Anki only when the AI app is signed in with your account. Copy that URL. You’ll paste it into claude.ai next.

Step 4: Add the connector in claude.ai
Open claude.ai in your browser and add the tunnel as a custom connector.
- Go to Settings → Connectors.
- Click Add custom connector.
- Paste your tunnel URL, then save.
- Claude asks you to sign in to AnkiMCP — sign in and approve access.
For the exact menu path, see Anthropic’s custom connectors guide.

It works everywhere
You added the connector to your Claude account, not to one app. So it follows you across every place you sign in to Claude:
- Claude on the web at claude.ai.
- The Claude desktop app on Mac and Windows.
- Claude mobile on iOS and Android. Mobile connector support is in beta.
After you sign in on a new device, the connector syncs to it. You don’t repeat the setup.
One rule stays the same everywhere: Anki must stay open on your computer. The tunnel relays to your local Anki. It is not a cloud copy of your cards.
Check it worked
With Anki open on your computer, ask Claude: “List my Anki decks.” If Claude names your real decks, the connector works on every device.
Common questions
Does this work on my phone? Yes, through the Web path. Once the connector is on your Claude account, it appears in the Claude mobile app after you sign in. Mobile connector support is in beta, so some features may not work perfectly yet. The Desktop bundle and Claude Code setups stay on one computer and do not reach your phone.
Which path should I pick? Want Anki in Claude on the web, your phone, and across devices? Use the Claude Web path (the add-on tunnel). Want a free, local-only setup in the Claude Desktop app? Use Claude Desktop. Working in the terminal? Use Claude Code.
Add-on or CLI for Claude Code — which is better? Start with the add-on. It’s one command and needs no Node.js or AnkiConnect, because it talks to Anki directly. Pick the CLI if you’d rather not install an add-on, or you already use AnkiConnect.
Do I need to keep Anki open? Yes, for every path. Claude reaches your cards only while the Anki app is running.
Is it free? The add-on and the Desktop bundle are free. The Web tunnel has a free tier to get started and a paid tier for more, because it gives your Anki a secure web address that claude.ai can reach.
Does my computer have to stay on? Yes. Every path relays to the Anki app on your machine. Keep your computer on and Anki open while you study. If Anki is closed, Claude sees no cards.
Claude can’t reach Anki. What’s wrong?
For the Desktop bundle or the CLI, make sure Anki is open and AnkiConnect is installed. Open http://localhost:8765 in your browser. You should see AnkiConnect. If not, reinstall the AnkiConnect add-on with code 2055492159 and restart Anki. For the add-on, check Tools → AnkiMCP Server Settings… in Anki.
Do I need Node.js? Only for the Claude Code CLI path. The Desktop bundle and the add-on include everything they need.
Next steps
- New to local vs. remote? Read Remote vs local access to understand when you need the tunnel.
- Ready to make cards? Try our Anki AI prompts.
- Use Cursor, Cline, or another tool? See Connect coding tools.
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.
