# Ankimcp Anki MCP server

Source: https://glimind.com/server/mcp-registry%2Fai.ankimcp%2Fanki-mcp-server
Registry id: `mcp-registry/ai.ankimcp/anki-mcp-server`
Status: unknown

## Install

```json
{
  "mcpServers": {
    "ankimcp-anki-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@ankimcp/anki-mcp-server"
      ]
    }
  }
}
```

Claude Code:

```sh
claude mcp add ankimcp-anki-mcp-server -- npx -y @ankimcp/anki-mcp-server
```

## Tools (53)

- `addModelField`: Add a new field to an existing note type
- `addNote`: Create a single note with specified fields and tags
- `addNotes`: Batch-create up to 100 notes sharing a deck and model
- `addTags`: Add space-separated tags to specified notes
- `areSuspended`: Check suspension state for one or more cards without changing anything
- `changeDeck`: Move cards to a different deck (created if it doesn't exist)
- `clearUnusedTags`: Remove orphaned tags not used by any notes (destructive)
- `collection_stats`: Aggregated statistics across all decks with per-deck breakdown
- `createDeck`: Create a new empty deck (supports Parent::Child, max 2 levels)
- `createModel`: Create a new note type with custom fields, templates, and CSS
- `deckStats`: Get comprehensive statistics for a single deck
- `deleteMediaFile`: Remove a media file from collection.media (destructive)
- `deleteNotes`: Delete notes and all associated cards (destructive)
- `findNotes`: Search for notes using Anki query syntax
- `forgetCards`: Reset cards to new, discarding scheduling without recording review
- `getMediaFilesNames`: List media files in collection.media, optionally filtered by pattern
- `getTags`: Get all tags in the collection
- `get_cards`: Get cards with flexible filtering by state and deck
- `get_due_cards`: Get cards due for review, optionally filtered by deck
- `guiAddCards`: Open the Add Cards dialog with preset note details
- `guiBrowse`: Open the Card Browser and search for cards
- `guiCurrentCard`: Get info about the current card in review mode
- `guiDeckBrowser`: Open the Deck Browser dialog
- `guiDeckOverview`: Open the Deck Overview dialog for a specific deck
- `guiEditNote`: Open the note editor for a specific note
- `guiSelectCard`: Select a specific card in the Card Browser
- `guiSelectedNotes`: Get IDs of notes currently selected in the Card Browser
- `guiShowAnswer`: Show the answer side of the current card
- `guiShowQuestion`: Show the question side of the current card
- `guiUndo`: Undo the last action in Anki
- `listDecks`: List all decks, optionally with per-deck study-queue statistics
- `modelFieldNames`: Get field names for a specific note type
- `modelNames`: List all available note types/models
- `modelStyling`: Get CSS styling information for a note type
- `modelTemplates`: Get card templates (Front and Back HTML) for a note type
- `notesInfo`: Get detailed information about notes
- `present_card`: Show a card for review with its question/front side
- `rate_card`: Rate card performance and schedule next review
- `removeModelField`: Remove a field from an existing note type (destructive)
- `removeTags`: Remove space-separated tags from specified notes
- `renameModelField`: Rename a field in an existing note type
- `replaceTags`: Rename a tag across specified notes
- `repositionModelField`: Change the position of a field within an existing note type
- `retrieveMediaFile`: Download a media file as base64 content
- `review_stats`: Review history analysis with temporal patterns and retention metrics
- `setDueDate`: Reschedule cards to become due in N days without recording review
- `storeMediaFile`: Upload media from base64 data, file path, or URL
- `suspend`: Suspend cards so they are skipped during review until unsuspended
- `sync`: Sync with AnkiWeb to pull latest data and push changes
- `unsuspend`: Unsuspend cards so they return to normal review
- `updateModelStyling`: Update CSS styling for an existing note type
- `updateModelTemplates`: Update card templates for an existing note type
- `updateNoteFields`: Update existing note fields (CSS-aware, supports HTML content)

Measured by Glimind (https://glimind.com): MCP handshake + tool list only, no tool is ever called. CC BY 4.0.
