anki-mcp
Provides card CRUD (create, search, update, delete), deck management, archive/sync (export/import .apkg, AnkiWeb sync), progress analytics (deck maturity, Interest Heat Score, study streak), and conversation extraction for creating flashcards.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@anki-mcpcreate a flashcard about the capital of France"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
anki-mcp
MCP server for Anki via AnkiConnect — create, search, and manage flashcards directly from Claude Code or any MCP client.
Features
Card CRUD — create (bulk with duplicate detection), search, update, delete
Deck management — list, create (supports
::hierarchy)Archive & sync — export/import
.apkgfiles, trigger AnkiWeb syncProgress analytics — deck maturity, Interest Heat Score (which topics you retain best), study streak
Conversation extraction —
/anki extractscans a conversation for learnable moments and proposes cardsDaily progress script — cron-friendly report generator that reads Anki's SQLite directly
Claude Code skill — interactive card creation via
/ankislash command
Related MCP server: TalkToAnki
Requirements
Python 3.13+
Anki desktop running
AnkiConnect addon installed (addon code
2055492159)Claude Code or any MCP client
Installation
git clone https://github.com/chaosisnotrandomitisrhythmic/anki-mcp.git
cd anki-mcp
uv syncUsage
Add to your MCP config (~/.claude/settings.json, project .mcp.json, or Claude Desktop config):
{
"mcpServers": {
"anki": {
"command": "uv",
"args": ["--directory", "/path/to/anki-mcp", "run", "anki-mcp"]
}
}
}Tools
Tool | Description |
| Create flashcards (bulk, with duplicate detection) |
| Find cards using Anki query syntax |
| Edit a card's fields or tags |
| Remove cards by ID |
| All decks with card counts (new/learn/review) |
| Create a deck (supports |
| Export deck to |
| Restore |
| Trigger AnkiWeb sync |
| Learning report with Interest Heat Score |
| Check AnkiConnect connectivity |
Configuration
All configuration is via environment variables with sensible defaults:
Variable | Description | Default |
| Directory for |
|
| Path to Anki's | Platform-aware (macOS: |
| Directory for daily progress reports |
|
Daily Progress Script
A standalone script that reads Anki's SQLite database and generates a Markdown progress report. Works even when Anki is running (read-only via WAL mode).
# Run manually
cd /path/to/anki-mcp && uv run python scripts/daily_progress.py
# Cron example (daily at 7:03 AM)
3 7 * * * cd /path/to/anki-mcp && uv run python scripts/daily_progress.pyThe report includes deck overview, Interest Heat Score, and study streak.
Claude Code Skill
The skills/SKILL.md file provides a Claude Code skill for interactive card creation. It supports:
/anki— manual card creation/anki extract— scan conversation for extractable knowledge and create cards/anki progress— show learning progress
Uninstallation
Remove the
ankientry frommcpServersin your MCP configOptionally remove the skill:
rm -rf ~/.claude/skills/anki/Optionally delete the archive directory (
~/.local/share/anki-mcp/by default)Remove the repo:
rm -rf /path/to/anki-mcp
Your Anki cards are stored in Anki itself — nothing is lost by removing this server.
Contributing
See CONTRIBUTING.md.
Security
See SECURITY.md.
License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceAn MCP server that enables AI assistants like Claude to interact with Anki flashcard decks, allowing users to create, manage, and update flashcards through natural language conversations.Last updated38MIT
- Alicense-qualityDmaintenanceAn MCP server that enables AI assistants to seamlessly manage Anki flashcards, decks, and templates through the AnkiConnect API. It supports intelligent querying, batch note creation, and detailed study progress analysis using natural language.Last updated4MIT
- FlicenseAqualityDmaintenanceAn MCP server that enables Claude Code to create, manage, and search Anki flashcards directly from the terminal. It supports batch card creation, deck statistics retrieval, and synchronization with AnkiWeb for cross-platform review.Last updated8
- AlicenseAqualityBmaintenanceMCP stdio server for controlling local Anki via AnkiConnect. Enables LLMs to manage Anki decks and notes through a standardized tool interface.Last updated1117MIT
Related MCP Connectors
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/chaosisnotrandomitisrhythmic/anki-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server