A
securityA
licenseA
qualityA server implementation that connects to a locally running Anki, enabling card review and creation through the Model Context Protocol.
Last updated -
4
40
JavaScript
MIT License
Provides tools for managing Anki flashcards and decks, including creating and updating cards, managing note types, searching for cards, retrieving due and new cards, and handling card reviews programmatically through the AnkiConnect plugin.
Anki 的 MCP 服务器。该服务器允许通过模型上下文协议 (MCP) 与 Anki 进行交互。它允许用户以编程方式管理抽认卡、卡片组和复习流程。
强烈建议在本地运行,因为 anki connect 只能在本地运行
package.json
中的prepare
脚本会在安装后自动运行构建。如果您需要手动构建:要调试工具,请使用
服务器提供以下与 Anki 交互的工具:
update_cards
:cardId
(数字)和ease
(数字,1-4)。add_card
:<br>
<pre style="background-color: transparent; padding: 10px; border-radius: 5px;">
<ol>
和<li>
<strong>
<em>
fields
:(对象)一个对象,其中键是字段名称(例如“汉字”,“拼音”),值是其 HTML 内容。modelName
:(字符串)要使用的 Anki 笔记类型(模型)的名称。deckName
:(可选字符串)要添加卡片的牌组名称。默认为当前牌组或“默认”。tags
:(可选字符串数组)要添加到注释的标签列表。get_due_cards
:num
(数字)。get_new_cards
:num
(数字)。get-deck-names
:find-cards
:query
(字符串,例如'deck:Default -tag:test'
或'"deck:My Deck" tag:important'
)。要过滤空字段,请使用'-FieldName:_*'
(例如'-Hanzi:_*'
)。update-note-fields
:noteId
(数字), fields
(对象,例如, {"Front": "New Q", "Back": "New A"}
)。create_deck
:deckName
(字符串)。bulk_update_notes
:notes
数组,其中每个注释都有noteId
(数字)和fields
(对象)。get_model_names
:get_model_details
:modelName
(字符串)。get_deck_model_info
:deckName
(字符串)。deckName
、 status
(例如“single_model_found”、“multiple_models_found”、“no_notes_found”、“deck_not_found”)以及条件modelName
(字符串)或modelNames
(字符串数组)的对象。add_note_type_field
:modelName
(字符串), fieldName
(字符串)。remove_note_type_field
:modelName
(字符串), fieldName
(字符串)。rename_note_type_field
:modelName
(字符串)、 oldFieldName
(字符串)、 newFieldName
(字符串)。reposition_note_type_field
:modelName
(字符串)、 fieldName
(字符串)、 index
(数字)。update_note_type_templates
:modelName
(字符串)、 templates
(对象,例如, {"Card 1": {"Front": "html", "Back": "html"}}
)。update_note_type_styling
:modelName
(字符串), css
(字符串)。create_model
:modelName
(字符串)、 fieldNames
(字符串数组)、 cardTemplates
(对象数组,每个对象包含Name
、 Front
、 Back
HTML 字符串)、 css
(可选字符串)、 isCloze
(可选布尔值,默认为 false)、 modelType
(可选字符串,默认为“标准”)。add_bulk
:notes
数组,其中每个注释对象具有:fields
:(对象)一个对象,其中键是字段名称,值是其 HTML 内容。modelName
:(字符串)此注释使用的 Anki 注释类型(模型)的名称。deckName
:(可选字符串)此笔记对应的 deck 名称。默认为“Default”。tags
:(可选字符串数组)此注释的标签列表。更多信息可以在这里找到Anki Integration | Smithery
You must be authenticated.
通过模型上下文协议实现与 Anki 进行编程交互的服务器,允许用户管理抽认卡、卡片组和审查过程。
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nietus/anki-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server