J
jasperket/clanki
An MCP server for connecting LLMs with Anki Flashcards
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
我们没有从该仓库取到可核对的安装命令,也没有公开的远端端点。这两样都没有时,我们不出配置——编一条出来比不给更糟。 各客户端的接法 →
- 来源明细
- 收录自 abordage/awesome-mcp 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
- 收录与活跃
- 收录于 2026-11-05 · 最近见到 2026-11-14 · 共见到 10 次 · 被 10 个来源列出
- 评分构成
- 综合分 1,003 · 10 个来源 · mcp
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
我们收录于 2026-11-05;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
# Clanki - Claude's Anki Integration
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
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
1. Clone this repository:
bash
git clone https://github.com/yourusername/clanki.git
cd clanki
2. Install dependencies:
bash
npm install
3. Build the project:
bash
npm run build
## Setup
1. Make sure Anki is running and the AnkiConnect plugin is installed and enabled.
2. Note the absolute path to build/index.js in 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.js will not resolve.
bash
# 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.
3. Register the server with your client, using one of the sections below.
4. Verify the server can reach Anki. With Anki running:
bash
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 claudedesktopconfig.json:
| Platform | Location |
| macOS | ~/Library/Application Support/Claude/claudedesktopconfig.json |
| Windows | %APPDATA%\Claude\claudedesktopconfig.json |
| Linux | ~/.config/Claude/claudedesktopconfig.json |
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
installation. On Windows, write the path with either forward slashes or escaped
backslashes (C:\\Users\\you\\clanki\\build\\index.js) — a single backslash is
an escape character in JSON and will not parse.
Restart Claude Desktop afterwards; it reads the config only at startup.
### Claude Code
bash
claude mcp add clanki -- node /absolute/path/to/clanki/build/index.js
The -- is required. It marks the end of claude mcp add's own options, so
everything after it is treated as the command to launch. Without it the
arguments are parsed as options to claude mcp add itself and you get a broken
entry rather than an error.
By default this registers the server for you in the current project only
(--scope local). Two other scopes are available:
| Scope | What it does |
| --scope local | You, in this project only. The default. |
## 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
1. Clone this repository:
bash
git clone https://github.com/yourusername/clanki.git
cd clanki
2. Install dependencies:
bash
npm install
3. Build the project:
bash
npm run build
## Setup
1. Make sure Anki is running and the AnkiConnect plugin is installed and enabled.
2. Note the absolute path to build/index.js in 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.js will not resolve.
bash
# 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.
3. Register the server with your client, using one of the sections below.
4. Verify the server can reach Anki. With Anki running:
bash
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 claudedesktopconfig.json:
| Platform | Location |
| macOS | ~/Library/Application Support/Claude/claudedesktopconfig.json |
| Windows | %APPDATA%\Claude\claudedesktopconfig.json |
| Linux | ~/.config/Claude/claudedesktopconfig.json |
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
installation. On Windows, write the path with either forward slashes or escaped
backslashes (C:\\Users\\you\\clanki\\build\\index.js) — a single backslash is
an escape character in JSON and will not parse.
Restart Claude Desktop afterwards; it reads the config only at startup.
### Claude Code
bash
claude mcp add clanki -- node /absolute/path/to/clanki/build/index.js
The -- is required. It marks the end of claude mcp add's own options, so
everything after it is treated as the command to launch. Without it the
arguments are parsed as options to claude mcp add itself and you get a broken
entry rather than an error.
By default this registers the server for you in the current project only
(--scope local). Two other scopes are available:
| Scope | What it does |
| --scope local | You, in this project only. The default. |
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/jasperket-clanki/)
- 来源
- awesome · https://github.com/jasperket/clanki
- 按领域浏览
- MCP 服务
- 收录来源
- 10 个独立来源
- 收录于
- 今天
同类推荐
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。