ankimcp/anki-mcp-server
MCP RegistryA standalone MCP bridge for studying and editing Anki cards from AI clients
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Anki MCP Server is a standalone TypeScript/Node.js bridge between an MCP client and a running Anki desktop session. In the primary STDIO flow, the client starts the process, invokes MCP tools over standard input/output, and the server reaches Anki through AnkiConnect. ANKI_CONNECT_URL defaults to http://localhost:8765. The package exposes ankimcp and anki-mcp-server executables, and a source-build configuration can launch dist/main-stdio.js directly.
The runtime stack includes NestJS, @rekog/mcp-nest, the @modelcontextprotocol/core, node, and server packages, and Zod with zod-to-json-schema. Local HTTP and remote tunnel access are also available, but they change how the client reaches the bridge, not the need for a running Anki backend. The server exposes collection operations; the MCP client supplies the conversational or model layer.
Key Capabilities & Differentiators
The server exposes 53 tools: 42 for general Anki operations and 11 for the desktop GUI. A conversational study session can fetch due cards, present the question, and submit an Again, Hard, Good, or Easy rating. Fetches omit answers unless include_answer is enabled, and card content is rendered per template. Use the study tools rather than the GUI tools for that flow: guiCurrentCard includes the answer and errors outside desktop review mode.
Collection tools cover decks, Anki-query searches, note edits, tags, media, and note types, including fields, front/back HTML, and CSS. addNotes supports up to 100 notes per batch for a shared deck and note type, with partial success. Deleting notes or removing a note-type field requires explicit confirmation. For analytics, deckStats separates the daily-limit-aware study queue from card-state counts; review_stats analyzes review history, retention, and streaks.
Trade-offs & Limitations
The closest alternative is the AnkiMCP addon. It runs inside Anki, starts when Anki opens, and offers local HTTP and a built-in tunnel without configuring AnkiConnect or running a separate Node.js server. Choose the standalone server for a client that expects to spawn a STDIO subprocess, or for Claude Desktop's .mcpb install path. The packaging is convenient, but the underlying Anki and AnkiConnect dependency remains.
The write surface extends well beyond drafting flashcards: it can change schedules and edit shared templates that affect every card of a note type. Confirm destructive edits, check for partial success before retrying batch writes, and use setDueDate rather than a review rating when the intent is only to move a due date. The MIT license permits self-hosting, but a local bridge does not make a cloud-backed assistant private; the client may still transmit the collection content it receives.
Hardware & Deployment Guide
For general installation, run npx -y @ankimcp/anki-mcp-server --stdio from the client configuration, or install the package globally and launch ankimcp --stdio. Claude Desktop can install the release .mcpb instead. The standalone server needs Anki with AnkiConnect running; npm and source deployments require Node.js 22.12.0 or newer. A source build uses npm install and npm run build; running the test suite requires Node.js 24.9 or newer, which is not the production runtime minimum.
STDIO needs no remote endpoint. For remote access, the project offers an authenticated managed tunnel and lists unauthenticated ngrok as an alternative; use an authenticated path when exposing collection operations. Release v0.26.0 added card suspension tools, v0.27.0 hardened read-only behavior, and v0.28.0 updated the MCP SDK and hardened media imports, filenames, and origin checks. Review existing deck-creation integrations before upgrading to v0.28.0, which marks a createDeck change as breaking.
ankimcp --stdio; Claude Desktop can also install a .mcpb bundle.rate_card records a review; forgetCards resets cards to new, while setDueDate moves the due date without recording a review.addNotes accepts up to 100 notes sharing a deck and note type, with partial success supported.storeMediaFile accepts paths, URLs, or base64; v0.28.0 includes hardening for symlink handling and filenames.Anki users who already run AnkiConnect and want a local STDIO client for guided review, batch note creation, or deck maintenance, or who need the Claude Desktop bundle.
You mainly need HTTP or web-client access, or your workflow must run with Anki closed. The addon is simpler for HTTP and remote access; neither option removes the running Anki requirement.
Quick Start & Installation
npm install -g @ankimcp/anki-mcp-server
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| anki-mcp-server ★ | 590 | +9 | TypeScript | MIT | A standalone MCP bridge for studying and editing Anki cards from AI clients |
| rea | 488.8k | +7.6k | TypeScript | MIT | A local CLI and MCP server for evidence-backed app and binary analysis |
| chrome-devtools-mcp | 60.4k | +760 | TypeScript | Apache-2.0 | Chrome DevTools via MCP and CLI for live browser debugging and performance analy |
| skills | 42.3k | +1.1k | TypeScript | MIT | TypeScript CLI for distributing and restoring skills across coding agents |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/ankimcp/anki-mcp-server.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about anki-mcp-server
Can a STDIO client use the collection while Anki is closed?
--stdio, and the server forwards collection operations to AnkiConnect at http://localhost:8765 by default. Anki must be running with AnkiConnect available. The separate AnkiMCP addon runs its MCP server inside Anki and does not require AnkiConnect.Does the server need a GPU, and what should I budget for runtime overhead?
Can we self-host it for commercial use and keep study data on the machine?
When should I choose this server over the AnkiMCP addon?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy