Anki MCP Server
Anki MCP 서버
로컬로 실행 중인 Anki에 연결하여 카드 검토 및 생성 기능을 제공하는 MCP 서버 구현입니다.
이 서버는 Anki 데스크톱 앱 과 Anki-Connect 애드온과 함께 작동하도록 설계되었습니다.
사용하기 전에 애드온이 설치되어 있는지 확인하세요.
자원
anki://search/deckcurrent
현재 덱의 모든 카드를 반환합니다.
Anki에서
deck:current와 동일함
anki://search/isdue
검토 및 학습 중인 카드를 반환하여 공부를 기다립니다.
Anki에서
is:due동일합니다.
anki://search/isnew
보이지 않는 모든 카드를 반환합니다
Anki에서
is:new와 동일합니다.
Related MCP server: Anki MCP Server
도구
업데이트_카드
주어진 카드 ID가 있는 카드를 답변으로 표시하고 1(다시)에서 4(쉬움) 사이의 쉬움 점수를 부여합니다.
입력:
answers(배열):cardId(숫자) 및ease(숫자) 필드가 있는 객체 배열
카드 추가
기본 Anki 덱에 새 카드를 만듭니다.
입력:
front(문자열): 카드 앞면back(문자열): 카드 뒷면
카드_만기_지불_카드
현재 검토 예정인 n개의 카드를 반환합니다.
입력:
num(숫자): 카드의 개수
새 카드를 받으세요
새로운 카드에서 n개의 카드를 반환합니다.
입력:
num(숫자): 카드의 개수
개발
종속성 설치:
지엑스피1
서버를 빌드하세요:
npm run build자동 재빌드를 사용한 개발의 경우:
npm run watch구성
Claude Desktop과 함께 사용하려면 서버 구성을 추가하세요.
MacOS의 경우: ~/Library/Application Support/Claude/claude_desktop_config.json Windows의 경우: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"anki-mcp-server": {
"command": "/path/to/anki-mcp-server/build/index.js"
}
}
}디버깅
MCP 서버는 stdio를 통해 통신하므로 디버깅이 어려울 수 있습니다. 패키지 스크립트로 제공되는 MCP Inspector를 사용하는 것이 좋습니다.
npm run inspector검사기는 브라우저에서 디버깅 도구에 액세스할 수 있는 URL을 제공합니다.
Available Tools
4 toolsadd_cardA
Create a new flashcard in Anki for the user. Must use HTML formatting only. IMPORTANT FORMATTING RULES:
Must use HTML tags for ALL formatting - NO markdown
Use for ALL line breaks
For code blocks, use with inline CSS styling
Example formatting:
Line breaks:
Code:
Lists: and tags
Bold:
Italic:
Inputs: front (required), back (required).
get_due_cardsB
Returns a given number (num) of cards due for review.
Inputs: num (required).
get_new_cardsB
Returns a given number (num) of new and unseen cards.
Inputs: num (required).
update_cardsA
After the user answers cards you've quizzed them on, use this tool to mark them answered and update their ease
Inputs: answers.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose with no overlap: add_card creates new flashcards, get_due_cards retrieves cards due for review, get_new_cards fetches unseen cards, and update_cards marks answered cards and updates their ease. The four tools cover different stages of the flashcard lifecycle without any ambiguity.
All tool names follow a consistent verb_noun pattern (add_card, get_due_cards, get_new_cards, update_cards) using snake_case throughout. The naming is predictable and readable, with clear action-object relationships that align with their functions.
With 4 tools, this server is well-scoped for its purpose of managing Anki flashcards. Each tool earns its place by covering essential operations: creation, retrieval of due/new cards, and updating after reviews. The count is neither too sparse nor bloated for the domain.
The tool set provides strong coverage of core flashcard workflows: creating cards, retrieving cards for review, and updating them after answers. A minor gap is the lack of tools for deleting or editing existing cards, but agents can still function effectively with the provided operations.
Maintenance
Related MCP Connectors
Remote MCP server for saving, searching, syncing, and managing Teak cards.
A Model Context Protocol server for Wix AI tools
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- AlicenseAqualityBmaintenanceA Model Context Protocol server that enables LLMs to interact with Anki flashcard software through AnkiConnect, allowing for creation and management of flashcards, decks, and note types.16446 npm254MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that allows LLMs to interact with Anki flashcard software, enabling functions like creating decks, adding notes, searching cards, and managing flashcard content through natural language.1MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables interaction with Anki flashcards through AnkiConnect, providing organized tools for managing decks, notes, cards, models, and media files.407MIT
- AlicenseCqualityBmaintenanceServer that enables programmatic interaction with Anki through the Model Context Protocol, allowing users to manage flashcards, decks, and review processes.344MIT