Anki Connect

Manage Anki flashcards and decks via the AnkiConnect plugin.

Anki Connect MCP server

An MCP server for the Anki Connect plugin on the desktop.

This MCP server defines some concrete tools for key requests to manipulate the notes while keeping the base RPC request for arbitrary calls.

How to connect

Before installing the MCP and using it, make sure you have Anki desktop app installed with AnkiConnect plugin. This plugin allows to send requests on 127.0.0.1:8765 this MCP server is using.

Whenever you want to interact with MCP server, Anki desktop app should be running.

Then:

  1. clone this repo
  2. run corepack enable on Node.JS if you want to use yarn, then yarn install and yarn build

Or install it via any other package manager, such as npm.

Claude Desktop

You can set up local MCP server for Claude desktop

Go to File -> Settings -> Developer, discover the config and add an MCP server. Adjust paths for the cloned repo project.

Linux/Mac

{
  "mcpServers": {
    "anki-connect": {
      "command": "node",
      "args": ["/Documents/anki-mcp/disk/index.js"]
    }
  }
}

Windows:

{
  "mcpServers": {
    "anki-connect": {
      "command": "node.exe",
      "args": ["C:\\anki-mcp\\dist\\index.js"]
    }
  }
}

Related Servers