Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

MCP server for Anki via AnkiConnect, enabling creation, search, and management of flashcards directly from Claude Code or any MCP client.

README.md

anki-mcp

![License: MIT](LICENSE) ![Python 3.13+](https://www.python.org/downloads/) ![CI](https://github.com/chaosisnotrandomitisrhythmic/anki-mcp/actions/workflows/ci.yml)

MCP server for Anki via AnkiConnect — create, search, and manage flashcards directly from Claude Code or any MCP client.

Features

  • Card CRUD — create (bulk with duplicate detection), search, update, delete
  • Deck management — list, create (supports :: hierarchy)
  • Archive & sync — export/import .apkg files, trigger AnkiWeb sync
  • Progress analytics — deck maturity, Interest Heat Score (which topics you retain best), study streak
  • Conversation extraction/anki extract scans a conversation for learnable moments and proposes cards
  • Daily progress script — cron-friendly report generator that reads Anki's SQLite directly
  • Claude Code skill — interactive card creation via /anki slash command

Requirements

Installation

git clone https://github.com/chaosisnotrandomitisrhythmic/anki-mcp.git
cd anki-mcp
uv sync

Usage

Add to your MCP config (~/.claude/settings.json, project .mcp.json, or Claude Desktop config):

{
  "mcpServers": {
    "anki": {
      "command": "uv",
      "args": ["--directory", "/path/to/anki-mcp", "run", "anki-mcp"]
    }
  }
}

Tools

| Tool | Description | |------|-------------| | add_notes | Create flashcards (bulk, with duplicate detection) | | search_notes | Find cards using Anki query syntax | | update_note | Edit a card's fields or tags | | delete_notes | Remove cards by ID | | list_decks | All decks with card counts (new/learn/review) | | create_deck | Create a deck (supports :: hierarchy) | | export_deck | Export deck to .apkg (optionally archive + delete) | | import_deck | Restore .apkg from archive | | sync | Trigger AnkiWeb sync | | progress | Learning report with Interest Heat Score | | health | Check AnkiConnect connectivity |

Configuration

All configuration is via environment variables with sensible defaults:

| Variable | Description | Default | |----------|-------------|---------| | ANKI_MCP_ARCHIVE_DIR | Directory for .apkg exports/imports | ~/.local/share/anki-mcp/archive | | ANKI_DB_PATH | Path to Anki's collection.anki2 | Platform-aware (macOS: ~/Library/Application Support/Anki2/User 1/collection.anki2, Linux: ~/.local/share/Anki2/User 1/collection.anki2) | | ANKI_MCP_OUTPUT_DIR | Directory for daily progress reports | ~/Anki Progress |

Daily Progress Script

A standalone script that reads Anki's SQLite database and generates a Markdown progress report. Works even when Anki is running (read-only via WAL mode).

# Run manually
cd /path/to/anki-mcp && uv run python scripts/daily_progress.py

# Cron example (daily at 7:03 AM)
3 7 * * * cd /path/to/anki-mcp && uv run python scripts/daily_progress.py

The report includes deck overview, Interest Heat Score, and study streak.

Claude Code Skill

The skills/SKILL.md file provides a Claude Code skill for interactive card creation. It supports:

  • /anki — manual card creation
  • /anki extract — scan conversation for extractable knowledge and create cards
  • /anki progress — show learning progress

Uninstallation

  1. Remove the anki entry from mcpServers in your MCP config
  2. Optionally remove the skill: rm -rf ~/.claude/skills/anki/
  3. Optionally delete the archive directory (~/.local/share/anki-mcp/ by default)
  4. Remove the repo: rm -rf /path/to/anki-mcp

Your Anki cards are stored in Anki itself — nothing is lost by removing this server.

Contributing

See CONTRIBUTING.md.

Security

See SECURITY.md.

License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Search servers.