Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

anki-mcp-server

MCP.Pizza Chef: CamdenClark

The anki-mcp-server is a TypeScript-based Model Context Protocol server that integrates with Anki through the AnkiConnect plugin. It exposes Anki decks and note models as structured resources with unique URIs, enabling LLMs to access and manipulate flashcard data programmatically. The server provides tools to list decks and models, retrieve model details, and create single or bulk notes with specified fields and tags. This integration facilitates advanced AI-driven workflows for managing Anki flashcards, demonstrating core MCP concepts such as resource representation and tool invocation within the Anki ecosystem.

Use This MCP server To

Access and list Anki decks programmatically Retrieve detailed note model information Create single Anki flashcards via API Bulk add multiple notes to Anki decks Integrate Anki flashcard management into AI workflows

README

anki-mcp MCP Server

A server to integrate with Anki via the AnkiConnect plugin

This is a TypeScript-based MCP server that integrates with Anki via the AnkiConnect plugin. It demonstrates core MCP concepts by providing:

  • Resources representing Anki decks and note models with URIs
  • Tools for creating and managing Anki notes
  • Integration with AnkiConnect API

Features

Resources

  • List and access Anki decks via anki://decks/{id} URIs
  • List and access note models via anki://models/{id} URIs
  • JSON representation of Anki objects

Tools

  • listDecks - Get names of all decks
  • listModels - Get names of all note models
  • getModel - Get details of a specific note model
  • addNote - Create a single note
    • Specify deck name, model name, fields and tags
  • addNotes - Create multiple notes in bulk
    • Create many notes with specified parameters

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Installation

To use with Claude Desktop, add the server config:

On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "anki-mcp": {
      "command": "node",
      "args": ["d:\\anki-mcp-server\\build\\index.js"]
    }
  }
}

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.

anki-mcp-server FAQ

How do I install the anki-mcp-server?
Install dependencies with 'npm install' and build the server using 'npm run build'.
What is required to connect anki-mcp-server to Anki?
You need the AnkiConnect plugin installed and running in your Anki desktop application.
Can I create multiple notes at once with anki-mcp-server?
Yes, the 'addNotes' tool allows bulk creation of multiple notes with specified parameters.
How does anki-mcp-server represent Anki decks and models?
Decks and note models are exposed as resources with URIs like 'anki://decks/{id}' and 'anki://models/{id}'.
Is anki-mcp-server limited to a specific programming language?
The server is implemented in TypeScript but can be used with any MCP client supporting the protocol.
Can I retrieve the names of all decks and note models?
Yes, the server provides 'listDecks' and 'listModels' tools for this purpose.
Does anki-mcp-server support integration with multiple LLM providers?
Yes, it works with MCP clients that can connect to OpenAI, Claude, Gemini, and other LLM providers.
How do I specify fields and tags when adding notes?
When using 'addNote' or 'addNotes', you provide deck name, model name, fields, and tags as parameters.