Anki MCP サーバー
ローカルで実行されている Anki に接続し、カードのレビューと作成を提供する MCP サーバー実装。
このサーバーは、Anki デスクトップ アプリおよびAnki-Connectアドオンで動作するように設計されています。
使用する前にアドオンがインストールされていることを確認してください。
リソース
- アンキ://search/deckcurrent
- 現在のデッキからすべてのカードを返します
- Ankiの
deck:current
に相当するもの
- アンキ://search/isdue
- 復習と学習を待っているカードを返します
- Ankiの
is:due
に相当するもの
- アンキ://search/isnew
- 未表示のカードをすべて返す
- Ankiの
is:new
に相当するもの
ツール
- アップデートカード
- 指定されたカード ID のカードを回答済みとしてマークし、1 (再回答) から 4 (簡単) までの容易さスコアを付与します。
- 入力:
answers
(配列):cardId
(数値)とease
(数値)フィールドを持つオブジェクトの配列
- カードを追加
- デフォルトの Anki デッキに新しいカードを作成します
- 入力:
front
(文字列): カードの表面back
(文字列): カードの裏面
- 期限切れカードを取得する
- 現在レビューが必要なカードのn枚数を返します
- 入力:
num
(数字): カードの枚数
- 新しいカードを取得する
- 新しいカードからn枚のカードを返す
- 入力:
num
(数字): カードの枚数
発達
依存関係をインストールします:
サーバーを構築します。
自動リビルドを使用した開発の場合:
構成
Claude Desktop で使用するには、サーバー設定を追加します。
MacOS の場合: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows の場合: %APPDATA%/Claude/claude_desktop_config.json
デバッグ
MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。パッケージスクリプトとして提供されているMCP Inspectorの使用をお勧めします。
インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。
local-only server
The server can only run on the client's local machine because it depends on local resources.
ローカルで実行されている Anki に接続し、モデル コンテキスト プロトコルを通じてカードのレビューと作成を可能にするサーバー実装。
Related Resources
Related MCP Servers
- AsecurityFlicenseAqualityA Model Context Protocol server that enables LLMs to interact with Anki flashcard software through AnkiConnect, allowing for creation and management of flashcards, decks, and note types.Last updated -105398TypeScript
- -securityAlicense-qualityA Model Context Protocol server that allows LLMs to interact with Anki flashcard software, enabling functions like creating decks, adding notes, searching cards, and managing flashcard content through natural language.Last updated -531JavaScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server that enables language models to interact with Anki flashcard decks programmatically, with specialized features for Japanese language learning including vocabulary import, sample sentence generation, and spaced repetition review.Last updated -2PythonMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables interaction with Anki flashcards through AnkiConnect, providing organized tools for managing decks, notes, cards, models, and media files.Last updated -402PythonMIT License