anki-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| ANKI_CONNECT_URL | No | AnkiConnect endpoint | http://127.0.0.1:8765 |
| ANKI_CONNECT_API_KEY | No | Only if you set an apiKey in the add-on config | |
| ANKI_CONNECT_TIMEOUT | No | Request timeout (seconds) | 15 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| anki_versionA | Health check: confirm AnkiConnect is reachable and return its API version (expected: 6). Call this first if other tools are failing. |
| list_decksA | List the names of all decks in the collection. |
| create_deckA | Create a new deck. Use '::' in the name to create a nested subdeck (e.g. 'Languages::Romanian'). Existing decks are left untouched. |
| delete_deckA | Delete a deck. If cards_too is True (default) its cards are deleted as well; otherwise the cards are moved to the Default deck. Irreversible. |
| deck_statsB | Get review statistics (new/learning/review counts, totals) for the given deck names. |
| list_note_typesA | List all note type (model) names, e.g. 'Basic', 'Cloze'. |
| note_type_fieldsA | List the field names of a note type, in order (e.g. Basic -> ['Front', 'Back']). Use this before add_note to supply the right fields. |
| add_noteA | Add a single note. 'fields' maps the note type's field names to their HTML/text values (e.g. {'Front': '...', 'Back': '...'}). The deck and note type (model) must already exist. Returns the new note ID. |
| add_notesA | Add many notes in one call. Each item is {'deck': str, 'model': str, 'fields': {..}, 'tags': [..]?, 'allow_duplicate': bool?}. Returns a note ID per note (null where a note could not be added, e.g. a duplicate). |
| find_notesA | Search notes with Anki's query syntax (e.g. 'deck:Default tag:new'). Returns the total count, all matching note IDs, and detailed field data for up to 'limit' notes. |
| update_note_fieldsB | Update one or more fields of an existing note. Only the fields you pass are changed; omitted fields keep their current values. |
| delete_notesA | Permanently delete the given notes (and all their cards). Irreversible. |
| list_tagsA | List every tag used anywhere in the collection. |
| add_tagsC | Add one or more tags to the given notes. |
| remove_tagsC | Remove one or more tags from the given notes. |
| find_cardsA | Search cards with Anki's query syntax. Returns the total count, all matching card IDs, and detailed info (deck, note, interval, due, suspended state) for up to 'limit' cards. |
| suspend_cardsB | Suspend the given cards so they stop appearing in reviews. |
| unsuspend_cardsA | Unsuspend the given cards so they return to the review queue. |
| store_media_fileA | Store a media file (image/audio) in the collection's media folder so it can be referenced from a note, e.g. '[sound:word.mp3]' or ''. Provide exactly one source: a local 'path', a 'url' to download, or base64 'data_b64'. Returns the stored filename. |
| cards_reviewed_todayA | Return how many cards have been reviewed so far today. |
| syncA | Sync the local collection with AnkiWeb (so changes reach AnkiDroid / other devices). Requires AnkiWeb login configured in Anki Desktop. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- 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/kazim4uk/anki-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server