← Back to directory
A

Anki MCP Server

Community
Manage Anki flashcards through AnkiConnect.
Category
Other #353 of 678
Stars
★ 257 Very popular
Transport
stdio (local process)
Runtime
Node.js 20.11+
Credentials
No credential needed
Last commit
Tools
16
51FMRS · D

Provides tools for managing an Anki collection and triggering sync. It requires Anki, AnkiConnect, and a stdio MCP client. Write, delete, and sync operations can affect collection data, so account for the stated merge or overwrite risk before syncing.

Strongest · Setup experience 12/20 Weakest · Maintenance 7/20

Reliability
10/20
Security and permissions
10/20
Maintenance
7/20
Documentation
12/20
Setup experience
12/20
Why each score
Reliability 10/20
The README lists connection checks, note CRUD, resources, and sync, and says tests use a mocked AnkiConnect client while manual integration checks require a real Anki instance. This makes common paths plausible, but no test results or CI workflow contents are provided, so the init handshake, tool-list agreement with implementation, and error handling cannot be verified; under static calibration the score stays at or below 12.
Security and permissions 10/20
Tools can create, update, and delete notes and trigger AnkiWeb sync. The README says sync requires explicit confirmation and discloses possible collection merges or overwrites and that acceptance does not mean data was delivered. It does not establish whether other destructive actions require confirmation, or document permission scope and data flows, so points are deducted; the supplied material shows no red-line behavior.
Maintenance 7/20
The material gives version 0.3.0, describes a release workflow, declares an MIT license, and says the repository is not archived. It provides no evidence of commit history, recent releases, dependency updates, issue response, or a security contact. Stars do not contribute to this score.
Documentation 12/20
The README provides an npm launch command, stdio client configuration, a custom-port example, tool and resource lists, examples, and sync limitations; it also mentions testing and debugging approaches. Tool parameters, complete troubleshooting, platform compatibility, and data boundaries are thin, and the claimed capabilities are not verified by source code or test results in the supplied material.
Setup experience 12/20
The README specifies Node.js 20.11+, Anki, and AnkiConnect prerequisites, and gives an npx launch path plus a Cline configuration example. Users still need to install and run Anki and its add-on; cross-platform validation and execution evidence are absent, so full marks are not justified.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessUses the networkChanges third-party account dataConnects to a database

Best for

  • Users with Anki and AnkiConnect who want to manage a collection through a stdio MCP client.
  • Workflows that need Anki query searches or batch note creation.

Not for

  • Users without Anki and the AnkiConnect add-on installed and running.
  • Workflows that require AnkiWeb sync without explicit confirmation.

Required permissions

  • The server needs to connect to AnkiConnect and can read or modify decks, notes, tags, and note types through its tools.
  • Triggering AnkiWeb sync requires explicit confirmation.

Risks and side effects

  • Deleting notes or changing note content and tags modifies the Anki collection.
  • A full sync can merge or overwrite local and remote collections; an accepted request does not guarantee that data synced to AnkiWeb.

Setup

Before you start

Runtime:Node.js 20.11+

Install Anki, AnkiConnect, and Node.js 20.11 or newer. Add the provided configuration to an MCP client that supports stdio servers: use npx with arguments --yes anki-mcp-server. If AnkiConnect uses a different port, add --port and the port number to the arguments. The README provides the same configuration for Cline.

cline_mcp_settings.json
{"mcpServers":{"anki":{"command":"npx","args":["--yes","anki-mcp-server"]}}}

Shown for Cline. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "anki": {
      "command": "npx",
      "args": [
        "--yes",
        "anki-mcp-server"
      ]
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.anki]
command = "npx"
args = ["--yes", "anki-mcp-server"]

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add anki -- npx --yes anki-mcp-server

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

After starting the server, confirm anki_check_connection appears in your client's tool list. Call it and check that AnkiConnect is reachable; you can also ask the client to list all decks.

Troubleshooting

  1. Check that Anki is running and the AnkiConnect add-on is installed.
  2. Use the connection check tool to verify AnkiConnect reachability; configure --port if using a custom port.
  3. If an accepted sync does not complete, check whether Anki has a blocking dialog.

Things to try

Once connected, you can ask your AI assistant things like:

  • Check whether AnkiConnect is reachable and list all decks.
  • Create a card in the Programming deck with “What is a closure in JavaScript?” on the front and “A closure combines a function with its lexical environment.” on the back.
  • Search for notes containing JavaScript and add the review tag to the matching notes.

Tools 16

anki_check_connection read-only
Check whether AnkiConnect is reachable.
anki_list_decks read-only
List available decks, optionally including deck IDs.
anki_create_deck writes
Create a deck.
anki_list_tags read-only
List tags currently used in the collection.
anki_add_note_tags writes
Add tags to one or more notes.
anki_remove_note_tags writes
Remove tags from one or more notes.
anki_create_note writes
Create a note.
anki_batch_create_notes writes
Create multiple notes at once.
Show 8 more tools
anki_search_notes read-only
Search notes using Anki query syntax.
anki_get_note_info read-only
Get detailed information about a note.
anki_update_note writes
Update fields and/or tags on an existing note.
anki_delete_note destructive
Delete one or more notes.
anki_list_note_types read-only
List available note types.
anki_create_note_type writes
Create a note type.
anki_get_note_type_info read-only
Get the detailed structure of a note type.
anki_sync destructive
Trigger AnkiWeb sync; requires confirmation because a full sync can merge or overwrite local and remote collections. Success means Anki accepted the request, not that data reached AnkiWeb; a blocking dialog can leave sync queued.

Use cases

List decks, tags, and note types.
Create, search, update, or delete notes, including batch note creation.
Manage note tags or trigger AnkiWeb sync.

Supported clients

Cline

Listed from the project's documentation, not tested by this site.

Overview

Anki MCP Server lets large language models interact with Anki through AnkiConnect. Its tools query and manage decks, tags, notes, and note types, and can trigger AnkiWeb sync. Anki and the AnkiConnect add-on must be installed and running.

Similar servers

Source revision f06c751c8874 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/nailuogg-anki-mcp-server.svg)](https://followmcp.com/en/servers/nailuogg-anki-mcp-server)