MCP.so
登录

Anki MCP Server

@nailuoGG

关于 Anki MCP Server

MCP server for Anki via AnkiConnect

基本信息

分类

其他

运行时

node

传输方式

stdio

发布者

nailuoGG

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "anki-mcp-server": {
      "command": "npx",
      "args": [
        "skills",
        "add",
        "nailuoGG/anki-mcp-server@anki"
      ]
    }
  }
}

工具

16

Check whether AnkiConnect is reachable

List all available Anki decks, optionally with deck IDs

Create a new Anki deck

List all tags currently used in the collection

Add tags to one or more notes

Remove tags from one or more notes

Create a new note

Create multiple notes at once

Search for notes using Anki query syntax

Get detailed information about a note

Update an existing note's fields and/or tags

Delete one or multiple notes

List all available note types

Create a new note type

Get detailed structure of a note type

Trigger AnkiWeb sync (fire-and-forget; success means Anki accepted the request, not that AnkiWeb received the data; a blocking dialog in Anki can silently keep the sync queued)

概览

What is Anki MCP Server?

A Model Context Protocol (MCP) server that enables LLMs to interact with Anki flashcard software through the AnkiConnect add-on. It bridges AI agents and Anki for creating, searching, updating, and deleting flashcards and decks.

How to use Anki MCP Server?

Install Anki and the AnkiConnect add-on, then configure your MCP client (Claude Desktop, Cline, etc.) to launch the server via npx --yes anki-mcp-server. Optionally specify a custom AnkiConnect port with --port. For Claude Desktop, you can also install a packaged .mcpb extension. Claude Code users can add the Anki skill with npx skills add nailuoGG/anki-mcp-server@anki.

Key features of Anki MCP Server

  • 16 tools for Anki operations (deck, note, tag, sync management)
  • Readable resources exposing decks, tags, and note type schemas
  • Supports AnkiConnect at default or custom ports
  • Legacy unprefixed tool names remain for backward compatibility
  • Automated CI/CD publishing to NPM and MCP Registry
  • Packaged as a Desktop Extension (.mcpb) for one-click Claude Desktop install

Use cases of Anki MCP Server

  • Create new Anki decks and add basic or cloze deletion cards
  • Search, update, and delete existing notes programmatically
  • Batch create multiple notes in one request
  • Add or remove tags from notes for organization
  • Trigger AnkiWeb sync from an LLM agent

FAQ from Anki MCP Server

What prerequisites does Anki MCP Server require?

Anki must be installed with the AnkiConnect add-on, and Node.js 20.11 or newer is required.

Does Anki MCP Server support authentication or alternative transports?

No authentication is mentioned. It communicates with AnkiConnect over HTTP (stdio is used for MCP transport). No other transports are described.

Where does my card data live?

All data resides in your local Anki collection. The server does not store or transmit data externally, except when you trigger AnkiWeb sync.

What is the limitation of the sync tool?

The sync tool is fire-and-forget; a success response means Anki accepted the request, not that AnkiWeb received the data. A blocking dialog in Anki can keep the sync queued silently.

Can I use the .mcpb packaged version as the MCP server?

No—do not use the .mcpb packaged version as the MCP server because it outputs Electron metadata to stdout, which breaks the MCP stdio protocol. Use npx -y anki-mcp-server instead.

评论

其他 分类下的更多 MCP 服务器