mcpField
A
anki-mcp MCP Server

anki-mcp MCP Server

Local
github.com/CamdenClarkScience & Education80Updated 84w ago

About anki-mcp MCP Server

anki-mcp is a TypeScript MCP server that connects to Anki through the AnkiConnect plugin. It exposes decks and note models as resources and provides tools for creating notes.

Key features

  1. 01Deck and note model resources via anki:// URIs
  2. 02Tools to list decks, models and model details
  3. 03Single and bulk note creation
  4. 04Note creation with deck, model, fields and tags

Use cases

  1. 01Generating flashcards in bulk from an AI assistant
  2. 02Querying existing decks and note models from Claude Desktop

MCP support

The server exposes Anki decks and note models to MCP clients as resources and provides tools such as listDecks, listModels, getModel, addNote and addNotes.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project 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.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.