anki-mcp
Provides tools to create and manage Anki cards, including creating decks, adding basic and cloze cards, batch-creating cards, searching, updating, and deleting cards via AnkiConnect.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@anki-mcpAdd a card to my Spanish deck: 'Hola' means 'Hello'."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
anki-mcp
A thin Model Context Protocol (MCP) adapter that lets AI assistants (Claude Code, Hermes Agent, etc.) create and manage Anki cards directly — via AnkiConnect.
No custom AI app. The AI stays the intelligence layer; this server is just a bridge to Anki.
Claude Code / Hermes / ChatGPT
│ MCP (stdio)
▼
anki-mcp server
│ AnkiConnect HTTP (localhost:8765)
▼
Anki Desktop + AnkiConnect add-on
│ sync
▼
AnkiWeb ──► Anki mobile (iOS/Android)Features
Tool | Description |
| List all decks with card counts |
| Create a deck if it doesn't exist |
| Basic front/back card |
| Cloze deletion card ( |
| Batch-create many cards at once |
| Full-text search (Anki query syntax) |
| Update a card's front/back by note ID |
| Delete a card by note ID |
Related MCP server: Anki MCP Server
Setup
1. Install Anki Desktop
Download and install from https://apps.ankiweb.net/. Start it once and sync with your AnkiWeb account so mobile sync works.
2. Install the AnkiConnect add-on
AnkiConnect exposes Anki over a local HTTP API on localhost:8765.
Option A — Anki add-on browser (easiest):
In Anki: Tools → Add-ons → Get Add-ons…
Enter the code
2055492159and install.
Option B — manual (Git):
cd "$APPDATA/Anki2/addons21" # Windows
# or: ~/.local/share/Anki2/addons21 (Linux)
# or: ~/Library/Application Support/Anki2/addons21 (macOS)
git clone --depth 1 https://github.com/FooSoft/anki-connect.git 2055492159
cd 2055492159
cp plugin/*.py plugin/*.json plugin/*.md .
rm -rf plugin tests .git 2>/dev/nullRestart Anki. Verify it's up:
curl -s http://127.0.0.1:8765 -X POST -d '{"action":"version","version":6}'
# → {"result": 6, "error": null}3. Run the MCP server
pip install mcp
python server.pyThe server speaks MCP over stdio. Anki Desktop must be running (with AnkiConnect loaded) for tools to work.
Configure in a client
Hermes Agent
Add to ~/.hermes/config.yaml (or %USERPROFILE%\AppData\Local\hermes\config.yaml on Windows):
mcp_servers:
anki:
command: python
args:
- /absolute/path/to/server.py
timeout: 60
connect_timeout: 30Then reload MCP in-session (/reload-mcp) or restart. Tools appear as mcp_anki_*.
Claude Code
claude mcp add anki -- python /absolute/path/to/server.pyUsage
Once wired up, just tell the AI what you want:
"Add a card to my System Design deck: front = 'Why does consistent hashing use virtual nodes?', back = 'To distribute keys more uniformly.'"
"Make Anki cards from the important concepts we just discussed."
Card-generation rules (put these in your AI instructions)
One concept per card.
Prefer questions that require recall.
Avoid huge answers.
Don't create cards for trivial facts.
Use cloze cards where appropriate.
Add source/topic tags.
Sync to mobile
MCP-created cards live in Anki Desktop until you sync. Trigger a sync:
Manually: Anki → Sync (or press
Y), orVia AnkiConnect:
curl -s http://127.0.0.1:8765 -X POST -d '{"action":"sync","version":6}'
Then sync the Anki mobile app to pull the new cards.
Requirements
Python 3.10+
mcppackage (pip install mcp)Anki Desktop (running)
AnkiConnect add-on
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants like Claude to interact with Anki flashcard decks through AnkiConnect. Supports creating and managing decks, basic and cloze deletion cards, searching existing cards, and organizing content with tags.
- AlicenseNot gradedqualityCmaintenanceEnables interaction with the Anki desktop flashcard application through the Anki-Connect plugin. Supports managing decks, cards, notes, and models, allowing AI assistants to create and query flashcards through natural language.101ISC
- AlicenseAqualityDmaintenanceEnables AI assistants to manage Anki flashcard collections by creating, searching, and updating cards through a standardized interface. It supports media handling, batch operations, and review scheduling via the AnkiConnect add-on.62MIT
- AlicenseAqualityDmaintenanceEnables AI tools to manage Anki flashcards, including deck management, card search, creation, editing, deletion, and statistics.10353Apache 2.0
Related MCP Connectors
AI-powered YouTube to flashcards with spaced repetition and Anki export
Free: turn your AI chats into spaced-repetition vocabulary. 13 tools, reads and writes.
Voice-led, FSRS-scheduled flashcards from YouTube, PDFs, web, or text. Auto-graded quizzes.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Looseling/anki-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server