AnkiConnect MCP Server
AnkiConnect MCP Server
AnkiConnect 用の Python MCP サーバーです。デッキレビューアシスタント: デッキのカードを 1 枚ずつ確認して、欠けている箇所(動詞の活用形や格変化など)を見つけ、承認を得て修正します。
前提条件
Anki 2.1.x がバックグラウンドで動作していること
AnkiConnect アドオン(インストールコード:
2055492159)Python 3.11+
AnkiConnect の動作確認: http://127.0.0.1:8765 を開くと、AnkiConnect と表示されます。
Related MCP server: Anki MCP Server
インストール
cd AnkiConnectMCP
python -m pip install -e .Cursor MCP 設定
.cursor/mcp.json(または Cursor Settings → MCP)で設定:
{
"mcpServers": {
"anki-connect": {
"command": "python",
"args": ["-m", "anki_connect_mcp.server"],
"cwd": "C:/Users/Fabian/Desktop/Projekte/AnkiConnectMCP",
"env": {
"PYTHONPATH": "src",
"ANKI_CONNECT_URL": "http://127.0.0.1:8765"
}
}
}
}コード変更後は MCP サーバーをリロードしてください。
動作のしくみ
典型的なセッション — JSON なし、チャットのみ:
Du: „Geh mein Italienisch-Deck durch — Verben sollen alle Formen auf einer Karte haben“
KI: list_deck_cards(deck_name="Italienisch", offset=0)
→ #1–#15 mit Front/Back
Chat-Analyse:
#3 mangiare — Partizip fehlt
#7 il libro — nicht dekliniert
Soll ich #3 anpassen?
Du: „ja, Partizip mangiato“
KI: BEFORE/AFTER im Chat + edit_card(note_id=…, back="…")
Du: „weiter“ / „nächster Block“ / „#7 auch“Run が保留中のあいだに新しいチャットメッセージが届くと、そのまま適用されるのではなく、見直し(リビジョン)として扱われます。
ツール
ツール | 説明 |
| デッキ名の一覧 |
| 体系的なレビューのための番号付きカード一覧 |
| 1 枚のカードの詳細 |
| 対象を絞った検索(動詞、タグ、テキスト) |
| 承認済みの編集を 1 件適用 |
| 新しいカードを 1 枚追加 |
ライセンス
MIT
Available Tools
6 toolsadd_cardA
Add a card to Anki after Cursor Run. Never call in parallel with other tools.
Inputs: back (required), front (required), deck_name (required), tags. Returns: result
edit_cardA
Apply one approved edit. Show BEFORE/AFTER in chat first, then call with new values.
Used during systematic deck review when the user approves a specific card (#N). If the user sends new context, revise — do not ignore their message. Never call in parallel with other tools.
Inputs: note_id (required), back, tags, front. Returns: result
get_cardA
Get one card's full content. Read-only. Never call in parallel with other tools.
Inputs: note_id (required). Returns: result
list_deck_cardsA
List numbered cards in a deck for systematic review sessions. Read-only. Use with chat analysis (verb forms, declension, etc.). Never call in parallel with other tools.
Inputs: deck_name (required), limit, offset. Returns: result
list_decksA
List Anki deck names only. Read-only. Never call in parallel with other tools.
Inputs: no named parameters. Returns: result
search_cardsA
Search notes — read-only, for targeted lookups (verbs, tags, text). For full deck walkthrough use list_deck_cards instead. Never call in parallel with other tools.
Inputs: query (required), limit, deck_name. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Most tools have clearly distinct purposes: listing decks, listing cards in a deck, fetching one card, adding, searching, and editing. list_deck_cards and search_cards overlap somewhat as card-retrieval operations, but their descriptions explicitly separate systematic review from targeted lookup.
All tool names follow a consistent lower_snake_case verb_noun pattern: list_decks, list_deck_cards, get_card, add_card, search_cards, edit_card. The naming is predictable and easy to navigate.
Six tools is a well-scoped set for an Anki card and deck workflow. Each tool covers a distinct functional action without unnecessary redundancy and the count feels appropriate for the server's purpose.
The server covers core card lifecycle operations well: listing decks, viewing cards, adding cards, searching, and editing cards. The main gap is the lack of a delete_card tool, and there is minimal deck-management coverage beyond listing, but the primary review-oriented workflow is well supported.
Maintenance
Related MCP Connectors
Language flashcards in your AI assistant: build decks, edit cards and review what's due in the chat.
Language flashcards: list your decks, read cards and review progress, save new decks from a chat.
Build and study spaced-repetition flashcards with your agent.
Create language flashcards and review the cards due today with spaced repetition.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with the Anki desktop app for spaced repetition learning. Supports reviewing due cards, creating new flashcards, and managing study sessions through natural language commands.MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to manage Anki flashcard decks and cards through natural language, supporting deck creation, card additions (basic and cloze types), and review queue management.66 npm2MIT
- AlicenseNot gradedqualityNot gradedmaintenanceConnects Claude to Anki flashcard software via AnkiConnect, enabling users to review due cards, create flashcards, and manage spaced repetition learning through natural language conversations.MIT
- AlicenseNot gradedqualityCmaintenanceEnables to interact with your Anki collection through natural language, allowing you to study, edit, and analyze flashcards without external dependencies.2MIT