- Home
- MCP servers
- Anki
Anki
- python
6
GitHub Stars
python
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"dhkim0124-anki-mcp-server": {
"command": "python",
"args": [
"path/anki_server.py"
]
}
}
}anksi MCP server bridges Claude and Anki, enabling you to issue natural language commands to Claude to create and manage Anki flashcards. It provides a practical workflow to turn spoken or typed intents into Anki actions without manual card entry.
How to use
This MCP server lets Claude communicate with the Anki app through the AnkiConnect integration. After you configure and start the server, you can ask Claude to create, summarize, or organize flashcards using natural language. For example, you can ask Claude to add a language-learning card to a specific deck or to generate a set of history timeline cards, and the MCP server will handle translating that request into actions in Anki.
Recommended usage pattern: start Anki with AnkiConnect installed, launch Claude Desktop, ensure the MCP server is registered in Claude Desktop’s configuration, and then issue natural language commands to Claude. The MCP server will relay requests to Anki and return results or confirmations back to Claude.
How to install
Prerequisites: Python 3.8 or higher, Anki 2.1.x or higher, AnkiConnect add-on, and Claude Desktop (or an environment with access to Claude API). Ensure Anki is running in the background while using the MCP server.
Step 1 — Set up Anki and AnkiConnect: Install Anki, then install the AnkiConnect add-on from Anki by going to Tools > Add-ons > Get Add-ons and entering the code 2055492159, then restart Anki.
Step 2 — Install anki-mcp-server: Open a terminal and run the following commands to clone the repository, set up a virtual environment (optional), and install dependencies.
# 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
Configuration
Claude Desktop needs to know how to run the MCP server. Use the provided example to register a local server that runs the Python script responsible for handling MCP requests.
Code snippet to add to Claude Desktop configuration (as shown in the README):
{
"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.