Skip to main content
Glama
fabianissam

AnkiConnect MCP Server

by fabianissam

AnkiConnect MCP Server

用于 AnkiConnect 的 Python MCP 服务器。牌组复习助手: 逐张浏览牌组中的卡片,发现缺口(动词形式、变格),经批准后修复。

前提条件

  • Anki 2.1.x 正在后台运行

  • AnkiConnect 插件(安装代码:2055492159

  • Python 3.11+

验证 AnkiConnect:打开 http://127.0.0.1:8765 —— 你应该看到 AnkiConnect

Related MCP server: Anki MCP Server

安装

cd AnkiConnectMCP
python -m pip install -e .

Cursor MCP 配置

.cursor/mcp.json(或 Cursor Settings → MCP)中:

{
  "mcpServers": {
    "anki-connect": {
      "command": "python",
      "args": ["-m", "anki_connect_mcp.server"],
      "cwd": "C:/Users/Fabian/Desktop/Projekte/AnkiConnectMCP",
      "env": {
        "PYTHONPATH": "src",
        "ANKI_CONNECT_URL": "http://127.0.0.1:8765"
      }
    }
  }
}

代码变更后重新加载 MCP 服务器。

工作原理

典型会话 —— 无需 JSON,直接对话

Du:  „Geh mein Italienisch-Deck durch — Verben sollen alle Formen auf einer Karte haben“

KI:  list_deck_cards(deck_name="Italienisch", offset=0)
     → #1–#15 mit Front/Back

     Chat-Analyse:
     #3  mangiare — Partizip fehlt
     #7  il libro — nicht dekliniert
     Soll ich #3 anpassen?

Du:  „ja, Partizip mangiato“

KI:  BEFORE/AFTER im Chat + edit_card(note_id=…, back="…")

Du:  „weiter“ / „nächster Block“ / „#7 auch“

当存在待处理的 Run 时发送新的聊天消息 = 修订,而非盲目应用。

工具

工具

描述

list_decks

显示牌组名称

list_deck_cards

用于系统复习的带编号卡片页

get_card

查看一张卡片的详细信息

search_cards

定向搜索(动词、标签、文本)

edit_card

应用一项已批准的编辑

add_card

添加一张新卡片

安全

  • 读取工具绝不会修改 Anki。

  • 仅在 Cursor Run 批准后写入。

  • 没有删除工具。提供可选的 ALLOWED_DECKS 允许名单。

  • 一次只允许一个工具运行(服务器锁)。

许可证

MIT

Install Server
F
license - not found
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fabianissam/AnkiConnectMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server