mcp-ankiconnect MCP サーバー
MCP を介して Claude の会話を AnkiConnect に接続し、「今日のフラッシュカードを見てみましょう」や「これのフラッシュカードを作ってみましょう」といった間隔をあけた反復学習を簡単に行えるようにします。
コンポーネント
ツール
サーバーは 3 つのツールを実装します。
num_cards_due_today
: 今日期限が切れるカードの数を取得する- 特定のデッキでフィルタリングするためのオプションの
deck
引数 - すべてのデッキまたは指定されたデッキの期限付きカードの数を返します
- 特定のデッキでフィルタリングするためのオプションの
get_due_cards
: レビュー期限が迫っているカードを取得する- オプションの
limit
引数(デフォルト:5)でカードの数を制御 - 特定のデッキでフィルタリングするためのオプションの
deck
引数 - 今日のカードのみを表示する場合は、オプションの
today_only
引数(デフォルト:true)を使用します。 - 質問と回答を含むカードをXML形式で返します
- オプションの
submit_reviews
: レビューしたカードの回答を送信するcard_id
とrating
含むreviews
のリストを取得します- 評価: 「間違っている」、「難しい」、「良い」、「簡単」
- 提出されたレビューの確認を返します
構成
前提条件
- AnkiはAnkiConnectプラグイン(プラグインID 2055492159)をインストールした状態で実行されている必要があります。MacではAppSleep機能によりAnkiConnectの動作が遅くなる可能性があるため、AnkiではAppSleep機能を無効にしてください。無効にするには、ターミナルで以下のコマンドを実行してください。
インストール
クイックスタート
- Anki に AnkiConnect プラグインをインストールします。
- ツール > アドオン > アドオンを取得...
- コードを入力してください:
2055492159
- Ankiを再起動する
- Claude デスクトップを設定します。MacOS の場合:
~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows の場合:%APPDATA%/Claude/claude_desktop_config.json
次の構成を追加します。 - AnkiとClaudeデスクトップを再起動します
デバッグ
MCPサーバーはstdio経由で実行されるため、デバッグが困難になる場合があります。最適なデバッグ環境を実現するには、 MCP Inspectorの使用を強くお勧めします。まず、リポジトリをクローンし、依存関係をインストールします。
MCP インスペクターは、mcp CLI 経由で起動できます。
起動すると、インスペクターにブラウザでアクセスしてデバッグを開始できる URL が表示されます。
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
Claude と Anki フラッシュカードを統合する MCP サーバー。これにより、ユーザーは期限切れのカードを確認したり、会話を通じて直接新しいフラッシュカードを作成したりできます。
Related Resources
Related MCP Servers
- -securityFlicense-qualityAn 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 updated 6 months ago1TypeScript
- AsecurityAlicenseAqualityAn MCP server that enables saving and sharing Claude Desktop conversations, allowing users to store chats privately or make them public through a web interface.Last updated 6 months ago26TypeScriptMIT License
- -securityAlicense-qualityAn MCP server that enables Claude to interact with Port.io's AI agent, allowing users to trigger the agent with prompts and receive structured responses including status, output, and action items.Last updated 11 days ago8PythonMIT License
- -security-license-qualityAn MCP server that enables Claude and other MCP clients to interact with Mattermost workspaces, providing channel management, messaging capabilities, and topic monitoring functionality.Last updated 4 months agoTypeScript