Skip to main content
Glama

Anki MCP サーバー

ローカルで実行されている Anki に接続し、カードのレビューと作成を提供する MCP サーバー実装。

このサーバーは、Anki デスクトップ アプリおよびAnki-Connectアドオンで動作するように設計されています。

使用する前にアドオンがインストールされていることを確認してください。

リソース

  • アンキ://search/deckcurrent

    • 現在のデッキからすべてのカードを返します

    • Ankiのdeck:currentに相当するもの

  • アンキ://search/isdue

    • 復習と学習を待っているカードを返します

    • Ankiのis:dueに相当するもの

  • アンキ://search/isnew

    • 未表示のカードをすべて返す

    • Ankiのis:newに相当するもの

Related MCP server: Anki MCP Server

ツール

  • アップデートカード

    • 指定されたカード ID のカードを回答済みとしてマークし、1 (再回答) から 4 (簡単) までの容易さスコアを付与します。

    • 入力:

      • answers (配列): cardId (数値)とease (数値)フィールドを持つオブジェクトの配列

  • カードを追加

    • デフォルトの Anki デッキに新しいカードを作成します

    • 入力:

      • front (文字列): カードの表面

      • back (文字列): カードの裏面

  • 期限切れカードを取得する

    • 現在レビューが必要なカードのn枚数を返します

    • 入力:

      • num (数字): カードの枚数

  • 新しいカードを取得する

    • 新しいカードからn枚のカードを返す

    • 入力:

      • num (数字): カードの枚数

発達

依存関係をインストールします:

npm install

サーバーを構築します。

npm run build

自動リビルドを使用した開発の場合:

npm run watch

構成

Claude Desktop で使用するには、サーバー設定を追加します。

MacOS の場合: ~/Library/Application Support/Claude/claude_desktop_config.json Windows の場合: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "anki-mcp-server": {
      "command": "/path/to/anki-mcp-server/build/index.js"
    }
  }
}

デバッグ

MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。パッケージスクリプトとして提供されているMCP Inspectorの使用をお勧めします。

npm run inspector

インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Resources

Looking for Admin?

Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.

Appeared in Searches

Latest Blog Posts

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/scorzeth/anki-mcp-server'

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