anki-mcp Server logo

anki-mcp Server

by CamdenClark

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, and tools for creating and managing Anki notes.

View on GitHub

Last updated: N/A

What is anki-mcp Server?

An MCP server designed to integrate with Anki using the AnkiConnect plugin. It provides a structured way to interact with Anki decks, note models, and notes through URIs and a set of tools.

How to use anki-mcp Server?

  1. Install dependencies using npm install. 2. Build the server using npm run build. 3. Configure the server in your Claude Desktop config file (claude_desktop_config.json) by adding the server details including the command to execute the server. 4. Debug using the MCP Inspector with npm run inspector.

Key features of anki-mcp Server

  • 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

  • addNote and addNotes tools for creating notes

  • Integration with AnkiConnect API

Use cases of anki-mcp Server

  • Programmatically managing Anki decks and notes

  • Integrating Anki with other applications via MCP

  • Creating custom tools for interacting with Anki data

  • Bulk creation of Anki notes from external data sources

FAQ from anki-mcp Server

What is MCP?

MCP stands for Model Context Protocol. It's a protocol for communication between applications.

What is AnkiConnect?

AnkiConnect is an Anki add-on that provides an API for interacting with Anki decks and notes.

How do I configure the server?

Add the server config to your Claude Desktop's claude_desktop_config.json file with the correct command and arguments.

How do I debug the server?

Use the MCP Inspector by running npm run inspector.

What dependencies are required?

The server requires Node.js and npm. Install dependencies with npm install.