
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
ankimcp/anki-mcp-server-addon は [https://github.com/ankimcp/anki-mcp-server-addon. からインポートされた MCP サーバーの候補です
概要
ankimcp/anki-mcp-server-addon は [https://github.com/ankimcp/anki-mcp-server-addon. からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
モデルコンテキストプロトコルを介してAIアシスタントとAnkiをシームレスに統合
モデルコンテキストプロトコル(MCP)を介してAIアシスタントにコレクションを公開するAnkiアドオン。
これは何ですか?
アキエムシー サーバーは、Anki 内のローカル MCP サーバーを実行し、Claude のような AI アシスタントがフラッシュカードコレクションとやり取りできるようにします。 これにより、AIを活用した学習セッション、カード作成、および収集管理が可能になります。
ankimcp.ai プロジェクトの一部。
最初の実行に注意
最初に実行すると、PyPI から pydantic_core (~2MB) をダウンロードします。 pydantic core には、単一のアドオンファイルでバンドルできないプラットフォーム固有のバイナリ(Windows/macOS/Linux)が含まれているため、これは必須です。
第二のネイティブ依存関係であるrpdsは、同じ方法で処理されますが、それはほとんどダウンロードされません:Ankiは既に[rpds]を独自の[jsonschema]の特異的な依存として、そのアドオンはそれをインポートします。 ダウンロードは、インポートが失敗する稀有なインストールでのみキックします.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
AnkiMCP Server (Addon)
An Anki addon that exposes your collection to AI assistants via the Model Context Protocol (MCP).
What is this?
AnkiMCP Server runs a local MCP server inside Anki, allowing AI assistants like Claude to interact with your flashcard collection. This enables AI-powered study sessions, card creation, and collection management.
Part of the ankimcp.ai project.
Note on First Run
On first run, this addon downloads pydantic_core (~2MB) from PyPI. This is required because pydantic_core contains platform-specific binaries (Windows/macOS/Linux) that cannot be bundled in a single addon file.
A second native dependency, rpds (from rpds-py), is handled the same way — but it is almost never downloaded: Anki already ships rpds as a transitive dependency of its own jsonschema, so the addon just imports it. The download only kicks in on the rare install where that import fails. Both downloads are cached under Anki’s own data folder (outside the addon’s own folder, so it survives addon updates cleanly on every OS), falling back to the addon’s _cache/ directory when that location isn’t available — so either way they happen once, not on every launch. The old in-folder fallback cache is only ever removed once the outside-the-folder cache has proven itself usable (a successful load from it) and is never touched while a native module is still loaded from it — a failed first attempt (e.g. offline) leaves the old cache untouched rather than destroyed.
Features
- Local HTTP server - Runs on
http://127.0.0.1:3141/by default - Remote tunnel - Access your collection from anywhere via a public HTTPS URL
- MCP protocol - Compatible with any MCP client (Claude Desktop, etc.)
- Auto-start - HTTP server starts automatically when Anki opens
- Tunnel-friendly - Works with Cloudflare Tunnel, ngrok, or the built-in tunnel (exposing the HTTP server this way also requires extending the allowed hosts/origins)
- DNS-rebinding protection - The HTTP server validates
Host/Originheaders against a loopback allowlist by default; extend it for tunnel/reverse-proxy exposure - Optional API key - Require an
Authorization: Bearertoken on the HTTP transport viahttp_api_key(AnkiConnect-style; empty = disabled) - Toolbar indicator - A
● AnkiMCPitem in the top toolbar shows tunnel connection state at a glance (opt out viashow_toolbar_indicator)
インストール
npx mcp-remote http://127.0.0.1:3141設定
{
"mcpServers": {
"anki": {
"command": "npx",
"args": ["mcp-remote", "http://127.0.0.1:3141"]
}
}
}