Anki Mcp サーバー
概要
Anki MCPサーバーとは?
Anki MCPサーバーは、人気のフラッシュカードアプリケーションであるAnkiの機能を強化するために設計されたオープンソースのサーバーです。このサーバーは、ユーザーがAnkiデッキをより効率的に作成、管理、同期できるようにし、学習者にシームレスな体験を提供します。MCP(マルチチャネルプロトコル)を活用することで、Anki MCPサーバーはAnkiクライアントとのリアルタイムの更新とインタラクションを可能にし、教育者や学生にとって貴重なツールとなります。
Anki MCPサーバーの特徴
- リアルタイム同期:サーバーはデバイス間での即時更新を可能にし、ユーザーが常に最新のデッキを持っていることを保証します。
- マルチチャネルサポート:MCPを使用することで、ユーザーは複数のクライアントをサーバーに接続でき、協力的な学習やリソースの共有を促進します。
- オープンソース:オープンソースプロジェクトであるため、Anki MCPサーバーは開発者からの貢献を奨励し、継続的な改善と機能の強化を可能にします。
- ユーザーフレンドリーなインターフェース:サーバーはAnkiデッキの管理を簡素化する直感的なインターフェースを提供し、すべてのスキルレベルのユーザーがアクセスできるようにします。
- クロスプラットフォーム互換性:サーバーはさまざまなオペレーティングシステムで使用でき、ユーザーが任意のデバイスからデッキにアクセスできることを保証します。
Anki MCPサーバーのセットアップ方法
- インストール:公式のGitHubリポジトリからAnki MCPサーバーをダウンロードします。READMEファイルに記載されたインストール手順に従ってください。
- 設定:インストール後、好みに応じてサーバー設定を構成します。これには、ユーザーアカウントの設定やアクセス権限の定義が含まれる場合があります。
- クライアントの接続:サーバーが稼働している状態で、提供された接続詳細を使用してAnkiクライアントをサーバーに接続します。これにより、サーバーとデバイス間の同期が可能になります。
- デッキの作成:サーバーインターフェースを通じてAnkiデッキの作成と管理を開始します。カードを追加し、デッキに整理し、他のユーザーと共有できます。
- データの同期:すべてのデバイスがサーバーと同期されていることを確認し、デッキを最新の状態に保ちます。サーバーダッシュボードを通じて同期状況を監視できます。
よくある質問
Q: Anki MCPサーバーは無料で使用できますか?
A: はい、Anki MCPサーバーはオープンソースプロジェクトであり、無料で使用できます。
Q: 複数のデバイスでAnki MCPサーバーを使用できますか?
A: もちろんです!サーバーは複数のデバイスをサポートしており、どこからでもAnkiデッキにアクセスできます。
Q: Anki MCPサーバープロジェクトにどのように貢献できますか?
A: プロジェクトのGitHubリポジトリで問題を報告したり、機能リクエストやプルリクエストを提出することで貢献できます。
Q: Anki MCPサーバーを実行するためのシステム要件は何ですか?
A: サーバーは、必要なプログラミング言語と依存関係をサポートする任意のシステムで実行できます。具体的な要件についてはドキュメントを確認してください。
Q: Anki MCPサーバーユーザーのためのコミュニティはありますか?
A: はい、ユーザーがヒントを共有したり、質問をしたり、Anki MCPサーバーに関連するプロジェクトで協力したりできるさまざまなフォーラムやディスカッショングループがあります。
詳細
Anki MCP Server
An MCP server implementation that connects to a locally running Anki, providing card review and creation.
This server is designed to work with the Anki desktop app and the Anki-Connect add-on.
Make sure you have the add-on installed before using.
Resources
- anki://search/deckcurrent
- Returns all cards from current deck
- Equivalent of
deck:current
in Anki
- anki://search/isdue
- Returns cards in review and learning waiting to be studied
- Equivalent of
is:due
in Anki
- anki://search/isnew
- Returns all unseen cards
- Equivalent of
is:new
in Anki
Tools
-
update_cards
- Marks cards with given card IDs as answered and gives them an ease score between 1 (Again) and 4 (Easy)
- Inputs:
answers
(array): Array of objects withcardId
(number) andease
(number) fields
-
add_card
- Creates a new card in the Default Anki deck
- Inputs:
front
(string): Front of cardback
(string): Back of card
-
get_due_cards
- Returns n number of cards currently due for review
- Inputs:
num
(number): Number of cards
-
get_new_cards
- Returns n number of cards from new
- Inputs:
num
(number): Number of cards
Development
Install dependencies:
npm install
Build the server:
npm run build
For development with auto-rebuild:
npm run watch
Configuration
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"anki-mcp-server": {
"command": "/path/to/anki-mcp-server/build/index.js"
}
}
}
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspector
The Inspector will provide a URL to access debugging tools in your browser.
サーバー設定
{
"mcpServers": {
"anki-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/metorial/mcp-container--scorzeth--anki-mcp-server--anki-mcp-server",
"node ./build/index.js"
],
"env": {}
}
}
}