Anki MCP Server logo

Anki MCP Server

by captain-blue210

Anki MCP Server is a Model Context Protocol server designed for Claude Desktop. It connects to Anki via AnkiConnect to retrieve and manage leech-tagged cards for enhanced study analysis.

View on GitHub

Last updated: N/A

What is Anki MCP Server?

An Anki MCP (Model Context Protocol) server for Claude Desktop. It acts as a bridge between Claude and Anki, allowing Claude to access and analyze your Anki leech cards.

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 available tools in Claude to analyze and tag your Anki cards.

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

  • Can be used with Claude Desktop

Use cases of Anki MCP Server

  • Analyzing Anki leech cards to identify problem areas

  • Getting suggestions from Claude on how to improve study habits based on card data

  • Tracking which cards have been reviewed with Claude

  • Improving the effectiveness of spaced repetition learning

  • Integrating Anki knowledge with Claude's AI capabilities

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, update your .env file, and ensure AnkiConnect allows connections from your IP.

Tag not appearing?

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

How to test without affecting Anki data?

Use the mock mode by setting ANKI_MOCK_MODE=true in your .env file and running the server in test mode.