Anki MCP Server

local-only server

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

Integrations

  • Allows interaction with Anki via AnkiConnect plugin, providing access to decks and note models, and enabling creation and management of Anki flashcard notes both individually and in bulk.

anki-mcp MCP 서버

AnkiConnect 플러그인을 통해 Anki와 통합하는 서버

AnkiConnect 플러그인을 통해 Anki와 통합되는 TypeScript 기반 MCP 서버입니다. 다음을 제공하여 핵심 MCP 개념을 보여줍니다.

  • URI를 사용하여 Anki 데크와 노트 모델을 나타내는 리소스
  • Anki 노트를 만들고 관리하기 위한 도구
  • AnkiConnect API와 통합

특징

자원

  • anki://decks/{id} URI를 통해 Anki 데크를 나열하고 액세스합니다.
  • anki://models/{id} URI를 통해 노트 모델을 나열하고 액세스합니다.
  • Anki 객체의 JSON 표현

도구

  • listDecks - 모든 데크의 이름을 가져옵니다
  • listModels - 모든 노트 모델의 이름을 가져옵니다.
  • getModel - 특정 노트 모델의 세부 정보를 가져옵니다.
  • addNote - 단일 노트 생성
    • 데크 이름, 모델 이름, 필드 및 태그를 지정하세요.
  • addNotes - 여러 개의 노트를 대량으로 생성
    • 지정된 매개변수로 여러 노트 생성

개발

종속성 설치:

지엑스피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": { "command": "node", "args": ["d:\\anki-mcp-server\\build\\index.js"] } } }

디버깅

MCP 서버는 stdio를 통해 통신하므로 디버깅이 어려울 수 있습니다. 패키지 스크립트로 제공되는 MCP Inspector를 사용하는 것이 좋습니다.

npm run inspector

검사기는 브라우저에서 디버깅 도구에 액세스할 수 있는 URL을 제공합니다.

-
security - not tested
A
license - permissive license
-
quality - not tested

AnkiConnect 플러그인을 통해 Anki와 통합되는 TypeScript 기반 서버를 사용하면 플래시카드 덱과 노트 모델을 관리하고 자연어를 사용하여 Anki 노트를 만들 수 있습니다.

  1. Features
    1. Resources
    2. Tools
  2. Development
    1. Installation
      1. Debugging
    ID: ft6bgijqf5