by nailuoGG
MCP server for Anki via AnkiConnect
# Add to your Claude Code skills
git clone https://github.com/nailuoGG/anki-mcp-serverA Model Context Protocol (MCP) server that enables LLMs to interact with Anki flashcard software through AnkiConnect.
![]()
list_decks - List all available Anki deckscreate_deck - Create a new Anki deckcreate_note - Create a new note (Basic or Cloze)batch_create_notes - Create multiple notes at oncesearch_notes - Search for notes using Anki query syntaxget_note_info - Get detailed information about a noteupdate_note - Update an existing notedelete_note - Delete a notelist_note_types - List all available note typescreate_note_type - Create a new note typeget_note_type_info - Get detailed structure of a note typeanki://decks/all - Complete list of available decksanki://note-types/all - List of all available note typesanki://note-types/all-with-schemas - Detailed structure information for all note typesanki://note-types/{modelName} - Detailed structure information for a specific note typeThis repository supports Anthropic Desktop Extensions (MCPB). The easiest way to use this server in Claude Desktop is by installing the packaged .mcpb bundle.
.mcpb file locally using the provided script:npm run pack
.mcpb file in, then click Install.This validates manifest.json and outputs a .mcpb archive you can install as above. Learn more about Desktop Extensions in Anthropic's announcement: Desktop Extensions: One-click MCP server installation for Claude Desktop.
Add the server to your claude_desktop_config.json:
{
"mcpServers": {
"anki": {
"command": "npx",
"args": ["--yes", "anki-mcp-server"]
}
}
}
If your AnkiConnect is running on a different port, you can specify it using the --port parameter:
{
"mcpServers": {
"anki": {
"command": "npx",
"args": ["--yes", "anki-mcp-server", "--port", "8080"]
}
}
}
Add the server to your Cline MCP settings file inside VSCode's settings cline_mcp_settings.json
{
"mcpServers": {
"anki": {
"command": "npx",
"args": ["--yes", "anki-mcp-server"]
}
}
}
For Cline, you can also specify a custom port:
{
"mcpServers": {
"anki": {
"command": "npx",
"args": ["--yes", "anki-mcp-server", "--port", "8080"]
}
}
}
Create a distributable Desktop Ext...