Anki MCP Server — Claude Code MCP server: cards, decks, reviews
Wires Anki into an AI assistant: reviews, notes, decks and media over AnkiConnect. Handy for language learners and exam prep.
claude mcp add anki-mcp-server -- npx -y @ankimcp/anki-mcp-serverWhat Anki MCP Server does
The server turns AnkiConnect calls into MCP tools. An assistant can pull due cards, present them one at a time, take your rating and schedule the next appearance. Study flow stays conversational.
A second group covers content. Notes get created in bulk, found through Anki search syntax, edited field by field, moved between decks. Some tools reach into the desktop interface itself — read whatever note is selected, drop a local image into its front field.
Deck numbers need care. One set reflects today's queue after daily limits; another counts cards by state, ignoring due dates. They answer different questions.
Anki must be running with AnkiConnect enabled, otherwise the requests have nowhere to land. The authors point most people to the add-on with code 124672614, which runs the server inside Anki and skips Node.js entirely. Pick this repository when you need STDIO transport and your client spawns the server as a subprocess.
What it helps with
- run through due cards and record ratings
- build a batch of RTL-styled vocab notes
- attach a downloaded image to the active note
- move a next review date without logging a lapse
- count cards per state across a deck
Example prompts for the agent
- Quiz me on my Spanish deck: pull the due cards and go one by one
- Create 10 Arabic vocabulary notes with right-to-left styling
- Put the image from my Downloads folder on the front of the selected note
How to install Anki MCP Server
Platform CLI
claude mcp add anki-mcp-server -- npx -y @ankimcp/anki-mcp-serverPlatform CLI
codex mcp add anki-mcp-server -- npx -y @ankimcp/anki-mcp-serverConfig file
{
"mcpServers": {
"anki-mcp-server": {
"command": "npx",
"args": [
"-y",
"@ankimcp/anki-mcp-server"
]
}
}
}Config file
{
"servers": {
"anki-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ankimcp/anki-mcp-server"
]
}
}
}Platform CLI
gemini mcp add anki-mcp-server npx -y @ankimcp/anki-mcp-serverStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Anki MCP Server
How do I install Anki MCP Server in Claude Code?
Run claude mcp add anki-mcp-server -- npx -y @ankimcp/anki-mcp-server.
What does Anki MCP Server do?
It exposes Anki operations over MCP: syncing, fetching due cards, rating them, plus note, deck and media handling through AnkiConnect.
Should I use this server or the AnkiMCP add-on?
The add-on 124672614 runs inside Anki with no Node.js. This server fits clients that launch it as a subprocess over STDIO.