# AnkiMCP Server

Connects an active Anki desktop collection to Claude Code over MCP. It lets an assistant inspect deck statistics, update note schemas, and create flashcards directly.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed · ★ 93
- Author: ankimcp
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ankimcp/anki-mcp-server-addon
- Updated: 2026-10-11
- HTML: https://affpapa.org/en/nevibecode/mcp/ankimcp-server

## What it does

This add-on spins up a local HTTP endpoint inside Anki at `http://127.0.0.1:3141/`. It launches automatically alongside the desktop software. Claude Code talks directly to this listener to inspect cards, pull deck metrics, and create entries without touching manual CSV exports.

During the initial launch, the extension fetches a 2 MB `pydantic_core` wheel directly from PyPI. Anki packages cannot bundle operating-system-specific binaries into one installer archive, so this step requires an active internet connection. Downloaded files stay in Anki's storage area across updates. For network protection, the built-in HTTP server validates loopback `Host` and `Origin` headers. You must adjust this allowlist manually before routing traffic through tunnels like ngrok or Cloudflare.

Available MCP methods include aggregate review scheduling metrics via `cards_stats`, note-type schema adjustments with `model_field_*`, and graphical review execution via `gui_deck_review`. Destructive actions, such as removing note fields, remain deactivated out of the box. You have to enable them explicitly in the extension preferences.

## Install

### Claude Code (native platform)

**Install**
- The MCP registry has no launch command for it: see the repository README

## When to use it
- pull interval schedules and due metrics with `cards_stats`
- adjust and reorder schema fields on note types
- trigger review steps in Anki's window with `gui_answer_card`
- generate study materials and save cards directly to decks

## Example prompts
- Check due cards and review metrics for deck "Biology" using cards_stats.
- Add a new field named Context to the Basic note type right after Front.
- Start a review session on deck Spanish using gui_deck_review.

## Similar
- [Reactive Resume](https://affpapa.org/en/nevibecode/mcp/reactive-resume.md) — MCP server · ★ 44874
- [screenpipe](https://affpapa.org/en/nevibecode/mcp/screenpipe.md) — MCP server · ★ 22053
- [Inbox Zero](https://affpapa.org/en/nevibecode/mcp/inbox-zero.md) — MCP server · ★ 12791
- [kaneo](https://affpapa.org/en/nevibecode/mcp/kaneo.md) — MCP server · ★ 9602
- [Mindwtr](https://affpapa.org/en/nevibecode/mcp/mindwtr.md) — MCP server · ★ 2318
- [Azure DevOps (ADO)](https://affpapa.org/en/nevibecode/mcp/azure-devops-ado.md) — MCP server · ★ 2067

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
