Anki MCP Server

An MCP server for Anki: conversational card review, note creation, decks, note types and statistics

MCP serverMedium risk

ankimcp/anki-mcp-server

Install

{
  "mcpServers": {
    "anki-mcp": {
      "command": "npx",
      "args": ["-y", "@ankimcp/anki-mcp-server", "--stdio"],
      "env": {"ANKI_CONNECT_URL": "http://localhost:8765"}
    }
  }
}

Anki with AnkiConnect must be running.

This is third-party code. Review the repository files before installing.

What it does

The server connects the agent to Anki through the AnkiConnect add-on. The agent can run a review session: sync with AnkiWeb, show cards, explain answers and record ratings. It creates notes one by one or in batches, searches with Anki query syntax, edits fields, tags and media, and builds note types with custom templates and CSS. It offers deck and review history statistics plus tools that drive the Anki window: card browser, editor and add dialog.

Who it is for. For people learning languages or preparing for exams with Anki who want to build and review cards with an assistant.

Good fit when

  • You need a card set quickly from text or a word list
  • You want to review a deck conversationally with explanations
  • You need bulk edits to tags, fields or templates

Not a fit when

  • Desktop Anki is not running or AnkiConnect is missing
  • You only use mobile Anki without the desktop app

Example request

Create ten cards on Spanish verbs of motion in the Spanish deck and start a review with me

Limitations

Beta, tools may change. Requires running desktop Anki with AnkiConnect and Node.js 22.12 or newer. Some tools delete notes, media and fields and ask for confirmation. Cloud assistants need a tunnel to your local Anki.

How to disable. Remove the anki-mcp entry from the MCP client config or the extension in Claude Desktop settings.

MCP

Transport
stdio, http
Authentication
not required
Environment variables
Environment variables
ANKI_CONNECT_URL
AnkiConnect URL, defaults to http://localhost:8765

Security check

  • Can delete notes, fields and media in the collection
  • Reads local files to upload media

README in short

The README groups tools into review, decks, notes, tags, media, note types, statistics and Anki window control. Install via npm, npx or an MCPB bundle for Claude Desktop. It covers local stdio and HTTP connections and remote access via a tunnel or ngrok. The project is marked beta. MIT licensed.

FAQ

How does rate_card differ from setDueDate?

rate_card records a real review. setDueDate and forgetCards change scheduling without a history entry, so statistics stay clean.

What is the easiest Claude Desktop setup?

Download the .mcpb file from Releases and drop it into Extensions in settings.

Editors’ pick

A CLI for every Google Workspace API with JSON output and agent skills: Drive, Gmail, Calendar, Sheets and more

CLIHigh risk31K
Editors’ pick

Local search over Markdown notes, docs and meeting transcripts: keywords, semantic search and reranking, with an MCP server

CLIMedium risk29.7K
Editors’ pick

A task manager for AI-driven development: breaks a PRD into dependent tasks and guides the agent through them via MCP or CLI

MCP serverMedium risk28.1K
Editors’ pick

Anthropic's official plugins for knowledge work roles: sales, support, product, marketing, legal, finance, data and enterprise search

PluginHigh risk24K