Skip to main content
Glama

Anki MCP Server

A Model Context Protocol (MCP) server for integrating AI assistants with Anki, the popular spaced repetition flashcard software.

Features

This MCP server enables AI assistants to interact with Anki through the following tools:

Tools

  • get-collection-overview: Returns an overview of the Anki collection like available decks, available models and their fields

  • add-or-update-notes: Adds new notes or updates existing ones. Allows batch adding/updating multiple notes at once.

  • get-cards-reviewed: Get the number of cards reviewed by day

  • find-notes: Allows querying notes using the Anki searching syntax

  • find-cards: Find card IDs matching a query in Anki

  • suspend-cards: Suspend cards by their card IDs

  • unsuspend-cards: Unsuspend cards by their card IDs

Resources

  • anki://docs/search-syntax: Comprehensive reference guide for Anki's search query syntax. Includes basic operators, field searches, tags, decks, card states, properties, timing, IDs, custom data, and advanced query examples. This resource provides language-agnostic documentation useful for anyone constructing search queries with the find-notes or find-cards tools

Related MCP server: Beeper MCP Note Server

Requirements

  • Anki must be installed and running

  • The AnkiConnect add-on must be installed in Anki and running

  • This MCP server uses uv. To install uv, follow the official instructions.

Installation

Install as a plugin to get both the MCP server and language learning skill in one step:

/plugin install anki-mcp

Manual setup for Claude Code

  1. Add the MCP server:

    claude mcp add anki -- uvx anki-mcp
  2. Optionally, copy the skill files from skills/ into your project's .claude/skills/ directory for language learning guidance.

Claude Desktop

  1. Open your Claude Desktop config file:

    • macOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json

    • Windows: %APPDATA%/Claude/claude_desktop_config.json

  2. Add anki-mcp to the mcpServers section:

    "mcpServers": {
      "anki": {
        "command": "uvx",
        "args": ["anki-mcp"]
      }
    }
  3. Restart Claude Desktop.

MCP server only

For other MCP-compatible clients, run the server directly:

uvx anki-mcp

Language Learning Skill

This plugin includes a complementary skill that provides best practices for creating effective language learning flashcards. When installed as a plugin, the skill is automatically available. The skill includes:

  • Recommended workflow for card creation

  • Card quality guidelines (length, content, cloze usage)

  • Note type variety recommendations

  • Examples of good vs bad cards

  • Proficiency level guidelines (CEFR A1-C2)

The MCP server works independently of the skill, so you can use it for any Anki workflow — not just language learning.

Available Tools

4 tools
add-or-update-notesC

Add new notes or update existing ones in Anki

Inputs: notes (required).

find-notesC

Find notes matching a query in Anki

Inputs: query (required).

get-cards-reviewedB

Get the number of cards reviewed by day

Inputs: no named parameters.

get-collection-overviewB

Get comprehensive information about the Anki collection including decks, models, and fields

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: add-or-update-notes handles note creation/modification, find-notes handles search queries, get-cards-reviewed provides review statistics, and get-collection-overview gives collection metadata. There is no overlap or ambiguity between these functions.

    Naming Consistency4/5

    The tools follow a consistent verb-object naming pattern (e.g., add-or-update-notes, find-notes) with clear actions and targets. The only minor deviation is the hyphenated style, which is consistent across all tools but differs from more common snake_case or camelCase conventions.

    Tool Count5/5

    With 4 tools, this server is well-scoped for managing an Anki collection. It covers core operations like note management, search, review tracking, and collection overview without being overly sparse or bloated.

    Completeness4/5

    The toolset covers essential Anki operations: CRUD for notes (add/update and find), review analytics, and collection metadata. A minor gap is the lack of explicit delete or deck management tools, but agents can likely work around this using existing tools.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      A simple MCP server that implements a note storage system allowing users to add and summarize notes with customizable detail levels.
      3
      -
    • F
      license
      C
      quality
      D
      maintenance
      A simple MCP server that implements a note storage system with RAG capabilities, allowing users to store notes and generate summaries of stored content.
      3
      -