Anki MCP Server
VerifiedEnable natural language interaction with Anki via MCP.
What is the Anki MCP Server MCP server?
The server lets AI assistants perform core Anki operations such as syncing, fetching due cards, rating performance, and managing decks or notes. It also supports GUI-driven actions like selecting notes in the desktop client and updating fields with media.
Designed for productivity, it turns spaced-repetition study into dynamic conversations where the AI can explain concepts, adapt to learning style, and handle batch operations or media imports automatically.
Install & connect
Add this to your MCP client config. Pick your client below and copy.
{
"mcpServers": {
"anki-mcp-server": {
"command": "npx",
"args": [
"-y",
"@ankimcp/anki-mcp-server"
]
}
}
}Package: @ankimcp/anki-mcp-server (npm)
Tools it exposes
15 tools your AI client can call once connected.
sync— Sync with AnkiWeb to pull latest data and push changesget_due_cards— Get cards that are due for review, optionally filtered by deckget_cards— Get cards with flexible filtering by state and deckpresent_card— Show a card for review with its question/front siderate_card— Rate card performance and schedule the next reviewlistDecks— List all decks, optionally with per-deck card-count statisticscreateDeck— Create a new empty deck (supports Parent::Child)addNote— Create a single note with specified fields and tagsaddNotes— Batch-create up to 100 notes sharing a deck and modelfindNotes— Search for notes using Anki query syntaxnotesInfo— Get detailed information about notes (fields, tags, CSS)updateNoteFields— Update existing note fields (CSS-aware, supports HTML)storeMediaFile— Upload media from base64 data, file path, or URLmodelNames— List all available note types/modelsmodelFieldNames— Get field names for a specific note typeExample prompts
Once connected, try asking your AI client:
Security & permissions
Runs locally via stdio and requires AnkiConnect enabled in the Anki desktop app; it accesses your full Anki collection including notes, media, and scheduling data.
What you can do with Anki MCP Server
Review Spanish deck
Sync with AnkiWeb, fetch due cards, present each card, and record ratings with tailored explanations.
Create Arabic vocab cards
List note types, create a custom RTL model, then batch-add cards with proper styling.
Import image into note
Upload a local image file, read the selected note, and update its front field with an img tag.
How to use Anki MCP Server
- 1Install Anki and enable AnkiConnect add-on.
- 2Install the @ankimcp/anki-mcp-server package via npm.
- 3Add the server to your MCP client configuration using stdio transport.
- 4Restart the client and verify connection to Anki.
- 5Start prompting the AI with Anki-related tasks.
Anki MCP Server: pros & cons
Pros
- +Rich set of 42 tools covering study and content creation workflows
- +Supports efficient media handling via file paths and URLs
- +Enables natural-language study sessions with explanations
- +Works directly with existing Anki collections and AnkiWeb sync
Cons
- –Requires Anki desktop and AnkiConnect running locally
- –Beta software with potential API changes
- –Limited to 15 tools shown here out of 42 total
Frequently asked questions
No, it requires Anki with AnkiConnect installed and running.
User reviews
Verified reviews from the community shape this listing's rating.
Loading reviews…