Stefanwille MCP Server

Anki MCP server for flashcard management

Local serverstdioGo

What is the Stefanwille MCP server?

Stefanwille MCP server exists for a simple reason — assistants are far more useful when they can act on Stefanwille directly instead of describing what you should do. Anki MCP server for flashcard management.

What you get

Edit your Claude Desktop config (claude_desktop_config.json), and add:

What the assistant can call

Once Stefanwille is connected, these are the calls the assistant has available:

  • get_decks — Get all deck names from Anki
  • create_deck — Create a new deck
  • delete_deck — Delete a deck and all its cards (including sub-decks)
  • list_cards — List cards in a deck with front/back content
  • create_cards — Create one or more basic cards in a deck
  • update_card — Update an existing card's content
  • rename_deck — Rename a deck
  • Prerequisites — The Prerequisites tool exposed by this server

Setting it up

The server ships on npm as pnpm, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

Configuration and credentials

  • Anki with AnkiConnect add-on installed - Node.js 24+ (Download) - Anki running, with AnkiConnect on http://127.0.0.1:8765 (default)

Choosing this one

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Stefanwille's toolset — get_decks, create_deck, delete_deck and 5 more — is a fair guide to whether it matches your workflow. It is maintained by GitHub Actions; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Stefanwille's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the stefanwille mcp server does with a few real requests.

Available tools

ToolWhat it does
get_decksGet all deck names from Anki
create_deckCreate a new deck
delete_deckDelete a deck and all its cards (including sub-decks)
list_cardsList cards in a deck with front/back content
create_cardsCreate one or more basic cards in a deck
update_cardUpdate an existing card's content
rename_deckRename a deck
PrerequisitesThe Prerequisites tool exposed by this server.

How to install the Stefanwille MCP server

{
  "mcpServers": {
    "anki": {
      "command": "npx",
      "args": ["-y", "stefanwille-anki-mcp-server@latest"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Anki with AnkiConnect add-on installed - Node.js 24+ (Download) - Anki running, with AnkiConnect on http://127.0.0.1:8765 (default)

Example prompts to try

  • Use Stefanwille to get decks.
  • Use Stefanwille to create deck.
  • Use Stefanwille to delete deck.

Frequently asked questions

It connects Stefanwille to MCP-compatible AI assistants such as Claude and Cursor, exposing 8 tools (get_decks, create_deck, delete_deck, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Stefanwille directly.