
nailuogg/anki-mcp-server
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
nailuogg/anki-mcp-server — это кандидат на MCP-сервер, импортированный из https://github.com/nailuogg/anki-mcp-server.
Обзор
nailuogg/anki-mcp-server — это кандидат на MCP-сервер, импортированный из https://github.com/nailuogg/anki-mcp-server.
Обзор (машинный перевод)
Сервер Model Context Protocol (MCP), который позволяет LLM взаимодействовать с программным обеспечением для флеш-карт Anki через AnkiConnect.
Особенности
Инструменты
anki_check_connection- Проверьте, доступен ли AnkiConnectanki_list_decks- Перечислить все доступные колоды Anki, по желанию с идентификаторами колодыanki_create_deck- Создать новую колоду Ankianki_list_tags- Список всех тегов, используемых в коллекцииanki_add_note_tags- Добавить теги к одной или нескольким заметкамanki_remove_note_tags- Удаление тегов с одной или нескольких нотanki_create_note- Создать новую нотуanki_batch_create_notes- Создавать несколько нот одновременноanki_search_notes- Поиск заметок с использованием синтаксиса запросов Ankianki_get_note_info- Получить подробную информацию о запискеanki_update_note- Обновление полей и/или тегов существующей заметкиanki_delete_note- Удалить одну или несколько нотanki_list_note_types- Перечислить все доступные типы нотanki_create_note_type- Создать новый тип нотanki_get_note_type_info- Получить подробную структуру типа нотыanki_sync- Триггер синхронизации AnkiWeb; требуется{"confirm": true}, поскольку полная синхронизация может объединять или перезаписывать локальные и удалённые коллекции.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
Anki MCP Server
A Model Context Protocol (MCP) server that enables LLMs to interact with Anki flashcard software through AnkiConnect.
Features
Tools
anki_check_connection- Check whether AnkiConnect is reachableanki_list_decks- List all available Anki decks, optionally with deck IDsanki_create_deck- Create a new Anki deckanki_list_tags- List all tags currently used in the collectionanki_add_note_tags- Add tags to one or more notesanki_remove_note_tags- Remove tags from one or more notesanki_create_note- Create a new noteanki_batch_create_notes- Create multiple notes at onceanki_search_notes- Search for notes using Anki query syntaxanki_get_note_info- Get detailed information about a noteanki_update_note- Update an existing note’s fields and/or tagsanki_delete_note- Delete one or multiple notesanki_list_note_types- List all available note typesanki_create_note_type- Create a new note typeanki_get_note_type_info- Get detailed structure of a note typeanki_sync- Trigger AnkiWeb sync; requires{"confirm": true}because a full sync can merge or overwrite local and remote collections. Success means Anki accepted the request, not that AnkiWeb received the data; a blocking dialog in Anki can silently keep the sync queued
Legacy unprefixed tool names such as create_note and list_decks remain callable for existing clients, but new agent integrations should use the anki_* names.
Resources
anki://decks/all- Complete list of available decks with deck IDsanki://tags/all- Complete list of tagsanki://note-types/all- List of all available note typesanki://note-types/all-with-schemas- Detailed structure information for all note typesanki://note-types/{modelName}- Detailed structure information for a specific note type
Prerequisites
- Anki installed on your system
- AnkiConnect add-on installed in Anki
- Node.js 20.11 or newer
Configuration
Install via Desktop Extension (.mcpb)
This repository supports Anthropic Desktop Extensions (MCPB). The easiest way to use this server in Claude Desktop is by installing the packaged .mcpb bundle.
- Generate the
.mcpbfile locally using the provided script:
npm run mcpb
- Open Claude Desktop Settings → Extensions and drag the generated
.mcpbfile in, then click Install.
This validates manifest.json and outputs a .mcpb archive you can install as above. Learn more about Desktop Extensions in Anthropic’s announcement: Desktop Extensions: One-click MCP server installation for Claude Desktop.
Usage with Claude Desktop
Add the server to your claude_desktop_config.json:
{
"mcpServers": {
"anki": {
"command": "npx",
Установка
npx --yes anki-mcp-serverКонфигурация
{
"mcpServers": {
"anki": {
"command": "npx",
"args": ["--yes", "anki-mcp-server"]
}
}
}