AnkiMCP

Expose your Anki collection to AI assistants via MCP, enabling them to help you study, create cards, and analyze your learning progress.

Why AnkiMCP?

MCP Protocol

Built on the Model Context Protocol, providing standardized AI integration with Claude Desktop and other MCP hosts.

Permission Control

Fine-grained permissions let you control exactly what AI assistants can read, write, or modify in your collection.

Full API Coverage

Access decks, notes, cards, and review statistics. Create, update, and manage your Anki content programmatically.

Quick Start

1

Install AnkiMCP

Install the addon in Anki using one of these methods:

Option A: From AnkiWeb

  1. In Anki, go to Tools → Add-ons → Get Add-ons...
  2. Enter code: 1513864660
  3. Click OK and restart Anki

Option B: From GitHub

  1. Download from GitHub
  2. Copy src/ankimcp to your Anki addons folder
  3. Restart Anki
2

Configure MCP Host

Add AnkiMCP to your MCP host configuration:

For Claude Desktop

Edit your Claude Desktop config:

claude_desktop_config.json JSON
                        {
  "mcpServers": {
    "ankimcp": {
      "command": "python",
      "args": ["-m", "ankimcp"],
      "env": {
        "ANKIMCP_HOST": "localhost",
        "ANKIMCP_PORT": "8765"
      }
    }
  }
}
                
3

Start Using

The MCP server starts automatically when you open an Anki profile. Your AI assistant can now:

  • List and search your decks
  • Create new cards from conversations
  • Review your learning statistics
  • Update existing notes

Try it: Ask Claude "What Anki decks do I have?" or "Create a flashcard for [topic]"

Ready to enhance your Anki experience?

Join the growing community using AI to supercharge their spaced repetition learning.