
camdenclark/anki-mcp-server 是从 https://github.com/camdenclark/anki-mcp-server. 导入的 MCP 服务器候选
概览
camdenclark/anki-mcp-server 是从 https://github.com/camdenclark/anki-mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
一个可以通过 AnkiConnect 插件与 Anki 集成的服务器
这是一个基于TypeScript的MCP服务器,通过AnkiConnect插件与Anki集成。它通过以下内容演示了核心MCP概念:
- 用 URI 表示 Anki 卡组和笔记模型的资源
- 创建和管理 Anki 笔记的工具
- 与 AnkiConnect API 的集成
特色
资源
- 通过
anki://decks/{id}URI列表和访问Anki卡组 - 通过
anki://models/{id}URI列表和访问笔记模型 - Anki 对象的 JSON 表示
工具
listDecks- 获取所有牌组名称listModels- 获取所有音符型号的名称getModel- 获取特定音符型号的详细信息addNote- 创建一个单一音符- 指定牌组名称、型号名称、字段和标签
addNotes- 批量创建多个笔记- 创建许多指定参数的音符
发展
安装依赖:
搭建服务器:
关于自动重建的开发:
安装
要配合Claude Desktop使用,添加服务器配置:
在 MacOS 上:~/Library/Application Support/Claude/claude_desktop_config.json
Windows版:%APPDATA%/Claude/claude_desktop_config.json
调试
本页由 AI 翻译,技术细节请以原文为准。
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 deckslistModels- Get names of all note modelsgetModel- Get details of a specific note modeladdNote- 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.
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"anki-mcp": {
"command": "node",
"args": ["d:\\anki-mcp-server\\build\\index.js"]
}
}
}