Anki logo

Anki

Connects AI clients to Anki through AnkiConnect for studying, card editing, scheduling, analytics, audio, and synchronization.

Install Anki

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "anki": {
      "command": "npx",
      "args": [
        "-y",
        "github:nietus/anki-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 35 tools correctly ().

Overview

Anki MCP server connects an MCP client to an active Anki installation through the AnkiConnect add-on. It exposes tools for study sessions, due-card and retention analysis, card and note editing, deck and note-type administration, tagging, media, audio generation, and AnkiWeb sync. Use it when an agent needs to inspect or modify an Anki collection, with previews and confirmation steps available for bulk or destructive operations. Azure Speech configuration is required for the audio tools, while Anki and AnkiConnect are required for the core features.

Use cases

  • Run conversational study sessions from due cards
  • Review retention and identify frequently missed cards
  • Create and update flashcards in bulk
  • Suspend tagged cards and restore them by label
  • Generate audio and synchronize an Anki collection

Key features

  • Study overview and due-card retrieval
  • Review history, leech detection, and retention statistics
  • Bulk note creation, editing, tagging, and search
  • Card suspension, rescheduling, moving, and deletion
  • Deck and note-type administration
  • Azure Text-to-Speech audio generation

Tools35

What Anki lets your agent do. Expand a tool for its parameters.

Verified live~4.4k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/12 checks healthy over the last 46d

What it can do

From the 35 tools this server returned when we ran it; 35 declare their own safety hints.

Can delete or modify data · 6Handles credentials · 1Makes network requests · 5Read-only tools · 29
Network at startup4 connections
Files written at startupNone

Observed 2026-10-25 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · github:nietus/anki-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars44Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed35Callable tools this server registers over MCP.

How Anki works

What the Anki MCP server does

The Anki MCP server lets an MCP-compatible client work with an Anki collection through AnkiConnect. It supports both study workflows and collection maintenance. An agent can inspect today's workload, retrieve cards due for review, record answers, examine review history, identify leeches, and calculate retention metrics for a deck over a selected period.

Collection-management tools cover card selection, scheduling, suspension, deck moves, note creation, field updates, tag operations, image insertion, and deletion. Bulk operations can target a deck, matching tags, an Anki search query, or explicit card and note IDs. Bulk writes can be previewed with a dry-run option, and note deletion uses a preview followed by a confirmation token.

How it works

The server communicates with Anki through the AnkiConnect add-on. Anki must be running for requests to reach the collection; connection errors are returned as readable tool results rather than being silently ignored. The default connection uses http://127.0.0.1 on port 8765, with an optional API key if AnkiConnect has been configured to require one.

Study interactions can be handled conversationally. The client can retrieve due cards, present questions, submit ease values from 1 through 4, and receive the resulting intervals. Named suspension labels add a paused::<label> tag, allowing a later unsuspend operation to restore that particular group without reactivating cards suspended for another reason.

Setup and configuration

Install Node.js 18 or newer, Anki, and the AnkiConnect add-on using code 2055492159. In Claude Code, the repository can be registered with npx -y github:nietus/anki-mcp. Other MCP clients can use a stdio configuration that launches the same command. The project can also be cloned, installed with npm, built, and started from its generated build/client.js entry point.

The Anki MCP server has no mandatory environment variables. ANKI_CONNECT_HOST, ANKI_CONNECT_PORT, and ANKI_CONNECT_KEY adjust the AnkiConnect connection. Audio features additionally use AZURE_API_KEY; AZURE_REGION selects the Azure Speech region and defaults to eastus. Without the Azure key, the regular study and collection tools remain available, but audio generation is not enabled.

Tools and capabilities

  • Review study totals, streaks, due cards, retention, review history, and leeches.
  • Search cards with pagination and choose whether to return questions, answers, fields, or statistics.
  • Add individual, bulk, and cloze notes while reporting skipped duplicates or invalid entries.
  • Move, reschedule, suspend, unsuspend, edit, tag, and delete cards or notes.
  • Create decks and note types, inspect models, change fields, and replace templates or CSS.
  • Add images from URLs, local paths, or base64 data.
  • Generate audio for new or existing notes through Azure Text-to-Speech, including bulk generation with a per-call limit.
  • Undo the most recent Anki action and synchronize with AnkiWeb.

Limitations and notes

The server depends on Anki and AnkiConnect being available locally or at the configured host and port. Audio generation is a separate capability that depends on Azure credentials. Before adding cards, inspect the destination deck's model information so the note type and fields match the intended content. Scheduling changes, bulk edits, and deletion affect the connected collection, so previews, labels, and the deletion confirmation step should be used where appropriate.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Anki

Anki is an MCP server that connects AI clients to an Anki collection through AnkiConnect. Its main tools cover study overviews, due cards, answer recording, review history, retention statistics, leech detection, card and note editing, deck management, tagging, media, audio generation, and AnkiWeb synchronization.

Install Node.js 18+, Anki, and the AnkiConnect add-on, then register the repository command with your MCP client. Claude Code can use `npx -y github:nietus/anki-mcp`; other clients can launch the same command through an MCP stdio configuration.

Yes, Anki works with Cursor through an MCP server configuration. Add an `anki` server that runs `npx -y github:nietus/anki-mcp`; on Windows, use `cmd /c` if Cursor cannot launch `npx` directly.

It needs Anki to be running with the AnkiConnect add-on installed. The default endpoint is `http://127.0.0.1:8765`; set `ANKI_CONNECT_HOST`, `ANKI_CONNECT_PORT`, or `ANKI_CONNECT_KEY` when your AnkiConnect configuration differs.

Set `AZURE_API_KEY` to enable the audio tools, and optionally set `AZURE_REGION` to choose the Azure Speech region. The tools can create audio for new notes, update one existing note, or process multiple notes with a limit per call.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAnki AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/anki?style=directory)](https://allmcps.com/mcp/anki)
HTML Embed
<a href="https://allmcps.com/mcp/anki"><img src="https://allmcps.com/api/badge/anki?style=directory" alt="Anki on AllMCPs" /></a>