anki-mcp
Allows LLMs to interact with an Anki flashcard collection, including managing decks, searching and viewing notes, updating fields, adding notes, and handling media files.
Click on "Deploy 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-mcpList all my Anki decks."
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 Model Context Protocol (MCP) server that enables LLMs to interact with your Anki flashcard collection. Read decks, search notes, view card contents, and update fields directly from your LLM tool of choice.
Features
Deck Management: List all available Anki decks
Note Search: Search notes using Anki's powerful search syntax
Note Viewing: View note contents and field values
Note Editing: Update note fields programmatically
Related MCP server: Anki MCP Server
Setup
Prerequisites
Anki - Desktop application must be installed and running
AnkiConnect - Add-on for API access (code:
2055492159)Bun 1.2.16 or later
Installation
# Install AnkiConnect in Anki
# Go to Tools → Add-ons → Get Add-ons... → Enter: 2055492159
# Clone and setup this project
git clone git@github.com:mybuddymichael/anki-mcp.git
cd anki-mcp
bun installUsage
With Claude Desktop
Add to your Claude Desktop configuration file:
{
"mcpServers": {
"anki": {
"command": "bun",
"args": ["run", "/path/to/anki-mcp/index.ts"]
}
}
}With Other MCP Clients
This server works with any MCP-compatible client. Look up the respective documentation for how to configure it.
Available tools
Tool | Description | Parameters |
| Lists all available Anki decks | None |
| Search notes using Anki syntax |
|
| Get note field contents |
|
| List note types/models | None |
| Get field names for a model |
|
| Update note field contents |
|
| Add new notes to decks |
|
| List all media files | None |
| Check if media file exists |
|
| Store media file to Anki media collection |
|
Usage examples
Adding new cards
"Add a card with 'bonjour' on the front and 'hello' on the back to my French deck"
"Create a flashcard for the Spanish word 'biblioteca' meaning 'library' with the tag 'places'"
"Add these vocabulary words to my German deck: Haus (house), Auto (car), Buch (book)"
Finding cards
"Search for all cards in my Biology deck, then show me their contents"
First: Search returns note IDs → Second: Get field contents for those IDs
"Find my Spanish vocabulary cards tagged with 'food', then show me what they contain"
Updating cards
"Update the back of card #1234567890 to include pronunciation: 'biblioteca [bee-blee-oh-TEH-kah]'"
"Fix the typo on the front of that card - change 'recieve' to 'receive'"
Deck info
"What decks do I have available?"
"What note types exist in my Anki collection?"
"Show me the field names for my Cloze note type"
Related Links
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
- FlipnemOAuthcom.flipnem
Build and study spaced-repetition flashcards with your agent.
Search, read, cite, create, and safely update a user's private KeepFlash knowledge library.
- manthanOAuthtech.sirune
List and create Manthan concept-card decks from an AI agent — no AI quota spent for imports.
Connect AI to your flomo notes. Search, create, edit notes and manage tags via MCP.
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables AI assistants to manage Anki flashcard decks and cards through natural language, supporting deck creation, card additions (basic and cloze types), and review queue management.66 npm2MIT
- 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.5 npm1ISC
- 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.1034 npm3Apache 2.0