Skip to main content
Glama
AnkiConnect MCP Server

AnkiConnect MCP Server

by fabianissam

AnkiConnect MCP Server

Servidor MCP en Python para AnkiConnect. Asistente de repaso de mazos: recorre un mazo tarjeta a tarjeta, detecta faltantes (formas verbales, declinación) y corrígelas con aprobación.

Requisitos

  • Anki 2.1.x ejecutándose en segundo plano

  • Complemento AnkiConnect (al Instalación: 2055492159) * Python3.11+

Consideraar: open http://...: Verify. *"Verify": "Comprueba AnkiConnect: abre http://127.0.0.1:8765; deberías ver AnkiConnect."

Related MCP server: Anki MCP Server

Instalación

cd AnkiConnectMCP
python -m pip install -e .

Configuración de MCP in Cursor

En .cursor/mcp.json (o Configuración de Cursor → MCP):

{
  "mcpServers": {
    "anki-connect": {
      "command": "python",
      "args": ["-m", "anki_connect_mcp.server"],
      "cwd": "C:/Users/Fabian/Desktop/Projekte/AnkiConnectMCP",
      "env": {
        "PYTHONPATH": "src",
        "ANKI_CONNECT_URL": "http://127.0.0.1:8765"
      }
    }
  }
}

Recarga el servidor MCP después de los cagent alos in el oly de la code.

Cómo fun와

Sesión típica — **sin JSON, solo ** —:

Du:  „Geh mein Italienisch-Deck durch — Verben sollen alle Formen auf einer Karte haben“

KI:  list_deck_cards(deck_name="Italienisch", offset=0)
     → #1–#15 mit Front/Back

     Chat-Analyse:
     #3  mangiare — Partizip fehlt
     #7  il libro — nicht dekliniert
     Soll ich #3 anpassen?

Du:  „ja, Partizip mangiato“

KI:  BEFORE/AFTER im Chat + edit_card(note_id=…, back="…")

Du:  „weiter“ / „nächster Block“ / „#7 auch“

Un nuevo mensage de chat mientras d Run esté pendiente = revisión, no "aplicación" cieg a.

Herramientas

Herramienta

Descripción

list_decks

Nombres de mazos

list_deck_cards

Página numerada de tarjetas para revisión sistemática

get_card

Una tarjeta en detalle

search_cards

Búsqueda dirigida (verbos, etiquetas, texto)

edit_card

Aplicar una edición aprobada

add_card

Añadir una tarjeta nueva

Seguridad

  • Las herramientas de lectura nunca modifican Anki. *Las operaciones de escritura solo después of "Cursor Run" approval.

  • Cursor No hay herramientas de borrado. Interesting.

  • "No hair delete "herraciones.".

  • "Una herramienta a the vez (bloqueo del servidor)".

Licincia

MIT

Available Tools

6 tools
add_cardA

Add a card to Anki after Cursor Run. Never call in parallel with other tools.

Inputs: back (required), front (required), deck_name (required), tags. Returns: result

edit_cardA

Apply one approved edit. Show BEFORE/AFTER in chat first, then call with new values.

Used during systematic deck review when the user approves a specific card (#N). If the user sends new context, revise — do not ignore their message. Never call in parallel with other tools.

Inputs: note_id (required), back, tags, front. Returns: result

get_cardA

Get one card's full content. Read-only. Never call in parallel with other tools.

Inputs: note_id (required). Returns: result

list_deck_cardsA

List numbered cards in a deck for systematic review sessions. Read-only. Use with chat analysis (verb forms, declension, etc.). Never call in parallel with other tools.

Inputs: deck_name (required), limit, offset. Returns: result

list_decksA

List Anki deck names only. Read-only. Never call in parallel with other tools.

Inputs: no named parameters. Returns: result

search_cardsA

Search notes — read-only, for targeted lookups (verbs, tags, text). For full deck walkthrough use list_deck_cards instead. Never call in parallel with other tools.

Inputs: query (required), limit, deck_name. Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 6 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes: listing decks, listing cards in a deck, fetching one card, adding, searching, and editing. list_deck_cards and search_cards overlap somewhat as card-retrieval operations, but their descriptions explicitly separate systematic review from targeted lookup.

    Naming Consistency5/5

    All tool names follow a consistent lower_snake_case verb_noun pattern: list_decks, list_deck_cards, get_card, add_card, search_cards, edit_card. The naming is predictable and easy to navigate.

    Tool Count5/5

    Six tools is a well-scoped set for an Anki card and deck workflow. Each tool covers a distinct functional action without unnecessary redundancy and the count feels appropriate for the server's purpose.

    Completeness4/5

    The server covers core card lifecycle operations well: listing decks, viewing cards, adding cards, searching, and editing cards. The main gap is the lack of a delete_card tool, and there is minimal deck-management coverage beyond listing, but the primary review-oriented workflow is well supported.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers