Skip to main content
Glama

MCP-AnkiConnect

by samefarrar

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_idrating含むreviewsのリストを取得します
    • 評価: 「間違っている」、「難しい」、「良い」、「簡単」
    • 提出されたレビューの確認を返します

構成

前提条件

  • AnkiはAnkiConnectプラグイン(プラグインID 2055492159)をインストールした状態で実行されている必要があります。MacではAppSleep機能によりAnkiConnectの動作が遅くなる可能性があるため、AnkiではAppSleep機能を無効にしてください。無効にするには、ターミナルで以下のコマンドを実行してください。
    defaults write net.ankiweb.dtop NSAppSleepDisabled -bool true defaults write net.ichi2.anki NSAppSleepDisabled -bool true defaults write org.qt-project.Qt.QtWebEngineCore NSAppSleepDisabled -bool true

インストール

クイックスタート

  1. Anki に AnkiConnect プラグインをインストールします。
    • ツール > アドオン > アドオンを取得...
    • コードを入力してください: 2055492159
    • Ankiを再起動する
  2. Claude デスクトップを設定します。MacOS の場合: ~/Library/Application\ Support/Claude/claude_desktop_config.json Windows の場合: %APPDATA%/Claude/claude_desktop_config.json次の構成を追加します。
    { "mcpServers": { "mcp-ankiconnect": { "command": "uv", "args": ["run", "--with", "mcp-ankiconnect", "mcp-ankiconnect"] } } }
  3. AnkiとClaudeデスクトップを再起動します

デバッグ

MCPサーバーはstdio経由で実行されるため、デバッグが困難になる場合があります。最適なデバッグ環境を実現するには、 MCP Inspectorの使用を強くお勧めします。まず、リポジトリをクローンし、依存関係をインストールします。

git clone https://github.com/samefarrar/mcp-ankiconnect.git cd mcp-ankiconnect uv sync

MCP インスペクターは、mcp CLI 経由で起動できます。

uv run mcp dev mcp_ankiconnect/server.py

起動すると、インスペクターにブラウザでアクセスしてデバッグを開始できる URL が表示されます。

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

Claude と Anki フラッシュカードを統合する MCP サーバー。これにより、ユーザーは期限切れのカードを確認したり、会話を通じて直接新しいフラッシュカードを作成したりできます。

  1. コンポーネント
    1. ツール
  2. 構成
    1. 前提条件
    2. インストール
  3. クイックスタート
    1. デバッグ

Related MCP Servers

  • -
    security
    F
    license
    -
    quality
    An 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 -
    1
    TypeScript
  • A
    security
    A
    license
    A
    quality
    An 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 -
    2
    6
    TypeScript
    MIT License
    • Apple
  • -
    security
    A
    license
    -
    quality
    An 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 -
    6
    Python
    MIT License
    • Linux
    • Apple
  • -
    security
    -
    license
    -
    quality
    An 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 -
    TypeScript

View all related MCP servers

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/samefarrar/mcp-ankiconnect'

If you have feedback or need assistance with the MCP directory API, please join our Discord server