anki-mcp

anki-mcp

Enables LLMs to interact with Anki flashcard collections, including deck management, note search, viewing contents, and editing fields.

Category
Visit Server

README

anki-mcp

A Model Context Protocol (MCP) server that enables LLMs to interact with your Anki flashcard collection. Read decks, search notes, view card contents, and update fields directly from your LLM tool of choice.

Features

  • Deck Management: List all available Anki decks
  • Note Search: Search notes using Anki's powerful search syntax
  • Note Viewing: View note contents and field values
  • Note Editing: Update note fields programmatically

Setup

Prerequisites

  1. Anki - Desktop application must be installed and running
  2. AnkiConnect - Add-on for API access (code: 2055492159)
  3. Bun 1.2.16 or later

Installation

# Install AnkiConnect in Anki
# Go to Tools → Add-ons → Get Add-ons... → Enter: 2055492159

# Clone and setup this project
git clone git@github.com:mybuddymichael/anki-mcp.git
cd anki-mcp
bun install

Usage

With Claude Desktop

Add to your Claude Desktop configuration file:

{
  "mcpServers": {
    "anki": {
      "command": "bun",
      "args": ["run", "/path/to/anki-mcp/index.ts"]
    }
  }
}

With Other MCP Clients

This server works with any MCP-compatible client. Look up the respective documentation for how to configure it.

Available tools

Tool Description Parameters
get-decks Lists all available Anki decks None
search-notes Search notes using Anki syntax query (string)
get-note-fields Get note field contents noteIds (number[])
get-model-names List note types/models None
get-model-field-names Get field names for a model modelName (string)
update-note-fields Update note field contents noteId (number), fields (object)
add-notes Add new notes to decks notes (array)
list-media-files List all media files None
check-media-exists Check if media file exists filename (string)
store-media Store media file to Anki media collection filePath (string)

Usage examples

Adding new cards

"Add a card with 'bonjour' on the front and 'hello' on the back to my French deck"

"Create a flashcard for the Spanish word 'biblioteca' meaning 'library' with the tag 'places'"

"Add these vocabulary words to my German deck: Haus (house), Auto (car), Buch (book)"

Finding cards

"Search for all cards in my Biology deck, then show me their contents"

First: Search returns note IDs → Second: Get field contents for those IDs

"Find my Spanish vocabulary cards tagged with 'food', then show me what they contain"

Updating cards

"Update the back of card #1234567890 to include pronunciation: 'biblioteca [bee-blee-oh-TEH-kah]'"

"Fix the typo on the front of that card - change 'recieve' to 'receive'"

Deck info

"What decks do I have available?"

"What note types exist in my Anki collection?"

"Show me the field names for my Cloze note type"

Related Links

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