drio
Open app

Anki MCP Server

Source

Anki MCP Server to allow LLMs to create and manage Anki decks via Anki Connect

Catalog onlyCatalog onlySTDIO

Overview

Anki MCP Server is a Model Context Protocol (MCP) server that allows Large Language Models (LLMs) to create and manage Anki flashcard decks through the AnkiConnect API.

To use Anki MCP Server, ensure you have Anki and the AnkiConnect add-on installed, then start the server and connect your MCP client to it.

  • Create new decks in Anki - Add notes to existing decks - List available decks and note models - Search for notes using Anki's search syntax - Get detailed information about note models and their fields - Bulk add multiple notes at once
  1. Automating the creation of flashcard decks for study purposes.
  2. Integrating LLMs to enhance learning experiences with personalized flashcards.
  3. Managing large sets of notes efficiently through programmatic access.

Add to your AI client

Use these steps to connect Anki MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "anki-mcp-server-ethangillani": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-anki-mcp-server-ethangillani"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "anki-mcp-server-ethangillani": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-anki-mcp-server-ethangillani"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "anki-mcp-server-ethangillani": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-anki-mcp-server-ethangillani"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "anki-mcp-server-ethangillani": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-anki-mcp-server-ethangillani"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "anki-mcp-server-ethangillani": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-anki-mcp-server-ethangillani"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "anki-mcp-server-ethangillani": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-anki-mcp-server-ethangillani"
      ]
    }
  }
}

FAQ

What is required to run Anki MCP Server?

You need Node.js, Anki with the AnkiConnect add-on, and a compatible MCP client.

How do I install AnkiConnect?

Install it by going to Tools > Add-ons > Get Add-ons in Anki and entering the code: `2055492159`.

Can I use Anki MCP Server with any LLM?

Yes, as long as the LLM supports the Model Context Protocol.