Selectively commit what you learn in conversation with an LLM to memory using a rigorous and proven learning framework
Full CRUD operations on flashcards and collections, with powerful search capabilities using Anki's native query syntax.
Works directly with Anki's stable pylib. No additional dependencies to manage or worry about.
Safe concurrent access to Anki collections with proper locking mechanisms.
Simple stdio-based communication - no HTTP ports or network configuration needed.
Can be installed as a native Anki addon for direct integration with your Anki installation.
Comprehensive documentation with examples for all features and use cases.
git clone https://github.com/listfold/ankimcp.git cd ankimcp uv sync # Test the installation uv run python test_server.py
Add the MCP server with user scope (available globally):
claude mcp add --transport stdio --scope user anki -- \ uv --directory /absolute/path/to/ankimcp run python -m ankimcp.mcp.stdio_server
Replace /absolute/path/to/ankimcp with the actual path.
Flags explained:
--transport stdio: Specifies stdio communication--scope user: Makes server available in all Claude Code sessions--: Separates Claude Code flags from server command
Verify configuration: claude mcp list
Edit your Claude Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"anki": {
"command": "uv",
"args": [
"run",
"python",
"-m",
"ankimcp.mcp.stdio_server"
],
"cwd": "/absolute/path/to/ankimcp"
}
}
}
Restart Claude Desktop after saving.