Anki MCP Server

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Connects to a locally running Anki application through the Anki-Connect add-on, providing tools for card review and creation, including retrieving due and new cards, updating card ease ratings, and adding new flashcards.

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 와 동일합니다.

도구

  • 업데이트_카드
    • 주어진 카드 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을 제공합니다.

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

로컬에서 실행 중인 Anki에 연결하여 모델 컨텍스트 프로토콜을 통해 카드 검토 및 생성을 가능하게 하는 서버 구현입니다.

  1. Resources
    1. Tools
      1. Development
        1. Configuration
          1. Debugging

        Appeared in Searches

        ID: 1srmm6tbie