xabierjj
MCP Serverxabierjjpublic

anki mcp

一个轻量级的 MCP 服务器,通过 AnkiConnect 插件将 AI 工具与 Anki 集成,支持创建卡片和管理牌组。

Repository Info

0
Stars
0
Forks
0
Watchers
1
Issues
TypeScript
Language
-
License

About This Server

一个轻量级的 MCP 服务器,通过 AnkiConnect 插件将 AI 工具与 Anki 集成,支持创建卡片和管理牌组。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

🧠 Anki MCP Server

This is a lightweight Model Context Protocol (MCP) server that integrates with AnkiConnect to enable AI tools like Claude or Cursor to create flashcards in Anki via local tooling.

It supports:

  • ✅ Creating new Anki decks
  • ✅ Adding single notes (cards)
  • ✅ Adding multiple notes at once

🧩 Installing AnkiConnect

To enable communication between this MCP server and Anki, you'll need to install the AnkiConnect plugin in your Anki desktop app.

📦 Steps to install AnkiConnect

  1. Open Anki Desktop (not AnkiWeb or the mobile app).
  2. Go to the menu: ToolsAdd-ons.
  3. Click on Get Add-ons....
  4. Enter the following code:
    2055492159
    
  5. Click OK, then restart Anki.

You should now see AnkiConnect listed in your installed add-ons.

To verify it's running, open your browser and visit:

http://127.0.0.1:8765

You should see:

{"apiVersion": "AnkiConnect v.6"}

🧠 Usage with Claude Desktop

To use this MCP server with Claude Desktop, add the following to your claude_desktop_config.json file:

✅ Local configuration (using npm + npm package)

{
  "mcpServers": {
    "anki": {
      "command": "npx",
      "args": ["anki-mcp"]
    }
  }
}

✅ Local configuration (using node + compiled code)

Make sure to run npm run build first to generate the dist/index.js file. Replace /absolute/path/to/anki-mcp/dist/index.js with the full absolute path to the compiled file on your system.

{
  "mcpServers": {
    "anki": {
      "command": "node",
      "args": [
        "/absolute/path/to/anki-mcp/dist/index.js"
      ]
    }
  }
}

💡 You can adapt the paths based on your machine and environment.

Once added, restart Claude Desktop and you should see your tool available inside Claude’s "Tools" tab.


🛠 Available Tools (MCP)

Tool NameDescription
anki_create_deckCreate a new Anki deck
anki_add_noteAdd a single flashcard to a deck
anki_add_notesAdd multiple flashcards at once
anki_get_decksList all existing Anki deck names

Quick Start

1

Clone the repository

git clone https://github.com/xabierjj/anki-mcp
2

Install dependencies

cd anki-mcp
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerxabierjj
Repoanki-mcp
LanguageTypeScript
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation