一个优化的 MCP (Model Context Protocol) 工具,通过 AnkiConnect 与 Anki 无缝集成,为AI助手提供强大的 Anki 操作能力。
一个优化的 MCP (Model Context Protocol) 工具,通过 AnkiConnect 与 Anki 无缝集成,为AI助手提供强大的 Anki 操作能力。. That is what the talktoanki mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.
The server publishes 14 tools. What each one is for:
Anki — 桌面版(需要安装 AnkiConnect 插件)anki_get_deck_names — 获取所有卡组列表anki_create_deck — 创建新卡组anki_get_deck_stats — 获取卡组统计信息anki_add_note — 添加新卡片anki_find_notes — 查询卡片anki_get_note_info — 获取卡片详细信息anki_sync — 同步Anki数据库anki_get_server_info — 获取服务器状态和配置信息anki_update_note — 更新现有卡片内容和标签anki_delete_notes — 批量删除卡片anki_move_notes — 将卡片移动到指定卡组Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.
Configuration is passed through the environment: ANKI_CONNECT_URL, ANKI_CONNECT_VERSION, LOG_LEVEL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. TalkToAnki's toolset — Anki, anki_get_deck_names, anki_create_deck and 11 more — is a fair guide to whether it matches your workflow. It is maintained by muxuuu; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| Anki | 桌面版(需要安装 AnkiConnect 插件) |
| anki_get_deck_names | 获取所有卡组列表 |
| anki_create_deck | 创建新卡组 |
| anki_get_deck_stats | 获取卡组统计信息 |
| anki_add_note | 添加新卡片 |
| anki_find_notes | 查询卡片 |
| anki_get_note_info | 获取卡片详细信息 |
| anki_sync | 同步Anki数据库 |
| anki_get_server_info | 获取服务器状态和配置信息 |
| anki_update_note | 更新现有卡片内容和标签 |
| anki_delete_notes | 批量删除卡片 |
| anki_move_notes | 将卡片移动到指定卡组 |
| anki_suspend_notes | 暂停或恢复卡片学习 |
| anki_get_due_cards | 获取到期需要复习的卡片信息 |
{
"mcpServers": {
"anki": {
"command": "python",
"args": ["/path/to/your/project/TalkToAnki/talktoanki_server.py"],
"env": {
"ANKI_CONNECT_URL": "http://localhost:8765",
"ANKI_CONNECT_VERSION": "6",
"LOG_LEVEL": "INFO"
}
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| ANKI_CONNECT_URL | Endpoint or connection string the server talks to. | Yes |
| ANKI_CONNECT_VERSION | Configuration value read at startup. | Optional |
| LOG_LEVEL | Configuration value read at startup. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.