
Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
ankimcp/anki-mcp-server-addon - кандидат на сервер MCP, импортированный из https://github.com/ankimcp/anki-mcp-server-addon.
Обзор
ankimcp/anki-mcp-server-addon - кандидат на сервер MCP, импортированный из https://github.com/ankimcp/anki-mcp-server-addon.
Обзор (машинный перевод)
Бесшовная интеграция Anki с ИИ-помощниками через протокол Model Context
Приложение Anki, которое предоставляет вашу коллекцию помощникам ИИ через протокол Model Context Protocol (MCP).
##Что это такое?
AkiMCP Сервер запускает локальный MCP-сервер внутри Anki, что позволяет помощникам ИИ, таким как Клод, взаимодействовать с вашей коллекцией карточек. Это позволяет проводить учебные сессии на основе ИИ, создавать карты и управлять сбором.
Проект Ankimcp.ai.
##Примечание в первом туре
При первом запуске это дополнение загружает pydantic_core (~ 2 МБ) из PyPI. Это необходимо, потому что pydantic core содержит специфические для платформы двоичные файлы (Windows/macOS/Linux), которые не могут быть объединены в один аддонный файл.
Вторая нативная зависимость, rpds (от rpds-py), обрабатывается таким же образом, но почти никогда не загружается: Анки уже отгружает rpds как транзитивную зависимость от своего jsonschema, поэтому аддон просто импортирует его. Загрузка только начинается на редкой установке, где этот импорт не удается.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
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"]
}
}
}