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
Install AnkiMCP
Install the addon in Anki using one of these methods:
Option A: From AnkiWeb
- In Anki, go to
Tools → Add-ons → Get Add-ons... - Enter code:
1513864660 - Click OK and restart Anki
Option B: From GitHub
- Download from GitHub
- Copy
src/ankimcpto your Anki addons folder - Restart Anki
Configure MCP Host
Add AnkiMCP to your MCP host configuration:
For Claude Desktop
Edit your Claude Desktop config:
{
"mcpServers": {
"ankimcp": {
"command": "python",
"args": ["-m", "ankimcp"],
"env": {
"ANKIMCP_HOST": "localhost",
"ANKIMCP_PORT": "8765"
}
}
}
}
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.