NA

nietus/anki-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

44 stars 13 forks 质量 84 趋势 8MIT

nietus/anki-mcp 是从 https://github.com/nietus/anki-mcp. 导入的 MCP 服务器候选

概览

nietus/anki-mcp 是从 https://github.com/nietus/anki-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

通过与Claude(或任何MCP客户端)交流,学习和管理你的Anki收藏。AnkiConnect上的35个工具:在聊天中被测定,了解截止日期和记忆情况,找出你经常忘记的卡片,批量创建并清理笔记,暂停整组卡片直到你想要取回它们。

你可以问什么

  • “我今天需要学习什么?”→每副牌的应付计数、连胜记录、本周复习。
  • “用西班牙语牌组测10张答题卡来测答我。”→题一题一题,评分后记录在Anki中,与下一个间歇时间一起。
  • “我总是弄错哪些牌?帮我改一下。”→吸血鬼,他们的复习记录,并重写你批准。
  • “暂停所有标记为HSK5的内容,直到我考试,方便恢复。”→名暂停,恢复了那些卡片,排程依然完整。
  • “把这篇文章变成我的生物牌组中的填空卡。”→重复检查的批量添加。
  • “给这副牌中没有音频的卡牌添加音频。”→批量使用 Azure TTS。
  • “将标记为grammar的卡牌移到新的子牌组”/“将标签todo改名为review]”/“将我的积压卡牌分散到接下来的两周”。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

anki-mcp

Study and manage your Anki collection by talking to Claude (or any MCP client). 35 tools over AnkiConnect: get quizzed in chat, see what is due and how your retention is going, find the cards you keep forgetting, create and clean up notes in bulk, and pause whole groups of cards until you want them back.

What you can ask

  • “What do I have to study today?” → due counts per deck, streak, reviews this week.
  • “Quiz me on 10 due cards from my Spanish deck.” → one question at a time, graded, and recorded in Anki with the next interval.
  • “Which cards do I keep getting wrong? Help me fix them.” → leeches, their review history, and rewrites you approve.
  • “Suspend everything tagged HSK5 until my exam, and make it easy to bring back.” → named pause that restores exactly those cards, scheduling intact.
  • “Turn this article into cloze cards in my Biology deck.” → duplicate-checked bulk add.
  • “Add audio to every card in this deck that doesn’t have it.” → Azure TTS in bulk.
  • “Move the cards tagged grammar to a new subdeck” / “rename the tag todo to review” / “spread my backlog over the next two weeks”.

Bulk changes can be previewed with a dry run, deleting always needs a confirmation step, and when Anki is closed the assistant is told to ask you to open it instead of failing silently.

Install

You need Node.js 18+, Anki running, and the AnkiConnect add-on (code 2055492159).

Claude Desktop

Download anki-mcp.mcpb from the latest release and drag it into Settings → Extensions. That’s it.

Claude Code

claude mcp add anki --scope user -- npx -y github:nietus/anki-mcp

Cursor and other MCP clients

Add this to the client’s MCP configuration:

{
  "mcpServers": {
    "anki": {
      "command": "npx",
      "args": ["-y", "github:nietus/anki-mcp"]
    }
  }
}

On Windows, if the client cannot start npx directly, use "command": "cmd" with "args": ["/c", "npx", "-y", "github:nietus/anki-mcp"].

From source

git clone https://github.com/nietus/anki-mcp
cd anki-mcp
npm install
npm run build

Then point your client at node /path/to/anki-mcp/build/client.js. To build the Claude Desktop bundle yourself, run npm run pack:mcpb (output in dist/anki-mcp.mcpb).

Configuration

All environment variables are optional. Put them in a .env file in the project folder or pass them through your MCP client.

Variable Default Purpose
在 GitHub 查看完整 README

安装

npx -y github:nietus/anki-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "anki": { "command": "npx", "args": ["-y", "github:nietus/anki-mcp"] } } }