Anki MCP Server logo

Anki MCP Server

Connects AI assistants to Anki through AnkiConnect for review, notes, decks, tags, media, and scheduling.

Install Anki MCP Server

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-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ankimcp/anki-mcp-server"
      ]
    }
  }
}

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

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y @ankimcp/anki-mcp-server

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Anki MCP Server MCP server connects AI assistants to Anki through AnkiConnect. It exposes tools for reviewing cards, changing schedules, managing decks and notes, handling tags and media, and inspecting models. Use it when an agent needs to read or modify an Anki collection through natural-language workflows. Card answers are omitted by default in card retrieval tools unless explicitly requested.

Use cases

  • Review due cards in a selected Anki deck
  • Create batches of vocabulary notes with tags
  • Move cards between decks
  • Import media into note fields
  • Inspect deck and review statistics

Key features

  • AnkiWeb synchronization
  • Card review and scheduling
  • Deck and note management
  • Tag and media operations
  • Note type discovery
  • Deck and collection statistics

Tools53

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

Self-reported~1.1k 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.

35/35 checks healthy over the last 111d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · @ankimcp/anki-mcp-server (npm)

Adoption & maintenance

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

GitHub stars584Stargazers on the source repository.
npm downloads4.6kPackage downloads in the last 30 days.
Last commit1d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed53Callable tools this server registers over MCP.
Directory activity7 viewsConfig copies, upvotes, and views on AllMCPs.

How Anki MCP Server works

What Anki MCP Server MCP server does

Anki MCP Server MCP server gives an AI assistant access to an Anki collection through AnkiConnect. It covers study workflows, collection maintenance, and content creation rather than only read-only lookup. Agents can synchronize with AnkiWeb, retrieve due or filtered cards, show a card front, record a review rating, and change suspension or scheduling state.

The server also supports deck and note operations. An agent can list or create decks, move cards, create notes individually or in batches, search notes with Anki query syntax, update fields, and delete notes with confirmation. Tag operations include adding, removing, replacing, and clearing unused tags.

Media tools list files in Anki's collection.media directory, retrieve files as base64, store files from base64, an absolute path, or a URL, and delete files. Model discovery is available through the modelNames tool, which helps an agent identify note types before creating notes.

How it works

Requests arrive through MCP and are translated into Anki operations through AnkiConnect. The sync operation pulls current data from AnkiWeb and pushes local changes. Review actions have different effects: rate_card records a performance rating and schedules the next review, while forgetCards resets a card to new without recording a review, and setDueDate changes its due timing without recording a review.

Card retrieval can be limited by deck and state, including due, new, learning, suspended, and buried. The get_due_cards and get_cards tools do not return answers unless include_answer is set to true. Note searches accept Anki query syntax such as deck:, tag:, and is:due.

Batch note creation supports up to 100 notes sharing a deck and model, with partial success possible. Deck creation supports a Parent::Child structure up to two levels. Destructive operations include deleting notes, removing media, and clearing unused tags.

Setup and configuration

The project documentation identifies AnkiConnect as the connection layer between the MCP server and Anki. The repository also publishes an npm package named @ankimcp/anki-mcp-server and identifies Claude Desktop in its documentation examples.

Tools and capabilities

  • Review due or filtered cards, present card fronts, rate performance, reset scheduling, set due dates, and manage suspension.
  • Synchronize with AnkiWeb and inspect deck-level or collection-wide statistics.
  • Create, search, update, batch-create, tag, and delete notes.
  • List, retrieve, store, and delete collection media files.
  • List available note types and use them when creating notes.

Limitations and notes

Anki MCP Server MCP server is marked beta, so its APIs and features may change. Operations that delete notes, media, or unused tags are destructive. Card answers are hidden by default in the two card retrieval tools.

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 MCP Server

Anki MCP Server is an MCP server that connects AI assistants to Anki through AnkiConnect. Its main tools support card review, scheduling, deck management, note creation and editing, tag operations, media handling, synchronization with AnkiWeb, and deck or collection statistics.

It identifies an npm package named @ankimcp/anki-mcp-server and describes AnkiConnect as the connection layer, but setup steps and configuration details are not included here.

Yes, it can create up to 100 notes in one batch. The notes share a deck and model, and partial success is supported, so some notes may be created even if others fail.

Use setDueDate to move cards to a specified number of days, a range, or an exact date marker without recording a review. Use rate_card when the action represents an actual Again, Hard, Good, or Easy performance rating.

Yes, storeMediaFile accepts base64 data, an absolute file path, or a URL. The server can also list media names, retrieve files as base64 content, and delete files from Anki's collection.media directory.

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 MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/anki-mcp-server?style=directory)](https://allmcps.com/mcp/anki-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/anki-mcp-server"><img src="https://allmcps.com/api/badge/anki-mcp-server?style=directory" alt="Anki MCP Server on AllMCPs" /></a>