MCP-AnkiConnect
The MCP-AnkiConnect server integrates Claude conversations with Anki's spaced repetition system for flashcard management.
Check Due Cards: Get the count of cards due for review, optionally filtered by deck
List Decks and Notes: Retrieve available decks, note types, and their fields
Get Examples: Fetch sample notes to guide flashcard creation, with options to filter by recency, performance, etc.
Fetch Due Cards: Retrieve cards due for learning, with options to filter by deck and time period
Submit Reviews: Rate reviewed cards as "wrong", "hard", "good", or "easy"
Add Notes: Create new flashcards by specifying deck, note type, fields, and optional tags
Connects to Anki via AnkiConnect to enable flashcard management, including retrieving due cards, submitting reviews, adding new cards, and accessing deck information for spaced repetition learning.
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., "@MCP-AnkiConnectLet's go through today's flashcards"
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.
mcp-ankiconnect MCP server
Connect Claude conversations with AnkiConnect via MCP to make spaced repetition as easy as "Let's go through today's flashcards" or "Make flashcards for this"
Components
Tools
The server implements the following tools:
num_cards_due_today: Get the number of cards due todayOptional
deckargument to filter by specific deckReturns count of due cards across all decks or specified deck
get_due_cards: Get cards that are due for reviewOptional
limitargument (default: 5) to control number of cardsOptional
deckargument to filter by specific deckOptional
today_onlyargument (default: true) to show only today's cardsReturns cards in XML format with questions and answers
submit_reviews: Submit answers for reviewed cardsTakes list of
reviewswithcard_idandratingRatings: "wrong", "hard", "good", "easy"
Returns confirmation of submitted reviews
search_notes: Find notes by AnkiConnect query. Returns IDs + a short Front preview by default (cheap); passreturn_card_content=trueto receive cleaned field content inline.inspect_cards: View per-card state for given card IDs or note IDs. Sparse-fieldset selection via thepropertieslist: any ofidentity,state,scheduling,timestamps,history,fields, orall(default:["identity", "state", "scheduling"]). The legacyinclude_history=trueflag is still accepted as an alias.update_note_fields: Modify the text content of one note's fields. Uses the same MathJax/code conversions asadd_note.update_note_tags: Add and/or remove tags on one or more notes.set_suspended: Suspend or unsuspend one or more cards.change_deck: Move cards (by card ID) into a different deck.reschedule_cards: Set due date, forget, or relearn one or more cards.
Related MCP server: Anki MCP Server
Configuration
Prerequisites
Anki must be running with AnkiConnect plugin installed (plugin id 2055492159) AnkiConnect can be slow on Macs due to the AppSleep feature, so disable it for Anki. To do so run the following in your terminal.
defaults write net.ankiweb.dtop NSAppSleepDisabled -bool true defaults write net.ichi2.anki NSAppSleepDisabled -bool true defaults write org.qt-project.Qt.QtWebEngineCore NSAppSleepDisabled -bool true
Installation
Quickstart
Install the AnkiConnect plugin in Anki:
Tools > Add-ons > Get Add-ons...
Enter code:
2055492159Restart Anki
Configure Claude Desktop:
On MacOS:
~/Library/Application\ Support/Claude/claude_desktop_config.jsonOn Windows:%APPDATA%/Claude/claude_desktop_config.jsonAdd this configuration:
{ "mcpServers": { "mcp-ankiconnect": { "command": "uv", "args": ["run", "--with", "mcp-ankiconnect", "mcp-ankiconnect"] } } }Restart Anki and Claude desktop
Debugging
Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector. First, clone the repository and install the dependencies:
git clone https://github.com/samefarrar/mcp-ankiconnect.git
cd mcp-ankiconnect
uv syncYou can launch the MCP Inspector via the mcp CLI:
uv run mcp dev mcp_ankiconnect/server.pyUpon launching, the Inspector will display a URL you can access in your browser to begin debugging.
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
- Alicense-qualityDmaintenanceAn MCP server that enables AI assistants like Claude to interact with Anki flashcard decks, allowing users to create, manage, and update flashcards through natural language conversations.Last updated38MIT
- Alicense-qualityFmaintenanceA Model Context Protocol server that bridges Claude AI with Anki flashcard app, allowing users to create and manage flashcards using natural language commands.Last updated9MIT
- FlicenseAqualityDmaintenanceAn MCP server that enables Claude Code to create, manage, and search Anki flashcards directly from the terminal. It supports batch card creation, deck statistics retrieval, and synchronization with AnkiWeb for cross-platform review.Last updated8
- AlicenseAqualityDmaintenanceAn MCP server that connects to Anki for card review and creation, featuring automatic date-based organization of new cards.Last updated4671MIT
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
An MCP server that integrates with Discord to provide AI-powered features.
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Appeared in Searches
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/samefarrar/mcp-ankiconnect'
If you have feedback or need assistance with the MCP directory API, please join our Discord server