
MCP-AnkiConnect
一个 MCP 服务器,集成了 Claude 和 Anki 抽认卡,允许用户直接通过对话复习到期卡片并创建新的抽认卡。 (Alternatively, a slightly more formal translation:) 一个 MCP 服务器,整合了 Claude 与 Anki 闪卡功能,使用户能够通过对话直接复习待复习的卡片并创建新的闪卡。 **Explanation of Choices:** * **MCP Server:** I kept this as "MCP 服务器" as it's likely a specific technical term that's best left untranslated unless more context is provided. * **Claude:** Left as "Claude" as it's a proper noun (the name of the AI). * **Anki flashcards:** Translated as "Anki 抽认卡" (chōu rèn kǎ) or "Anki 闪卡" (shǎn kǎ). Both are common translations for "flashcards" in the context of Anki. "抽认卡" is slightly more formal. * **Review due cards:** Translated as "复习到期卡片" (fùxí dàoqí kǎpiàn) or "复习待复习的卡片" (fùxí dài fùxí de kǎpiàn). Both convey the meaning of reviewing cards that are due for review. The second option is slightly more explicit. * **Create new flashcards:** Translated as "创建新的抽认卡" (chuàngjiàn xīnde chōu rèn kǎ) or "创建新的闪卡" (chuàngjiàn xīnde shǎn kǎ). * **Directly through conversation:** Translated as "直接通过对话" (zhíjiē tōngguò duìhuà). The choice between the two options depends on the desired level of formality and explicitness.
Tools
list_decks_and_notes
Get all decks and note types with their fields
num_cards_due_today
Get the number of cards due today with an optional deck filter
get_examples
Get example notes from Anki to guide your flashcard making. Limit the number of examples returned and provide a sampling technique: - random: Randomly sample notes - recent: Notes added in the last week - most_reviewed: Notes with more than 10 reviews - best_performance: Notes with less than 3 lapses - mature: Notes with interval greater than 21 days - young: Notes with interval less than 7 days
fetch_due_cards_for_review
Fetch cards that are due for learning and format them for review. Takes optional arguments: - deck: str - Filter by specific deck. - limit: int - Maximum number of cards to fetch (default 5). More than 5 is overwhelming for users. - today_only: bool - If true, only fetch cards due today, else fetch cards up to 5 days ahead.
submit_reviews
Submit multiple card reviews to Anki. Args: reviews: List of dictionaries containing: - card_id (int): The ID of the card being reviewed - rating (str): The rating to give the card, one of: "wrong" - Card was incorrect (Again) "hard" - Card was difficult (Hard) "good" - Card was good (Good) "easy" - Card was very easy (Easy)
add_note
Add a flashcard to Anki. Ensure you have looked at examples before you do this, and that you have got approval from the user to add the flashcard. Args: deckName: str - The name of the deck to add the flashcard to. modelName: str - The name of the note type to use. fields: dict - The fields of the flashcard to add. tags: List[str] - The tags to add to the flashcard.
README
mcp-ankiconnect MCP 服务器
通过 MCP 将 Claude 对话与 AnkiConnect 连接,使间隔重复学习变得像“让我们复习今天的闪卡”或“为这个制作闪卡”一样简单。
组件
工具
该服务器实现了三个工具:
-
num_cards_due_today
: 获取今天到期的卡片数量- 可选
deck
参数,用于按特定牌组过滤 - 返回所有牌组或指定牌组中到期卡片的数量
- 可选
-
get_due_cards
: 获取需要复习的卡片- 可选
limit
参数(默认值:5)来控制卡片数量 - 可选
deck
参数,用于按特定牌组过滤 - 可选
today_only
参数(默认值:true)仅显示今天的卡片 - 以 XML 格式返回卡片,包含问题和答案
- 可选
-
submit_reviews
: 提交已复习卡片的答案- 接受包含
card_id
和rating
的reviews
列表 - 评分: "wrong"(错误), "hard"(困难), "good"(良好), "easy"(简单)
- 返回已提交复习的确认信息
- 接受包含
配置
前提条件
- Anki 必须运行并安装 AnkiConnect 插件 (插件 ID 2055492159)
由于 AppSleep 功能,AnkiConnect 在 Mac 上可能运行缓慢,因此请禁用 Anki 的 AppSleep。 为此,请在终端中运行以下命令。
defaults write net.ankiweb.dtop NSAppSleepDisabled -bool true defaults write net.ichi2.anki NSAppSleepDisabled -bool true defaults write org.qt-project.Qt.QtWebEngineCore NSAppSleepDisabled -bool true
安装
快速开始
-
在 Anki 中安装 AnkiConnect 插件:
- 工具 > 插件 > 获取插件...
- 输入代码:
2055492159
- 重启 Anki
-
配置 Claude Desktop:
在 MacOS 上:
~/Library/Application\ Support/Claude/claude_desktop_config.json
在 Windows 上:%APPDATA%/Claude/claude_desktop_config.json
添加以下配置:
{ "mcpServers": { "mcp-ankiconnect": { "command": "uv", "args": ["run", "--with", "mcp-ankiconnect", "mcp-ankiconnect"] } } }
-
重启 Anki 和 Claude desktop
调试
由于 MCP 服务器通过 stdio 运行,因此调试可能具有挑战性。 为了获得最佳的调试体验,我们强烈建议使用 MCP Inspector。 首先,克隆存储库并安装依赖项:
git clone https://github.com/samefarrar/mcp-ankiconnect.git
cd mcp-ankiconnect
uv sync
您可以通过 mcp CLI 启动 MCP Inspector:
uv run mcp dev mcp_ankiconnect/server.py
启动后,Inspector 将显示一个 URL,您可以在浏览器中访问该 URL 以开始调试。
推荐服务器
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Apple MCP Server
通过 MCP 协议与 Apple 应用(如“信息”、“备忘录”和“通讯录”)进行交互,从而使用自然语言发送消息、搜索和打开应用内容。
MCP DuckDB Knowledge Graph Memory Server
一个为 Claude 设计的记忆服务器,它使用 DuckDB 存储和检索知识图谱数据,从而增强了对话的性能和查询能力,并能持久保存用户信息。

Notion API MCP Server
使用 Notion API 实现高级待办事项列表管理和内容组织,支持创建数据库、动态筛选和协作任务跟踪等功能。

Airtable MCP Server
一个模型上下文协议(Model Context Protocol,MCP)服务器,通过 Claude Desktop 或其他 MCP 客户端,为以编程方式管理 Airtable 数据库、表格、字段和记录提供工具。
Todoist MCP Server
将 Claude 与 Todoist 集成,实现自然语言任务管理,支持使用日常语言进行项目和版块组织、任务创建、更新、完成和删除。
Curri MCP Server
通过管理文本笔记、提供笔记创建工具以及使用结构化提示生成摘要,从而实现与 Curri API 的交互。
Inkdrop MCP Server
通过模型上下文协议将 Inkdrop 笔记应用与 Claude AI 集成,允许 Claude 在您的 Inkdrop 数据库中搜索、阅读、创建和更新笔记。
Verodat MCP Server
一个 MCP 服务器,集成了 Verodat 的数据管理功能和像 Claude Desktop 这样的人工智能系统,使用户能够管理账户、工作区和数据集,并能对他们的数据执行人工智能驱动的查询。
Notion MCP Server
通过将 Notion API 作为 LLM 的工具公开,从而实现与 Notion 的交互。这使得可以通过自然语言无缝地进行读取、创建、更新和删除 Notion 页面等操作。