Anki MCP Server logo

Anki MCP Server

by ethangillani

The Anki MCP Server enables LLMs to interact with Anki flashcard software through the AnkiConnect API. It allows for creating decks, adding notes, searching, and managing Anki content programmatically.

View on GitHub

Last updated: N/A

What is Anki MCP Server?

The Anki MCP Server is a Model Context Protocol server that acts as an intermediary between Large Language Models (LLMs) and the Anki flashcard software. It exposes Anki's functionalities through a standardized MCP interface, allowing LLMs to create, modify, and query Anki decks and notes.

How to use Anki MCP Server?

To use the server, first ensure Anki is running with the AnkiConnect add-on installed. Then, clone the repository, install dependencies, build the project, and start the server. Finally, connect your MCP-compatible client (e.g., Claude) to the server's endpoint to utilize the available tools for interacting with Anki.

Key features of Anki MCP Server

  • Create new decks in Anki

  • Add notes to existing decks

  • List available decks and note models

  • Search for notes using Anki's search syntax

  • Get detailed information about note models and their fields

  • Bulk add multiple notes at once

Use cases of Anki MCP Server

  • Automated flashcard creation from text

  • LLM-powered spaced repetition learning

  • Integrating Anki with AI-driven knowledge management systems

  • Programmatically managing and updating large Anki decks

FAQ from Anki MCP Server

Cannot connect to Anki?

Make sure Anki is running, AnkiConnect add-on is installed and working, and the AnkiConnect URL is correct (default: http://localhost:8765).

Permission issues with AnkiConnect?

AnkiConnect may prompt for permission when the server tries to add cards. Look for a popup in Anki.

What is the default AnkiConnect URL?

The default AnkiConnect URL is http://localhost:8765.

Where is the server configuration located?

The server configuration is in the config object in src/index.ts.

What API version does the server use for AnkiConnect?

The default API version is 6.