This server only runs locally, from a package. Install it with the instructions on this page to try it.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add anki-mcp \ -e ANKI_URL=YOUR_ANKI_URL \ -- npx -y @ryhus/[email protected]
Environment
ANKI_URL (required): AnkiConnect base URL on your computer. Keep Anki Desktop open; omit /api/v1.ANKI_API_MODE (optional, not in the config above): Use v1 for the full tool set with compatible AnkiConnect, or legacy for older add-ons.ANKI_REQUEST_TIMEOUT_MS (optional, not in the config above): Request deadline in integer milliseconds, including queue wait: 1 to 300000.ANKI_MEDIA_IMPORT_DIRS (optional, not in the config above): Optional trusted local media folders. Separate with : on macOS/Linux or ; on Windows.ANKI_PACKAGE_IMPORT_DIR (optional, not in the config above): Optional existing absolute folder for local .apkg imports. Requires API v1.ANKI_PACKAGE_EXPORT_DIR (optional, not in the config above): Optional existing absolute folder for local .apkg exports. Requires API v1.We don't run packages, so we can't list this server's tools.