Content
# Anki-MCP
An MCP (Model Control Protocol) server for interacting with the Anki flashcard application through the AnkiConnect API.
## Overview
Anki-MCP provides a bridge between your LLM's and Anki. This project implements the Anki-Connect API (https://git.sr.ht/~foosoft/anki-connect) as an MCP server.
## Prerequisites
- [Anki](https://apps.ankiweb.net/) installed on your system
- [AnkiConnect plugin](https://ankiweb.net/shared/info/2055492159) installed in Anki
- Node.js (v14 or later recommended)
## Installation
1. Clone this repository
2. Install dependencies with `npm install`
3. Configure your MCP settings (below) to include the Anki-MCP server
## Configuration
Depending your MCP host, add the following to your `mcp_settings.json` file:
```json
"anki-connect": {
"command": "node",
"args": [
"/path/to/anki-mcp/index.js"
],
"disabled": false,
"autoApprove": []
}
```
Replace `/path/to/anki-mcp/index.js` with the actual path to your installation.
## Usage
**Important**: Anki must be running with the AnkiConnect plugin active for this MCP server to work.
Once configured, you can use the Anki-MCP server to:
- Create and update flashcards
- Manage decks
- Query card information
- Execute all Anki operations available from [AnkiConnect plugin](https://ankiweb.net/shared/info/2055492159)
## Available Tools
The server provides tools for all operations supported by AnkiConnect, including:
- Card actions (getEaseFactors, suspend, unsuspend, etc.)
- Deck actions (deckNames, createDeck, changeDeck, etc.)
- Note actions (addNote, updateNote, findNotes, etc.)
- Media actions (storeMediaFile, retrieveMediaFile, etc.)
- And many more
## License
[GPL-3.0](LICENSE)
## Acknowledgments
- AnkiConnect (https://git.sr.ht/~foosoft/anki-connect) for providing the API that makes this possible
- The Anki team for their incredible flashcard application
Connection Info
You Might Also Like
markitdown
Python tool for converting files and office documents to Markdown.
OpenAI Whisper
OpenAI Whisper MCP Server - 基于本地 Whisper CLI 的离线语音识别与翻译,无需 API Key,支持...
claude-flow
Claude-Flow v2.7.0 is an enterprise AI orchestration platform.
ai-engineering-from-scratch
Learn it. Build it. Ship it for others. The most comprehensive open-source...
oh-my-opencode
Background agents · Curated agents like oracle, librarians, frontend...
hyperframes
Write HTML. Render video. Built for agents.