
amidvidy/anki-mcp
Data science & ML이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
Anki를 위한 MCP 서버, claude 부호로 주로 vibecoded.
개요
모델 Context Protocol (MCP)을 통해 Anki와 상호 작용하는 FastMCP 서버. 이 서버는 Anki 데크, 노트, 메모 유형 관리를위한 포괄적 인 도구를 제공하며 AI 전원 오디오 생성, 대량 작동 및 semantic 유사성 검색을 포함한 고급 기능을 제공합니다. 이 프로젝트는 강화된 기능을 제공하기 위하여 몇몇 외부 APIs도 통합합니다: - : Google의 Chirp 음성을 사용하여 텍스트에서 고품질 오디오 생성 - : flashcards 용 발음 오디오 파일 생성 - : HD 품질 음성 자연 발음, 특히 중국어 우수 - : GOOGLE CLOUD API KEY 환경 변수 - : Anki 데스크톱 응용과의 인터페이스 - : 모든 Anki 작업 (create/read/update notes, manage decks, etc.) - : HTTP API를 통해 Anki 기능을 완료 - : AnkiConnect add-on 설치해야하며 Anki는 실행해야합니다. 2. 명세.
개요(AI 번역)
모델 Context Protocol (MCP)을 통해 Anki와 상호 작용하는 FastMCP 서버. 이 서버는 Anki 데크, 노트, 메모 유형 관리를위한 포괄적 인 도구를 제공하며 AI 전원 오디오 생성, 대량 작동 및 semantic 유사성 검색을 포함한 고급 기능을 제공합니다.
외부 APIs 사용
이 프로젝트는 강화된 기능을 제공하기 위하여 몇몇 외부 APIs도 통합합니다:
구글 클라우드 텍스트 - 투 - 슬립 API
-Purpose: Google’s Chirp 음성을 사용하여 텍스트에서 고품질 오디오 생성
-Use Case: flashcards를 위한 발음 오디오 파일 생성
-Features: 자연적인 발음을 가진 HD 질 음성, 중국을 위해 특히 우수한
-Setup: GOOGLE_CLOUD_API_KEY 환경변수
AnkiConnect API (로컬)
-Purpose: Anki 데스크톱 응용 프로그램 인터페이스 -Use Case: 모든 Anki 작업 (create/read/update Notes, Recover Deck 등) -Features: HTTP API를 통해 Anki 기능을 완료 -Setup: AnkiConnect 애드온을 설치해야 하며 Anki는 실행해야 합니다.
설치
-
uv를 사용하여 의존도를 설치하십시오:
-
Anki가 설치된 AnkiConnect add-on과 함께 실행되는 것을 확인합니다:
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Anki MCP Server
A FastMCP server for interacting with Anki through the Model Context Protocol (MCP). This server provides comprehensive tools for managing Anki decks, notes, and note types, with advanced features including AI-powered audio generation, bulk operations, and semantic similarity search.
External APIs Used
This project integrates with several external APIs to provide enhanced functionality:
Google Cloud Text-to-Speech API
- Purpose: High-quality audio generation from text using Google’s Chirp voices
- Use Case: Generate pronunciation audio files for flashcards
- Features: HD quality voices with natural pronunciation, especially excellent for Chinese
- Setup: Requires
GOOGLE_CLOUD_API_KEYenvironment variable
AnkiConnect API (Local)
- Purpose: Interface with Anki desktop application
- Use Case: All Anki operations (create/read/update notes, manage decks, etc.)
- Features: Complete Anki functionality via HTTP API
- Setup: AnkiConnect add-on must be installed and Anki must be running
Setup
-
Install dependencies using uv:
uv sync -
Make sure Anki is running with the AnkiConnect add-on installed:
- In Anki, go to Tools > Add-ons > Get Add-ons
- Enter code:
2055492159 - Restart Anki
-
(Optional) Set up API key for audio generation:
# For audio generation with Google Cloud TTS export GOOGLE_CLOUD_API_KEY='your-google-cloud-api-key-here' -
Run the server:
uv run server.py
Claude Desktop Integration
To use this MCP server with Claude Desktop, add the following configuration to your claude_desktop_config.json file:
Configuration Location
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Configuration Example
{
"mcpServers": {
"anki-mcp": {
"command": "uv",
"args": [
"--directory",
"/path/to/your/anki-mcp/",
"run",
"server.py"
],
"env": {
"GOOGLE_CLOUD_API_KEY": "your-google-cloud-api-key-here"
}
}
}
}
Setup Steps
- Ensure dependencies are installed: Make sure you’ve run
uv syncin your anki-mcp directory - Find your config file at the location above (create it if it doesn’t exist)
- Update the path: Replace
/path/to/your/anki-mcp/with the actual path to your anki-mcp directory - Add your API key:
- Replace
your-google-cloud-api-key-herewith your actual Google Cloud API key (for audio generation)
- Replace
- Restart Claude Desktop for the changes to take effect
Important Notes
- Make sure Anki is running with the AnkiConnect add-on before using the tools
- The
uvcommand will automatically handle the Python environment and dependencies - Make sure
uvis installed on your system (curl -LsSf https://astral.sh/uv/install.sh | sh)
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"anki-mcp": {
"command": "uv",
"args": [
"--directory",
"/path/to/your/anki-mcp/",
"run",
"server.py"
],
"env": {
"GOOGLE_CLOUD_API_KEY": "your-google-cloud-api-key-here"
}
}
}
}