Skip to main content
Glama

Clanki - Integración de Anki de Claude

Un servidor MCP que permite a los asistentes de IA como Claude interactuar con los mazos de tarjetas de memoria de Anki a través del Protocolo de Contexto de Modelo (MCP).

Características

  • Crear y administrar mazos de Anki

  • Crea tarjetas didácticas básicas con contenido en el anverso y reverso.

  • Crear tarjetas de eliminación de espacios en blanco

  • Actualizar tarjetas existentes y completar eliminaciones

  • Agregar y administrar etiquetas

  • Ver el contenido del mazo y la información de las cartas

  • Integración completa con AnkiConnect

Related MCP server: Anki MCP Server

Prerrequisitos

  • Anki instalado y funcionando

  • Complemento AnkiConnect instalado en Anki

  • Node.js 16 o superior

Instalación

  1. Clonar este repositorio:

git clone https://github.com/yourusername/clanki.git
cd clanki
  1. Instalar dependencias:

npm install
  1. Construir el proyecto:

npm run build

Configuración

  1. Asegúrese de que Anki se esté ejecutando y que el complemento AnkiConnect esté instalado y habilitado

  2. Configure Claude for Desktop para usar el servidor editando claude_desktop_config.json :

{
  "mcpServers": {
    "clanki": {
      "command": "node",
      "args": ["/absolute/path/to/clanki/build/index.js"]
    }
  }
}

Reemplace /absolute/path/to/clanki con la ruta real a su instalación de clanki.

Herramientas disponibles

crear-mazo

Crea un nuevo mazo de Anki

  • Parámetros:

    • name : Nombre para la nueva baraja

crear tarjeta

Crea una nueva tarjeta didáctica básica en una baraja específica

  • Parámetros:

    • deckName : Nombre del mazo al que se agregará la carta

    • front : Contenido del anverso de la tarjeta

    • back : Contenido del reverso de la tarjeta

    • tags : (opcional) Matriz de etiquetas para la tarjeta

crear tarjeta de relleno

Crea una nueva carta de eliminación de espacios en blanco en un mazo específico

  • Parámetros:

    • deckName : Nombre del mazo al que se agregará la carta

    • text : Texto que contiene eliminaciones de espacios en blanco utilizando la sintaxis {{c1::text}}

    • backExtra : (Opcional) Información adicional para mostrar en el reverso de la tarjeta

    • tags : (opcional) Matriz de etiquetas para la tarjeta

tarjeta de actualización

Actualiza una flashcard básica existente

  • Parámetros:

    • noteId : ID de la nota a actualizar

    • front : (opcional) Nuevo contenido del lado frontal

    • back : (opcional) Nuevo contenido del reverso

    • tags : (opcional) Nuevas etiquetas para la tarjeta

actualizar-cerrar-tarjeta

Actualiza una tarjeta de eliminación de espacios en blanco existente

  • Parámetros:

    • noteId : ID de la nota a actualizar

    • text : (opcional) Texto nuevo con eliminaciones de cloze

    • backExtra : (Opcional) Nueva información adicional para la parte posterior

    • tags : (opcional) Nuevas etiquetas para la tarjeta

Desarrollo

Para modificar o ampliar el servidor:

  1. Realizar cambios en src/index.ts

  2. Reconstruir con npm run build

  3. Depurar con npx @modelcontextprotocol/inspector node build/index.js

Available Tools

9 tools
create-cardB

Create a new note in a specified deck. Supports HTML formatting in text fields. You can attach multiple images and audio files from URLs - they will be automatically downloaded and embedded in the note.

Inputs: back (required), front (required), deckName (required), tags, +4 more.

create-cards-bulkA

Create multiple basic notes in a single call. Use this instead of calling create-card repeatedly — it sends one request to Anki regardless of how many notes are in the batch. Does not support images or audio: use create-card for notes that need media.

Inputs: cards (required), deckName (required).

create-cloze-cardB

Create a new cloze note in a specified deck. Use {{c1::text}} syntax for cloze deletions (e.g., {{c1::Paris}} is the capital of France). Supports HTML formatting and can attach multiple images and audio files from URLs - they will be automatically downloaded and embedded.

Inputs: text (required), deckName (required), tags, backAudio, +4 more.

create-cloze-cards-bulkA

Create multiple cloze notes in a single call. Use this instead of calling create-cloze-card repeatedly — it sends one request to Anki regardless of how many notes are in the batch. Does not support images or audio: use create-cloze-card for notes that need media.

Inputs: cards (required), deckName (required).

create-deckA

Create a new Anki deck

Inputs: name (required).

delete-cardA

PERMANENTLY deletes notes. This cannot be undone and there is no trash to recover them from — the notes and every card generated from them are gone. Only delete notes the user has asked you to delete. Use find-cards first to obtain the note IDs and to confirm you have the right notes; there is no delete-by-query, and IDs must be listed explicitly. Deleting one cloze note removes every card generated from it.

Inputs: confirm (required), noteIds (required).

find-cardsA

Search for notes using Anki's search syntax and return their note IDs, note type, tags, and a short excerpt of each field. Use this to get the noteId needed by update-card, update-cloze-card or delete-card. Field content is truncated and the number of results is capped, so narrow the query if the note you want is not listed. Examples: 'deck:Spanish', 'tag:vocab', 'front:hello', 'deck:Spanish tag:verbs'.

Inputs: query (required).

update-cardC

Update an existing note

Inputs: noteId (required), back, tags, front.

update-cloze-cardC

Update an existing cloze note

Inputs: noteId (required), tags, text, backExtra.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 9 tools

    Disambiguation5/5

    Each tool targets a distinct action and note type: deck creation, card creation/update for basic and cloze types, bulk variants, search, and deletion. The bulk tools are explicitly separated from single-card tools, and find-cards is clearly the retrieval path. No two tools appear to do the same thing.

    Naming Consistency5/5

    All tool names follow a consistent hyphenated lowercase verb-noun pattern: create-deck, create-card, update-card, create-cloze-card, update-cloze-card, create-cards-bulk, create-cloze-cards-bulk, find-cards, delete-card. The pattern is uniform and predictable.

    Tool Count5/5

    With 9 tools, the server is well-scoped for Anki card management. It covers core lifecycle operations (create, update, find, delete) with separate handling for basic vs. cloze notes and bulk operations, without excessive redundancy.

    Completeness4/5

    The card lifecycle is well covered: create (single/bulk, basic/cloze), update, find, delete. Deck management is limited to creation only, with no update or delete deck tools, but this is a minor gap since decks are simple containers and find-cards can search by deck name.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      A
      maintenance
      An MCP server that enables AI assistants to interact with the Anki flashcard application for studying, deck management, and note creation. It supports natural language interaction for reviewing cards, searching content, and managing media files across local and remote environments.
      993 npm
      582
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that enables AI assistants to seamlessly manage Anki flashcards, decks, and templates through the AnkiConnect API. It supports intelligent querying, batch note creation, and detailed study progress analysis using natural language.
      4
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      An 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.
      8
      -