Anki MCP Server
未认领A Model Context Protocol (MCP) server that enables AI assistants to interact with Anki, the spaced repetition flashcard application.
01 / 选择客户端
03 / 添加配置
claude mcp add --transport stdio 'ankimcp-anki-mcp-server' -- 'npx' '-y' '@ankimcp/anki-mcp-server'04 / 在客户端中确认
打开客户端的 MCP 设置,确认服务器已连接并列出工具。复制配置不代表连接成功。
更多AI & ML服务器
浏览完整目录安全概况
已认领和已认证的服务器每周接受一次静态扫描,显示代码能触及的范围(外部服务、环境变量、shell 命令、代理配置目录)以及带有已知公告的依赖。认领此列表即可获得。 安全概况的工作原理
40 个工具中显示 40 个
文档中列出的工具 (40)
内容来自项目文档。服务器握手不会验证每个工具的说明或行为。
addModelField
Add a new field to an existing note type (appended at the end or inserted at a specific position)
addNote
Create a single note with specified fields and tags
addNotes
Batch-create up to 100 notes sharing a deck and model (partial success supported)
addTags
Add space-separated tags to specified notes
changeDeck
Move cards to a different deck (created if it doesn't exist)
clearUnusedTags
Remove orphaned tags not used by any notes (destructive)
collection_stats
Aggregated statistics across all decks with per-deck breakdown and collection-wide card-state counts
createDeck
Create a new empty deck (supports Parent::Child, max 2 levels)
createModel
Create a new note type with custom fields, card templates, and CSS (e.g., RTL models)
deckStats
Get comprehensive statistics for a single deck (study queue, true card-state counts, ease/interval distributions)
deleteMediaFile
Remove a media file from collection.media (destructive)
deleteNotes
Delete notes and all associated cards (destructive, requires confirmation)
findNotes
Search for notes using Anki query syntax (deck:, tag:, is:due, etc.)
get_cards
Get cards with flexible filtering by state (due, new, learning, suspended, buried) and deck
get_due_cards
Get cards that are due for review, optionally filtered by deck
getMediaFilesNames
List media files in collection.media, optionally filtered by pattern
getTags
Get all tags in the collection (use first to avoid duplication)
guiBrowse
Open the Card Browser and search for cards
guiSelectCard
Select a specific card in the Card Browser
guiSelectedNotes
Get IDs of notes currently selected in the Card Browser
listDecks
List all decks, optionally with per-deck study-queue statistics
modelFieldNames
Get field names for a specific note type
modelNames
List all available note types/models
modelStyling
Get CSS styling information for a note type
modelTemplates
Get the card templates (Front and Back HTML) for a note type
notesInfo
Get detailed information about notes (fields, tags, CSS styling)
present_card
Show a card for review with its question/front side
rate_card
Rate card performance (Again, Hard, Good, Easy) and schedule the next review
removeModelField
Remove a field from an existing note type (deletes its content from all notes; requires explicit confirmation)
removeTags
Remove space-separated tags from specified notes
renameModelField
Rename a field in an existing note type (card templates referencing the old name must be updated separately)
replaceTags
Rename a tag across specified notes
repositionModelField
Change the position of a field within an existing note type
retrieveMediaFile
Download a media file as base64 content
review_stats
Review history analysis (temporal patterns, retention metrics, study streaks)
storeMediaFile
Upload media from base64 data, an absolute file path, or a URL
sync
Sync with AnkiWeb to pull latest data and push changes
updateModelStyling
Update the CSS styling for an existing note type (applies to all its cards)
updateModelTemplates
Update the card templates (Front and Back HTML) for an existing note type (applies to all its cards)
updateNoteFields
Update existing note fields (CSS-aware, supports HTML content)