
jasperket/clanki
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
jasperket/clanki - кандидат на сервер MCP, импортированный из https://github.com/jasperket/clanki.
Обзор
jasperket/clanki - кандидат на сервер MCP, импортированный из https://github.com/jasperket/clanki.
Обзор (машинный перевод)
Сервер MCP, который позволяет помощникам ИИ, таким как Клод, взаимодействовать с колодами карточек Anki через протокол Model Context Protocol (MCP).
Особенности
Создание и управление колодами Anki Создание базовых заметок с передним/задним содержимым Создать заметки Cloze Создайте много заметок одновременно в одном запросе Прикрепить изображения и аудио с URL - автоматически загружается и встраивается Поддержка форматирования HTML в полях заметок Обновление существующих заметок и удаление клонов
- Добавлять и управлять тегами
- Поиск заметок с синтаксисом запросов Анки
- Удалить заметки навсегда
- Просмотр содержимого колоды и информация для заметок Полная интеграция с AnkiConnect
Предпосылки
- Анки установлена и работает Плагин AnkiConnect установлен в Anki Node.js 16 или выше
##Установка
-
Клонировать это хранилище:
-
Установить зависимости:
3.Создать проект:
Настройка
-
Убедитесь, что Anki работает, а плагин AnkiConnect установлен и включен.
-
Обратите внимание на абсолютный путь к
build/index.jsв вашем кланки-чекауте. Каждый Клиент ниже нуждается в этом, и никто из них не принимает относительный путь. Выполняйте задания из каталога, так что./build/index.jsне будет решать.
В Windows это печатает обратные слэши.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
Clanki - Claude’s Anki Integration
An MCP server that enables AI assistants like Claude to interact with Anki flashcard decks through the Model Context Protocol (MCP).
Features
- Create and manage Anki decks
- Create basic notes with front/back content
- Create cloze notes
- Create many notes at once in a single request
- Attach images and audio from URLs - automatically downloaded and embedded
- HTML formatting support in note fields
- Update existing notes and cloze deletions
- Add and manage tags
- Search for notes with Anki’s query syntax
- Delete notes permanently
- View deck contents and note information
- Full integration with AnkiConnect
Prerequisites
- Anki installed and running
- AnkiConnect plugin installed in Anki
- Node.js 16 or higher
Installation
- Clone this repository:
git clone https://github.com/yourusername/clanki.git
cd clanki
- Install dependencies:
npm install
- Build the project:
npm run build
Setup
-
Make sure Anki is running and the AnkiConnect plugin is installed and enabled.
-
Note the absolute path to
build/index.jsin your clanki checkout. Every client below needs it, and none of them accept a relative path — they do not run from your project directory, so./build/index.jswill not resolve.# from the clanki directory node -e "console.log(require('path').resolve('build/index.js'))"On Windows this prints backslashes. They are fine as-is for the two CLI commands below, but must be doubled or swapped for forward slashes if you paste the path into a JSON config — see the Claude Desktop note.
-
Register the server with your client, using one of the sections below.
-
Verify the server can reach Anki. With Anki running:
curl -X POST http://127.0.0.1:8765 -d "{\"action\":\"version\",\"version\":6}"
A working setup replies {"result": 6, "error": null}. If it does not, see
docs/troubleshooting.md — connection failures are by
far the most common problem, and AnkiConnect’s default configuration needs no
changes.
Claude Desktop
Edit claude_desktop_config.json:
| Platform | Location |
|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
| Linux | ~/.config/Claude/claude_desktop_config.json |
{
"mcpServers": {
"clanki": {
"command": "node",
"args": ["/absolute/path/to/clanki/build/index.js"]
}
}
}
Replace /absolute/path/to/clanki with the actual path to your clanki
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →Конфигурация
{
"mcpServers": {
"clanki": {
"command": "node",
"args": ["/absolute/path/to/clanki/build/index.js"]
}
}
}