Skip to main content
MCP server CX Codex

anki-mcp — Claude Code MCP server: Anki cards in chat

Connects an Anki collection to an AI assistant: quiz sessions, study analytics, bulk tag and deck edits.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add anki-mcp -- npx -y @arielbk/anki-mcp
Open on GitHub

What anki-mcp does

The server sits between Anki and any MCP client, talking to the app through AnkiConnect. Your assistant can read decks, cards and review history, so questions like which topics keep slipping get answered from your own data. Seven tools cover card management, quiz sessions, analytics, search and bulk operations.

Two things have to be in place first: Anki itself, and the AnkiConnect add-on added with code 2055492159. Anki has to stay open while the server runs, otherwise calls to it fail. AnkiConnect 25.2.25.0 or newer is needed for full compatibility; older builds handle most features.

The package @arielbk/anki-mcp runs through npx, so there is nothing to build. stdio is the default transport, and a local HTTP mode is available too: node dist/index.js --http --host=127.0.0.1 --port=3000, with the endpoint at http://127.0.0.1:3000/mcp. Working on the code means cloning the repo, then pnpm install and pnpm build.

What it helps with

  • quiz yourself on cards you have not reviewed in days
  • tag hundreds of cards in one pass
  • hunt down duplicate cards across decks
  • see which topics have weak retention
  • turn lecture notes into flashcards

Example prompts for the agent

  • Show me my Anki decks and the card count in the biggest one
  • Tag every cardiovascular card with cardiology and move them to my MCAT deck

How to install anki-mcp

Platform CLI

claude mcp add anki-mcp -- npx -y @arielbk/anki-mcp

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about anki-mcp

How do I install anki-mcp in Claude Code?

Run claude mcp add anki-mcp -- npx -y @arielbk/anki-mcp.

What does anki-mcp do?

It gives an assistant access to your Anki collection through AnkiConnect: searching and editing cards, running quizzes, analytics, and bulk tag or deck changes.

What do I need before running anki-mcp?

Anki installed with the AnkiConnect add-on (code 2055492159), and the app running. AnkiConnect 25.2.25.0 or newer covers every feature.

Similar MCP servers

All MCP servers for Agent setup: memory, context, orchestration →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor