anki-mcp
anki-mcp
Ein schlanker Model Context Protocol (MCP)-Adapter, der es KI-Assistenten (Claude Code, Hermes Agent usw.) ermöglicht, Anki-Karten direkt zu erstellen und zu verwalten – über AnkiConnect.
Keine eigene KI-App. Die KI bleibt die Intelligenzschicht; dieser Server ist nur eine Brücke zu Anki.
Claude Code / Hermes / ChatGPT
│ MCP (stdio)
▼
anki-mcp server
│ AnkiConnect HTTP (localhost:8765)
▼
Anki Desktop + AnkiConnect add-on
│ sync
▼
AnkiWeb ──► Anki mobile (iOS/Android)Features
Tool | Beschreibung |
| Alle Decks mit Kartenanzahl auflisten |
| Ein Deck erstellen, falls es nicht existiert |
| Einfache Vorder-/Rückseiten-Karte |
| Lückentext-Karte ( |
| Viele Karten auf einmal stapelweise erstellen |
| Volltextsuche (Anki-Abfragesyntax) |
| Vorder-/Rückseite einer Karte per Notiz-ID aktualisieren |
| Eine Karte per Notiz-ID löschen |
Related MCP server: Anki MCP Server
Einrichtung
1. Anki Desktop installieren
Von https://apps.ankiweb.net/ herunterladen und installieren. Einmal starten und mit dem AnkiWeb-Konto synchronisieren, damit die mobile Synchronisierung funktioniert.
2. Das AnkiConnect-Add-on installieren
AnkiConnect stellt Anki über eine lokale HTTP-API auf localhost:8765 bereit.
Option A – Anki-Add-on-Browser (am einfachsten):
In Anki: Extras → Add-ons → Add-ons abrufen…
Den Code
2055492159eingeben und installieren.
Option B – manuell (Git):
cd "$APPDATA/Anki2/addons21" # Windows
# or: ~/.local/share/Anki2/addons21 (Linux)
# or: ~/Library/Application Support/Anki2/addons21 (macOS)
git clone --depth 1 https://github.com/FooSoft/anki-connect.git 2055492159
cd 2055492159
cp plugin/*.py plugin/*.json plugin/*.md .
rm -rf plugin tests .git 2>/dev/nullAnki neu starten. Prüfen, dass es läuft:
curl -s http://127.0.0.1:8765 -X POST -d '{"action":"version","version":6}'
# → {"result": 6, "error": null}3. Den MCP-Server starten
pip install mcp
python server.pyDer Server spricht MCP über stdio. Anki Desktop muss laufen (mit geladenem AnkiConnect), damit die Tools funktionieren.
In einem Client konfigurieren
Hermes Agent
Zu ~/.hermes/config.yaml hinzufügen (oder %USERPROFILE%\AppData\Local\hermes\config.yaml unter Windows):
mcp_servers:
anki:
command: python
args:
- /absolute/path/to/server.py
timeout: 60
connect_timeout: 30Dann MCP in der Sitzung neu laden (/reload-mcp) oder neu starten. Die Tools erscheinen als mcp_anki_*.
Claude Code
claude mcp add anki -- python /absolute/path/to/server.pyVerwendung
Sobald alles eingerichtet ist, sag der KI einfach, was du möchtest:
"Füge eine Karte zu meinem System-Design-Deck hinzu: Vorderseite = 'Warum verwendet konsistentes Hashing virtuelle Knoten?', Rückseite = 'Um Schlüssel gleichmäßiger zu verteilen.'" "Erstelle Anki-Karten aus den wichtigen Konzepten, die wir gerade besprochen haben."
Regeln für die Kartenerstellung (Füge diese in deine KI-Anweisungen ein)
Ein Konzept pro Karte.
Fragen bevorzugen, die Erinnerung erfordern.
Sehr lange Antworten vermeiden.
Keine Karten für triviale Fakten erstellen.
Wo passend Lückentext-Karten verwenden.
Quellen-/Themen-Tags hinzufügen.
Auf das Handy synchronisieren
MCP-erstellte Karten bleiben in Anki Desktop, bis du synchronisierst. Synchronisierung auslösen:
Manuell: Anki → Synchronisieren (oder
Ydrücken), oderÜber AnkiConnect:
curl -s http://127.0.0.1:8765 -X POST -d '{"action":"sync","version":6}'
Dann die Anki-Mobil-App synchronisieren, um die neuen Karten zu übernehmen.
Voraussetzungen
Python 3.10+
mcp-Paket (pip install mcp)Anki Desktop (läuft)
AnkiConnect-Add-on
Lizenz
MIT
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
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants like Claude to interact with Anki flashcard decks through AnkiConnect. Supports creating and managing decks, basic and cloze deletion cards, searching existing cards, and organizing content with tags.
- AlicenseNot gradedqualityCmaintenanceEnables interaction with the Anki desktop flashcard application through the Anki-Connect plugin. Supports managing decks, cards, notes, and models, allowing AI assistants to create and query flashcards through natural language.101ISC
- AlicenseAqualityDmaintenanceEnables AI assistants to manage Anki flashcard collections by creating, searching, and updating cards through a standardized interface. It supports media handling, batch operations, and review scheduling via the AnkiConnect add-on.62MIT
- AlicenseAqualityDmaintenanceEnables AI tools to manage Anki flashcards, including deck management, card search, creation, editing, deletion, and statistics.10353Apache 2.0
Related MCP Connectors
AI-powered YouTube to flashcards with spaced repetition and Anki export
Free: turn your AI chats into spaced-repetition vocabulary. 13 tools, reads and writes.
Voice-led, FSRS-scheduled flashcards from YouTube, PDFs, web, or text. Auto-graded quizzes.
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/Looseling/anki-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server