Japanese Vocab Anki MCP Server
A Model Context Protocol server that enables language models to interact with Anki flashcard decks programmatically, with specialized features for Japanese language learning including vocabulary import, sample sentence generation, and spaced repetition review.
README
Japanese Vocab Anki MCP Server
A Model Context Protocol server implementation for interacting with Anki decks programmatically. This server allows Language Models to interact with Anki through a standardized interface, with special support for Japanese language learning.
This is vibe-coded with Cursor with Claude 3.5 Sonnet.
Features
- List available decks
- View cards in decks
- Add new cards
- Review cards with spaced repetition
- Import Japanese vocabulary with readings and meanings
- Add sample sentences to Japanese vocabulary cards
- Track review history and learning progress
End-to-End Example: Japanese Vocabulary Study with Claude
Here's a complete workflow showing how to use Claude to enhance your Japanese vocabulary cards with sample sentences.
Step 1: Generate Fill-in-the-Blank Exercises
First, ask Claude to create practice exercises using the study_japanese_vocab_prompt:

Claude will look through your recently reviewed vocabulary and create contextual sentences with blanks to test your understanding.
Step 2: Convert to Sample Sentences
Next, use the vocab_sentences_json_prompt to convert these sentences into a structured format:
Claude will transform the sentences into a JSON dictionary mapping each vocabulary word to its sample sentences.
Step 3: Update Anki Cards
Finally, use the update_notes_with_sentences tool to add these sentences to your Anki cards:

The sentences will be added to the reading field of each vocabulary card, providing more context for your studies.
Results in Anki
After the update, your cards will include the new sample sentences:

This workflow helps you:
- Practice vocabulary in context through fill-in-the-blank exercises
- Add natural example sentences to your cards
- Build a more comprehensive understanding of each word's usage
Installation
- Clone this repository:
git clone https://github.com/vionwinnie/jap-vocab-anki-mcp-server.git
cd jap-vocab-anki-mcp-server
Usage
-
Make sure Anki is not running (to avoid database locks)
-
Set the path to your Anki collection (optional):
export ANKI_COLLECTION_PATH="/path/to/your/collection.anki2"
- Run the server:
python -m anki_mcp.server
Available Resources
anki://decks- List all available Anki decksanki://deck/{deck_name}/cards- List all cards in a specific deckanki://recent/reviewed- View cards reviewed in the last 24 hoursanki://recent/learned- View cards learned (graduated from new) in the last 24 hours
Available Tools
Basic Card Management
add_card(deck_name: str, front: str, back: str)- Add a new card to a deckreview_card(card_id: int, ease: int)- Review a card with a specific ease (1-4)get_card_history(card_id: int)- Get detailed review history for a specific card
Japanese Vocabulary Features
import_japanese_vocab(csv_path: str, deck_name: str, tags: str = None)- Import Japanese vocabulary from CSVupdate_notes_with_sentences(vocab_sentences: Dict[str, List[str]], deck_name: str = "Try! N3 Vocab")- Add sample sentences to vocabulary notes
Review History
get_deck_review_history(deck_name: str)- Get review history for all cards in a deck within the past 24 hours
Available Prompts
create_deck_prompt(deck_name: str)- Get help creating a new deckreview_history_prompt()- Get help analyzing review historystudy_japanese_vocab_prompt()- Get help with Japanese vocabulary studyvocab_sentences_json_prompt()- Generate JSON dictionary mapping vocab to sample sentences
Japanese Note Type Requirements
The server expects a note type called "Japanese (recognition)" with the following fields:
- Expression (Japanese word)
- Meaning (English meaning)
- Reading (with furigana and sample sentences)
License
MIT License
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。