Skip to main content
Glama

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 tools
add_cardA

Create a new flashcard in Anki for the user. Must use HTML formatting only. IMPORTANT FORMATTING RULES:

  1. Must use HTML tags for ALL formatting - NO markdown

  2. Use for ALL line breaks

  3. For code blocks, use with inline CSS styling

  4. 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

    A3.5/5.0

    Scored across 4 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    Appeared in Searches