anki-mcp-server
by nailuoGG·★ 239·Score 51
An MCP server for Anki flashcards via AnkiConnect, allowing LLMs to create, manage, and sync cards.
Overview
The Anki MCP server provides comprehensive tools and resources for interacting with Anki flashcards through the Model Context Protocol. It supports both basic and cloze note types, batch operations, deck management, and syncing with AnkiWeb. The server integrates with various LLM clients including Claude Desktop, Cline, and Claude Code, making it versatile for different AI workflows. The codebase is well-maintained with TypeScript implementation, comprehensive testing, and documentation for both developers and end-users.
Try asking AI
After installing, here are 3 things you can ask your AI assistant:
When to choose this
Choose this server if you want to integrate Anki flashcard management into AI workflows, especially for automating note creation and deck management.
When NOT to choose this
Don't choose this if you're not using Anki or need alternative flashcard systems, as this server is specifically designed to interface with Anki via AnkiConnect.
Tools this server exposes
12 tools extracted from the READMElist_decksList all available Anki decks
create_deckCreate a new Anki deck
create_noteCreate a new note (Basic or Cloze)
batch_create_notesCreate multiple notes at once
search_notesSearch for notes using Anki query syntax
get_note_infoGet detailed information about a note
update_noteUpdate an existing note
delete_noteDelete a note
list_note_typesList all available note types
create_note_typeCreate a new note type
get_note_type_infoGet detailed structure of a note type
syncTrigger AnkiWeb sync
Comparable tools
Installation
Installation
Prerequisites
- Anki installed
- AnkiConnect add-on installed in Anki
Claude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"anki": {
"command": "npx",
"args": ["--yes", "anki-mcp-server"]
}
}
}Or with custom AnkiConnect port:
{
"mcpServers": {
"anki": {
"command": "npx",
"args": ["--yes", "anki-mcp-server", "--port", "8080"]
}
}
}Via Desktop Extension (.mcpb)
- Generate the .mcpb file:
npm run pack - Open Claude Desktop Settings → Extensions and drag the .mcpb file to install
Cline Configuration
Add to your VSCode settings cline_mcp_settings.json:
{
"mcpServers": {
"anki": {
"command": "npx",
"args": ["--yes", "anki-mcp-server"]
}
}
}Compare anki-mcp-server with
Last updated · Auto-generated from public README + GitHub signals.