Anki MCP Server logo

Anki MCP Server

Community
zlatanpham

An MCP (Model Context Protocol) server that provides tools for interacting with the Anki API. This server allows AI assistants to manage Anki decks and cards through simple tool calls.

Publisherzlatanpham
Repositoryanki-mcp
LanguageJavaScript
Forks
1
Stars
2
Available tools
6
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Anki MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 6 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    2 stars and 1 forks from the linked repository.

Anki MCP Server

An MCP (Model Context Protocol) server that provides tools for interacting with the Anki API. This server allows AI assistants to manage Anki decks and cards through simple tool calls.

Features

  • List Anki decks with pagination
  • Create new decks
  • Add cards (basic and cloze types)
  • Batch add multiple cards
  • Get review queue with filtering options
  • Support for dynamically loading additional tools from an external API

Available Tools

  1. listDecks - List all Anki decks with optional pagination
  2. createDeck - Create a new Anki deck
  3. addCardsBatch - Add multiple cards to a deck in batch
  4. addBasicCard - Add a single basic card to a deck
  5. addClozeCard - Add a cloze deletion card to a deck
  6. getReviewQueue - Get cards due for review with filtering options

Installation

bash
npm install -g @x-mcp/anki
# or
pnpm add -g @x-mcp/anki

Development

bash
# Install dependencies
pnpm install

# Build the project
pnpm run build

# Run in development mode (auto-restart on changes)
pnpm run dev

# Run the server
pnpm start

# Lint and format code
pnpm run lint
pnpm run format

Configuration

MCP Client Configuration

Add this to your MCP client settings:

json
{
  "mcpServers": {
    "anki-mcp": {
      "command": "npx",
      "args": ["-y", "@x-mcp/anki@latest"],
      "env": {
        "ANKI_BASE_URL": "http://localhost:3000", // Anki API base URL
        "ANKI_API_KEY": "ank_YOUR_API_KEY_HERE" // Your Anki API key
      }
    }
  }
}

Environment Variables

Create a .env file:

bash
# Required: Anki API configuration
ANKI_BASE_URL=http://localhost:3000/api/v1
ANKI_API_KEY=ank_YOUR_API_KEY_HERE

# Optional: External tools API configuration
API_URL=https://your-api-endpoint.com/tools
API_KEY=your-api-key

Usage Example

Once configured, the AI assistant can use commands like:

  • "List all my Anki decks"
  • "Create a new deck called 'Spanish Vocabulary'"
  • "Add a card with front 'Hello' and back 'Hola' to my Spanish deck"
  • "Show me cards due for review"

Each tool makes direct HTTP requests to the Anki API and returns the response data.

API Requirements

The tools interact with an Anki API that should have the following endpoints:

  • GET /api/v1/decks - List decks
  • POST /api/v1/decks - Create deck
  • POST /api/v1/decks/{deckId}/cards/batch - Add cards
  • GET /api/v1/study/queue - Get review queue

License

MIT

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "anki-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@x-mcp/anki@latest"
      ],
      "env": {
        "ANKI_BASE_URL": "http://localhost:3000",
        "ANKI_API_KEY": "ank_YOUR_API_KEY_HERE"
      }
    }
  }
}

Available Tools

  • listDecks

    List all Anki decks with optional pagination

  • createDeck

    Create a new Anki deck

  • addCardsBatch

    Add multiple cards to a deck in batch

  • addBasicCard

    Add a single basic card to a deck

  • addClozeCard

    Add a cloze deletion card to a deck

  • getReviewQueue

    Get cards due for review with filtering options

Use Anki MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Anki MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Anki MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Anki MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "anki-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@x-mcp/anki@latest"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Anki MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Anki MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Anki MCP Server to help me with this task?
Anki MCP Server
Sure. I read it.
Here is what I found using Anki MCP Server.

Frequently asked questions

What is the Anki MCP Server MCP server used for?

Anki MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Anki MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Anki MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Anki MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Anki MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Anki MCP Server MCP to TypingMind?

Anki MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Anki MCP Server MCP provide in TypingMind?

Anki MCP Server exposes 6 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Anki MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Anki MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Server Status

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇