MCP.so
Sign In

Anki MCP Server

@ethangillani

Basic information

Category

Other

License

MIT

Transports

stdio

Author

ethangillani

About Anki MCP Server

Anki MCP Server to allow LLMs to create and manage Anki decks via Anki Connect

Anki MCP Server config

No standard config provided

This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.

Repository

Anki MCP Server tools

7

Get a list of all decks in Anki

Get a list of all note models/types in Anki

Create a new deck in Anki

Get details about a specific note model/type

Add a single note to a deck

Add multiple notes at once

Search for notes using Anki's search syntax

Overview

What is Anki MCP Server?

Anki MCP Server is a Model Context Protocol (MCP) server that enables LLMs to interact with Anki flashcard software through the AnkiConnect API. It is for developers and users who want AI assistants to manage Anki decks, notes, and searches.

How to use Anki MCP Server?

Ensure Anki is running with the AnkiConnect add-on installed, then start the server with npm start and connect an MCP-compatible client (e.g., Claude). Configuration options like ankiConnectUrl can be modified in src/index.ts.

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

  • Automatically create flashcards from AI-generated content
  • Search and retrieve existing notes for review or merging
  • Bulk import new study material into an Anki deck
  • Manage deck and model structure through natural language commands

Frequently asked questions

1

What prerequisites are required?

Node.js v14+, Anki with the AnkiConnect add-on (code `2055492159`), and an MCP-compatible client are needed.

2

How do I install and configure the server?

Clone the repo, run `npm install` and `npm run build`, then start with `npm start`. Configuration such as `ankiConnectUrl` can be changed in `src/index.ts`.

3

What tools does the server provide?

The server offers tools: listDecks, listModels, createDeck, getModel, addNote, addNotes, and searchNotes.

4

Can the server connect to a remote Anki instance?

The default AnkiConnect URL is `http://localhost:8765`. No mention of remote connections; Anki must run locally.

5

What should I do if I cannot connect to Anki?

Ensure Anki is running, the AnkiConnect add-on is installed and working, and the AnkiConnect URL is correct (default `http://localhost:8765`). AnkiConnect may also prompt for permission when adding cards.

Comments

More Other MCP servers