Skip to content
Claude Code

Anki MCP for Claude Code

io.github.ryhus/anki-mcp

Manage local Anki notes, cards, decks, note types, media, and deck packages via AnkiConnect.

client:Claude Code transport:stdio runtime:npm

Install Anki MCP in Claude Code

run in your project directory

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

claude mcp add anki-mcp -e ANKI_URL=<ANKI_URL> -e ANKI_API_MODE=<ANKI_API_MODE> -e ANKI_REQUEST_TIMEOUT_MS=<ANKI_REQUEST_TIMEOUT_MS> -e ANKI_MEDIA_IMPORT_DIRS=<ANKI_MEDIA_IMPORT_DIRS> -e ANKI_PACKAGE_IMPORT_DIR=<ANKI_PACKAGE_IMPORT_DIR> -e ANKI_PACKAGE_EXPORT_DIR=<ANKI_PACKAGE_EXPORT_DIR> -- npx -y @ryhus/anki-mcp

Adds it for this project only. Append --scope user to make it available everywhere. Claude Code docs

Anki MCP in other clients