# anki-mcp-server

> MCP Server

This repository provides an MCP server implementation that connects to a local Anki instance, enabling card review and creation functionalities through the Anki-Connect add-on, enhancing the Anki desktop app.

## Overview

- **Category:** Developer Tools
- **Language:** JavaScript
- **Stars:** 184
- **Forks:** 4
- **Owner:** scorzeth
- **GitHub:** https://github.com/scorzeth/anki-mcp-server
- **Created:** 2024-12-11T01:32:10+00:00
- **Updated:** 2025-03-27T14:47:59+00:00
- **Source:** https://model-context-protocol.com/servers/anki-mcp-server-card-review-creation

## Setup

## Setup

1.  Make sure you have the [Anki-Connect](https://foosoft.net/projects/anki-connect/) add-on installed in the Anki desktop app.
2.  Install dependencies: `npm install`
3.  Build the server: `npm run build`
4.  For development with auto-rebuild: `npm run watch`
5.  To use with Claude Desktop, add the server config to `~/Library/Application Support/Claude/claude_desktop_config.json` (MacOS) or `%APPDATA%/Claude/claude_desktop_config.json` (Windows) with the provided JSON configuration, adjusting the `command` path.
6.  For debugging, use the MCP Inspector: `npm run inspector`.

## Tools

## Available Tools

1.  **anki://search/deckcurrent** (Returns all cards from current deck)
2.  **anki://search/isdue** (Returns cards in review and learning waiting to be studied)
3.  **anki://search/isnew** (Returns all unseen cards)
4.  **update_cards** (Marks cards with given card IDs as answered and gives them an ease score)
5.  **add_card** (Creates a new card in the Default Anki deck)
6.  **get_due_cards** (Returns n number of cards currently due for review)
7.  **get_new_cards** (Returns n number of cards from new)
