Anki MCP Server logo

Anki MCP Server

Manage Anki decks, notes, tags, and note types through AnkiConnect using MCP tools and resources.

Install Anki MCP Server

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "anki-mcp-server-2": {
      "command": "npx",
      "args": [
        "-y",
        "anki-mcp-server"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 16 tools correctly (Today).

Overview

anki-mcp-server connects MCP-compatible clients to Anki through the AnkiConnect add-on. It exposes tools for creating, searching, updating, tagging, and deleting notes, along with deck, tag, and note-type management. Read-only MCP resources provide collection metadata and note-type schemas. Use it when an agent needs to maintain an Anki collection, provided Anki, AnkiConnect, and Node.js 20.11 or newer are available.

Use cases

  • Create decks and flashcards from natural-language prompts
  • Batch-import notes into an Anki collection
  • Search and update notes using Anki query syntax
  • Apply or remove tags across selected notes
  • Inspect note-type schemas before creating notes

Key features

  • Deck creation and listing
  • Single and batch note creation
  • Anki query-based note search
  • Note field and tag management
  • Note-type inspection and creation
  • MCP resources for decks, tags, and schemas

Tools16

What Anki MCP Server lets your agent do. Expand a tool for its parameters.

Verified live~2.2k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

What it can do

From the 16 tools this server returned when we ran it; 16 declare their own safety hints.

Can delete or modify data · 4Makes network requests · 1Read-only tools · 12
Network at startup3 connections
Files written at startupNone
Install scriptsprepare
npm provenanceSigned build
Package age588 days
Maintainers1

Observed 2026-10-29 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6h ago via OSV.dev · anki-mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars252Stargazers on the source repository.
Last commit2d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed16Callable tools this server registers over MCP.

How Anki MCP Server works

What anki-mcp-server does

anki-mcp-server gives language-model clients an MCP interface to Anki through AnkiConnect. It covers common collection-management tasks, including creating decks and notes, importing notes in batches, searching with Anki query syntax, inspecting note details, modifying fields or tags, and deleting notes.

The server also exposes operations for note types. Agents can list available models, inspect a model’s structure, and create new note types. Tag management includes listing collection tags and adding or removing tags across one or more notes. A sync tool can request an AnkiWeb synchronization after explicit confirmation.

MCP resources complement the action tools with collection metadata: all decks and IDs, all tags, all note types, schemas for every note type, and the schema for one named note type.

How it works

The MCP process communicates with AnkiConnect, which must be installed and reachable from the same environment or configured endpoint. Agents call namespaced tools such as anki_create_note, anki_search_notes, and anki_update_note. Older unprefixed names remain available for existing clients, but new integrations should use the anki_* names.

anki_check_connection can verify that AnkiConnect is reachable before other operations begin. The server accepts a custom AnkiConnect port through the --port command-line option. The default client configuration launches the package with npx --yes anki-mcp-server over standard input and output.

Synchronization is intentionally gated by a confirm: true argument because a full sync can merge or overwrite local and remote collections. A successful tool response means Anki accepted the request; a blocking dialog in Anki can leave the operation queued without delivering data to AnkiWeb.

Setup and configuration

Install Anki and the AnkiConnect add-on, then ensure Node.js 20.11 or newer is installed. For Claude Desktop, add the server to claude_desktop_config.json:

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

For a non-default AnkiConnect port, append "--port", "8080" to the argument list. Cline uses the same command structure in its cline_mcp_settings.json configuration. Claude Desktop users can also build and install the packaged .mcpb extension with npm run mcpb; the package is intended for Desktop Extensions.

Claude Code can install the associated Anki skill with npx skills add nailuoGG/anki-mcp-server@anki. For direct development, install dependencies with npm install, build with npm run build, and run tests with npm test.

Do not use the .mcpb package as the stdio process: its Electron metadata on standard output interferes with MCP communication. Use npx -y anki-mcp-server for that mode.

Tools and capabilities

Available namespaced tools include:

  • Check AnkiConnect reachability and trigger AnkiWeb synchronization.
  • List or create decks, optionally returning deck IDs.
  • List collection tags, then add or remove tags on multiple notes.
  • Create one note or batch-create several notes.
  • Search notes with Anki query syntax and retrieve detailed note information.
  • Update note fields or tags and delete one or more notes.
  • List note types, create a type, and inspect its detailed structure.

Resources include anki://decks/all, anki://tags/all, anki://note-types/all, anki://note-types/all-with-schemas, and anki://note-types/{modelName}. The repository also includes an MCP Inspector command, npm run inspector, for viewing messages, invoking tools, and examining logs during development.

Limitations and notes

Anki and the AnkiConnect add-on are required dependencies. The sync operation can affect both local and remote collections, so it requires explicit confirmation. The server’s packaged Desktop Extension and its direct stdio invocation are separate usage paths; the latter is the appropriate choice when launching it as a normal MCP process.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Anki MCP Server

anki-mcp-server is an MCP server that connects AI clients to Anki through the AnkiConnect add-on. Its main tools create, search, update, tag, and delete notes; manage decks and note types; list collection metadata; and request AnkiWeb synchronization with confirmation.

Install Anki, add AnkiConnect, and use Node.js 20.11 or newer, then configure an MCP client to run `npx --yes anki-mcp-server`. Claude Desktop can alternatively install a generated `.mcpb` bundle from its Extensions settings.

Yes, anki-mcp-server works with Claude Desktop through an `mcpServers` entry that runs `npx --yes anki-mcp-server`. You can also generate the Desktop Extension bundle with `npm run mcpb` and install it from Claude Desktop’s Extensions settings.

Yes, configure anki-mcp-server in Cline’s `cline_mcp_settings.json` using the same `npx --yes anki-mcp-server` command. Add `--port` followed by the port number when AnkiConnect is listening on a non-default port.

Pass the alternate port with the `--port` argument, such as `npx --yes anki-mcp-server --port 8080`. The same argument can be added to the Claude Desktop or Cline MCP configuration.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAnki MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/anki-mcp-server-2?style=directory)](https://allmcps.com/mcp/anki-mcp-server-2)
HTML Embed
<a href="https://allmcps.com/mcp/anki-mcp-server-2"><img src="https://allmcps.com/api/badge/anki-mcp-server-2?style=directory" alt="Anki MCP Server on AllMCPs" /></a>