Skip to content

DefineDan/anki-mcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anki-MCP

Minimal Model Context Protocol (MCP) server for adding flashcards to Anki via AnkiConnect. Anki needs to be running in the background for the MCP server to work.

Features

  • Add notes (flashcards) to Anki decks using MCP tools directly from your LLM chat interface
  • Designed for integration with Claude Desktop and other MCP clients

It only uses two AnkiConnect endpoints: adding notes and listing decks. There are many more we could expose as tools.

Requirements

Installation

  1. Install AnkiConnect

    • Open Anki desktop
    • Go to Tools > Add-ons > Get Add-ons...
    • Paste the AnkiConnect add-on id and install
    • Restart Anki
  2. Install dependencies

    pip install mcp[cli]>=1.13.0

    or setup the project using uv

    uv sync
  3. Start the MCP server

    python anki_mcp

Usage with Claude Desktop

In Claude Desktop you can register your own MCP server following this documentation. After registration, the tools should be visible in the UI. Make sure Anki is running for the MCP server to work as the AnkiConnect add-on spins up a local server with a simple HTTP API.

References

About

Minimal Model Context Protocol (MCP) server for adding flashcards to Anki via AnkiConnect.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages