A Model Context Protocol server that bridges Claude AI with Anki flashcard app, allowing users to create and manage flashcards using natural language commands.
Read this in other languages: English, 한국어
A Model Context Protocol (MCP) server that connects Claude and Anki, allowing you to easily create flashcards using natural language.
anki-mcp-server acts as a bridge between Claude and the Anki app, enabling communication between them. This allows you to give natural language commands to Claude to create and manage Anki flashcards. For example, if you request "Add an easy Japanese vocabulary card to my Japanese deck," Claude will automatically create an appropriate card.
Tools > Add-ons > Get Add-ons
from the top menu2055492159
and click 'OK'# Clone the repository git clone https://github.com/dhkim0124/anki-mcp-server.git cd anki-mcp-server # Create and activate a virtual environment (optional) python -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate # Install required packages pip install -r requirements.txt
Modify the Claude Desktop configuration file to register the MCP server:
Claude Desktop configuration file location:
%APPDATA%\Claude\claude_desktop_config.json
~/Library/Application Support/Claude/claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
Add the following content to the configuration file:
{ "mcpServers": { "anki-mcp": { "command": "python", "args": ["path/anki_server.py"], "env": {} } } }
Replace path/anki_server.py
with the absolute path to your anki_server.py file.
Claude will interpret these requests and create appropriate cards in Anki through the MCP server.
http://localhost:8765
in your web browser to confirm you see the "AnkiConnect v.6" message.If you'd like to contribute to the project, fork the GitHub repository and submit a pull request. We welcome contributions in the following areas:
This project is distributed under the MIT License. See the LICENSE file for details.
For issues or questions, please contact us through GitHub issues.
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!