Skip to content
Anki MCP Server

Anki MCP Server

Released
1 views
v0.24.1
MIT

Summary

Turns Anki into a conversational tutor: 42 tools for reviewing due cards, rating them, creating notes and decks, and managing media over AnkiConnect.

Features

  • 42 tools — 31 core operations plus 11 that drive the Anki desktop GUI
  • Full review loop: due cards, present, rate, sync with AnkiWeb
  • Cards rendered from their own template, so reversed and cloze display correctly
  • Batch note creation, custom note types and CSS styling
  • Media upload from local files
  • Runs locally against AnkiConnect on localhost:8765

Installation

Set up this MCP server in your favorite AI agent — copy a ready-made configuration below.

Any MCP-compatible agent

Most agents (Claude, Cursor, Windsurf, VS Code, and more) read a standard mcpServers configuration.

  1. Open your agent's MCP configuration file.
  2. Merge the snippet below into it.
  3. Restart the agent — the "Anki MCP Server" tools will be available.
{
  "mcpServers": {
    "anki-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ankimcp/anki-mcp-server"
      ]
    }
  }
}

Description

Anki is the best-known spaced repetition system and the least conversational: a card appears, you grade yourself, the algorithm moves on. This MCP server gives an AI assistant direct access to your collection through the AnkiConnect add-on, which turns review into something closer to sitting with a tutor — the assistant can present a card, explain why your answer was wrong, give context the card never had room for, and then record your rating.

42 tools

Thirty-one cover everyday operations: sync with AnkiWeb, get_due_cards and get_cards with filtering by deck and state (due, new, learning, suspended, buried), present_card and rate_card for the review loop, plus note, deck, model and media management. Card front and back are rendered per card from its own template, exactly as Anki would show it, so reversed and cloze cards come through in the right direction rather than as raw fields.

The remaining eleven drive the Anki desktop GUI itself — reading the notes currently selected in the browser, for instance, so "add this image to the front of the note I have open" works as stated.

What it is good for

Bulk creation is the obvious win: "create 10 Arabic vocabulary cards with right-to-left styling" becomes listing note types, creating a custom model with RTL CSS, and batch-adding the notes. So is media handling — a local file is uploaded with storeMediaFile and referenced from a field.

Running it

It needs desktop Anki with the AnkiConnect add-on installed, and Node.js 22.12.0 or newer. Install with npm install -g @ankimcp/anki-mcp-server or run it on demand with npx; for Claude Desktop there is an .mcpb bundle on the releases page that bundles everything. The server runs on the same machine as your client and talks to AnkiConnect on localhost:8765, so your collection never leaves your computer.

MIT licensed, and the authors describe it as beta — APIs and features may still change.

Related MCP Servers

MCP: Vanta

by Vanta

New

Vanta's official remote MCP server — query controls, tests, vendors, vulnerabilities and policies across SOC 2 and ISO 27001, and remediate failing tests from your agent.

New

Attio's official hosted MCP server — search, read and write your CRM records, lists, notes, tasks, meetings and emails from any MCP client over OAuth.

1 views

MCP: Fireflies.ai

by Fireflies.ai

Featured

Fireflies.ai's official remote MCP server — 19 tools for searching meeting transcripts and summaries, pulling action items and analytics, and cutting soundbites from recorded calls.

5 views

MCP: ClickUp

by ClickUp

Featured

ClickUp's official remote MCP server — around 40 tools across tasks, search, Docs, Chat and time tracking, over OAuth 2.1 with PKCE.

2 views
Browse all MCP servers →