Anki MCP Server
MCP server by ankimcp Verified · ankimcp.ai
Anki MCP Server lets AI assistants review Anki flashcards, create and edit notes, and manage decks, tags, media, and note types through AnkiConnect. It suits Anki users who want study sessions as a conversation with an AI tutor in clients such as Claude Desktop, Claude Code, or Cursor.
Install Anki MCP Server
Built from the published package, never by AI.
claude mcp add anki-mcp-server -- npx -y @ankimcp/anki-mcp-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"anki-mcp-server": {
"args": [
"-y",
"@ankimcp/anki-mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"anki-mcp-server": {
"args": [
"-y",
"@ankimcp/anki-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"anki-mcp-server": {
"args": [
"-y",
"@ankimcp/anki-mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add anki-mcp-server -- npx -y @ankimcp/anki-mcp-server{
"mcpServers": {
"anki-mcp-server": {
"args": [
"-y",
"@ankimcp/anki-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add anki-mcp-server npx -y @ankimcp/anki-mcp-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the anki-mcp-server block.
About
Anki MCP Server is a Model Context Protocol server that connects AI assistants to Anki, the spaced repetition flashcard app. It works through the AnkiConnect plugin. The assistant can fetch due cards, present them for review, record ratings, and reschedule or suspend cards. It can also search and edit notes, manage decks, tags, media files, and note types, and read statistics.
The server is available as an npm package and as an MCPB bundle for Claude Desktop. It supports STDIO transport for clients that launch it as a subprocess, such as Claude Desktop, Claude Code, and Cursor. The source says the separate AnkiMCP addon is the simpler path for most setups, especially HTTP, tunnel, or web-based clients. The project is aimed at people who want to study with an AI tutor that explains concepts and adapts to their learning style.
Written from the project's README and checked against it.
Tools it gives your assistant
syncSync with AnkiWeb to pull latest data and push changes.get_due_cardsGet cards due for review, optionally filtered by deck.present_cardShow a card for review with its question or front side.rate_cardRate a card Again, Hard, Good, or Easy and schedule the next review.addNotesBatch-create up to 100 notes sharing a deck and model.findNotesSearch for notes using Anki query syntax such as deck: and tag:.updateNoteFieldsUpdate existing note fields, with HTML content supported.storeMediaFileUpload media from base64 data, an absolute file path, or a URL.createModelCreate a note type with custom fields, card templates, and CSS.deckStatsGet statistics for a single deck, including true card-state counts.
What you need
- Anki with the AnkiConnect plugin installed
- Node.js 22.12.0 or later
Try asking
- Help me review my Spanish deck.
- Create 10 Arabic vocab cards with RTL styling.
- Import this image from my Downloads folder into the front of the selected note.
Good to know
- The source recommends the AnkiMCP addon for HTTP, tunnel, or web-based clients.
- GUI tools are meant for note editing and creation, not review sessions.
- Base64 image uploads are slow and token-heavy, so file paths or URLs are preferred.
- Running the test suite requires Node.js 24.9 or later.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Anki MCP Server
All alternatives →Connects a Zotero research library to AI assistants such as Claude and ChatGPT through the Model Context Protocol. It lets the assistant search, read, annotate and add papers, in local mode or through the web API. Built for researchers who want their references available in chat.
AgentDB is a vector memory database for AI agents. It stores embeddings, indexes and learning state in one file and exposes 41 MCP tools to clients such as Claude Code, Cursor and Cline.
Genkitx MCP is listed as a Genkit plugin for Model Context Protocol interoperability. The source is the main Genkit framework README and does not describe this plugin, so its features cannot be confirmed.
QMD is an on-device search engine for markdown notes, meeting transcripts and documentation. It combines BM25 keyword search, vector search and LLM reranking, and exposes an MCP server for AI assistants.
RuVector is a Rust native vector database that gives AI agents persistent memory and local semantic retrieval. Its npm package includes an MCP server for MCP compatible clients, and it suits developers building agent memory in Node.js, Python, or Rust.
Gives AI coding agents persistent memory, so each new session starts where the last one left off. Works with Claude Code, Codex, Cursor, OpenCode and 11 more agents.
Compare with Zotero MCP, Agentdb or Genkitx MCP
Anki MCP Server: common questions
Does Anki MCP Server need AnkiConnect?
Yes, the server uses the AnkiConnect plugin, with the default URL http://localhost:8765. The source also describes an AnkiMCP addon that runs the server inside Anki.
Which AI clients does it work with?
The source names Claude Desktop, Claude Code, and Cursor for STDIO transport. For web-based clients such as claude.ai and ChatGPT, the source recommends the addon instead.
Can it change card scheduling without logging a review?
Yes. forgetCards and setDueDate change scheduling without recording a review, while rate_card records one.
How do I install Anki MCP Server?
In Claude Code run claude mcp add anki-mcp-server -- npx -y @ankimcp/anki-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Anki MCP Server the official server?
Anki MCP Server is published by ankimcp.ai from its verified domain in the official MCP Registry.
Is Anki MCP Server free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Anki MCP Server safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Anki MCP Server?
Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.
Does Anki MCP Server work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
