anki-mcp

anki-mcp

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

Category
Visit Server

README

anki-mcp

License: MIT Python 3.13+ CI

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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured