Anki MCP Server
MCP server by arielbk Community
Connects Anki flashcard collections to AI assistants such as Claude through the Model Context Protocol. It lets users quiz themselves, create and organize cards, and manage decks from a chat. Aimed at Anki users who want conversational study help.
Install Anki MCP Server
Built from the published package, never by AI.
claude mcp add anki-mcp -- npx -y @arielbk/anki-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"anki-mcp": {
"args": [
"-y",
"@arielbk/anki-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"anki-mcp": {
"args": [
"-y",
"@arielbk/anki-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"anki-mcp": {
"args": [
"-y",
"@arielbk/anki-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add anki-mcp -- npx -y @arielbk/anki-mcp{
"mcpServers": {
"anki-mcp": {
"args": [
"-y",
"@arielbk/anki-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add anki-mcp npx -y @arielbk/anki-mcpGemini 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 block.
About
Anki MCP is an MCP server that connects an Anki flashcard collection to AI assistants such as Claude. It uses the yanki-connect library to talk to the AnkiConnect plugin running in Anki on localhost port 8765 by default. The assistant can search and manage cards, decks, note types and media, and run quiz sessions.
The server runs over stdio by default and can also run as a localhost Streamable HTTP server. Setup needs Anki with the AnkiConnect add-on and Node.js 18 or newer. It suits people who want to study, create cards and review analytics through conversation with an AI assistant. The source is MIT licensed.
Written from the project's README and checked against it.
Tools it gives your assistant
Manage FlashcardsCreate, update, delete, and search flashcards.Study SessionsRun interactive quiz sessions, manage card scheduling, and track cards due for review.Manage DecksCreate and organize decks, move cards around, and configure deck settings.Get AnalyticsReview study statistics, review history, and learning patterns.Manage ModelsCustomize note types, add fields, modify templates, and style cards.Anki OperationsHandle sync, media files, imports and exports, and other utility operations.Get Media FileRetrieve images, audio, and other media from the Anki collection.
What you need
- Anki desktop application
- AnkiConnect add-on (code 2055492159)
- Node.js 18 or newer
- MCP client such as Claude Desktop
Try asking
- Quiz me on Japanese vocabulary I haven't seen in 3 days
- Create flashcards about photosynthesis with diagrams
- Tag all my chemistry cards with 'exam-prep'
Good to know
- Anki must be running with AnkiConnect installed, or the server fails to connect.
- Auto-launching Anki on macOS is supported by the underlying library but not exposed in this server.
- AnkiConnect version 25.2.25.0 or newer is recommended for full compatibility.
- Images may not display in the UI, though AI assistants can analyze them.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: 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 need to be running?
Yes. The source says Anki must be running with AnkiConnect enabled, and the server fails to connect if AnkiConnect is not accessible.
Can it change my cards and decks?
Yes. The tools cover creating, updating, and deleting flashcards, moving cards, managing decks, and bulk operations such as tagging.
Which MCP clients does it work with?
The source recommends Claude Desktop and says the server works with any MCP-compatible client, including MCP Inspector and Cline.
How do I install Anki MCP Server?
In Claude Code run claude mcp add anki-mcp -- npx -y @arielbk/anki-mcp. 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 a community project by arielbk, not verified by a company domain.
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 83 of 100. Grades: maintenance A, licence A, quality C. 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.
