Anki MCP Server logo

Anki MCP Server

by MCP-Mirror

The Anki MCP Server connects Claude Desktop to Anki, retrieving leech-tagged cards for analysis. It allows Claude to analyze your Anki learning data and provide insights.

View on GitHub

Last updated: N/A

What is Anki MCP Server?

An MCP (Model Context Protocol) server for Claude Desktop that connects to Anki via AnkiConnect and retrieves leech-tagged cards. It allows Claude to access and analyze your Anki data.

How to use Anki MCP Server?

  1. Install Anki and AnkiConnect. 2. Clone the repository and install dependencies. 3. Configure the server using environment variables. 4. Run the server. 5. Configure Claude Desktop to use the server. 6. Use the provided tools in Claude to analyze your Anki data.

Key features of Anki MCP Server

  • Connects to Anki via AnkiConnect API

  • Retrieves cards with 'leech' tags

  • Adds date-stamped review tags to cards

  • Provides comprehensive card data for analysis by Claude

Use cases of Anki MCP Server

  • Analyzing leech cards to improve study habits

  • Tracking reviewed cards with Claude

  • Getting suggestions from Claude on how to improve learning

  • Using Claude to understand difficult concepts in Anki cards

FAQ from Anki MCP Server

Could not connect to Anki

Make sure Anki is running and AnkiConnect is properly installed

No leech cards found

You don't have any cards tagged as 'leech' in Anki

Connection issues with localhost

Find your local IP address and update your .env file to use ANKI_CONNECT_URL=http://YOUR_LOCAL_IP:8765. Also, ensure AnkiConnect allows connections from your IP address.

Tag not appearing

Make sure you're providing valid card IDs to the tag_reviewed_cards tool

How do I test without affecting my Anki data?

Use the mock mode by setting ANKI_MOCK_MODE=true in your .env file and running the server with npm run start:test