drio
Open app

Anki MCP Server

Source

A Model Context Protocol (MCP) server that enables LLMs to interact with Anki flashcard software through AnkiConnect.

Catalog onlyCatalog onlySTDIO

Overview

Anki MCP Server is a Model Context Protocol (MCP) server that allows large language models (LLMs) to interact with Anki flashcard software through AnkiConnect.

To use Anki MCP Server, ensure you have Anki and the AnkiConnect add-on installed. You can then create decks and notes using commands sent to the server.

  • List available Anki decks - Create new Anki decks and notes (Basic or Cloze) - Batch create multiple notes - Search notes using Anki query syntax - Update and delete notes - List and create new note types
  1. Automating the creation of flashcards for study materials.
  2. Integrating LLMs to generate educational content dynamically.
  3. Managing large sets of flashcards efficiently.

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-nailuogg": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-anki-mcp-server-nailuogg"
      ]
    }
  }
}

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-nailuogg": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-anki-mcp-server-nailuogg"
      ]
    }
  }
}

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-nailuogg": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-anki-mcp-server-nailuogg"
      ]
    }
  }
}

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-nailuogg": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-anki-mcp-server-nailuogg"
      ]
    }
  }
}

Windsurf

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

~/.codeium/windsurf/mcp_config.json

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

Cline

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

Cline MCP Settings (via UI)

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

FAQ

What do I need to run Anki MCP Server?

You need to have Anki and the AnkiConnect add-on installed on your system.

Can I create multiple notes at once?

Yes! You can use the batch_create_notes feature to create multiple notes simultaneously.

Is there a way to monitor the server's activity?

Yes, you can use the MCP Inspector for monitoring MCP messages and debugging communication issues.