LABSCO SUMMARY
Named tools for the common path, raw RPC for the rest.
AnkiConnect's API is large and mostly things you will never ask for, so wrapping only the note operations keeps the tool list short — and leaving the raw request exposed means the long tail is still reachable without waiting for someone to wrap it. The catch is structural: Anki has to be open, because the plugin is the only way in.
What it is
A Node server that talks to the AnkiConnect plugin on your Anki desktop app. It defines concrete tools for the common note operations, and keeps the base RPC request available so anything AnkiConnect can do is still reachable even when there is no purpose-built tool for it.
What you get
- Named tools for the key requests that manipulate notes
- The underlying RPC request kept as a tool, so arbitrary AnkiConnect calls stay available
- Everything goes to
127.0.0.1:8765on your own machine — the plugin's local endpoint, nothing remote
Requirements
The Anki desktop app with the AnkiConnect plugin installed, and Anki running whenever you want to use the server — the tools reach it over 127.0.0.1:8765. Clone the repository and build it: corepack enable then yarn install and yarn build, or the npm equivalent. Point your client at node with the path to the built index.js. No account and no key.
Setup effort
Build from source — clone the repository and build it, then point your client at the built dist/index.js
USE CASES
Turning something you just learned into a card
Add the note from the conversation rather than switching to Anki.
Fixing a card that has a mistake in it
Find the note and edit it in place.
Doing something the wrapped tools don't cover
Send the AnkiConnect request directly through the raw RPC tool.
BEFORE YOU INSTALL
What to know first
Requires
node on PATH
Where it runs
Both documented setups run the server on your machine.
INSTALLATION
Connect your client
Clone the repository and build it, then point your client at the built dist/index.js. This one is built from source rather than installed with a single command.
Server setup
Build from source
git clone https://github.com/sergey-mamulchenko/anki-mcp.git
cd anki-mcp
corepack enable
yarn install
yarn buildnode
node <YOUR_PATH_TO_ANKI_MCP>/dist/index.jsMCP Clients
Claude Desktop
{
"mcpServers": {
"anki-connect": {
"command": "node",
"args": [
"<YOUR_PATH_TO_ANKI_MCP>/dist/index.js"
]
}
}
}Claude Desktop — Windows
{
"mcpServers": {
"anki-connect": {
"command": "node.exe",
"args": [
"C:\\anki-mcp\\dist\\index.js"
]
}
}
}