Skip to main content
Glama

Clanki

by jasperket

Clanki - Claude 的 Anki 集成

MCP 服务器使 Claude 等 AI 助手能够通过模型上下文协议 (MCP) 与 Anki 抽认卡组进行交互。

特征

  • 创建和管理 Anki 卡组
  • 创建包含正面/背面内容的基本抽认卡
  • 创建完形填空卡
  • 更新现有卡片并完成填空
  • 添加和管理标签
  • 查看卡组内容和卡牌信息
  • 与 AnkiConnect 完全集成

先决条件

  • Anki安装并运行
  • 在 Anki 中安装AnkiConnect插件
  • Node.js 16 或更高版本

安装

  1. 克隆此存储库:
git clone https://github.com/yourusername/clanki.git cd clanki
  1. 安装依赖项:
npm install
  1. 构建项目:
npm run build

设置

  1. 确保 Anki 正在运行并且 AnkiConnect 插件已安装并启用
  2. 通过编辑claude_desktop_config.json配置 Claude for Desktop 以使用服务器:
{ "mcpServers": { "clanki": { "command": "node", "args": ["/absolute/path/to/clanki/build/index.js"] } } }

/absolute/path/to/clanki替换为 clanki 安装的实际路径。

可用工具

创建甲板

创建一个新的 Anki 卡组

  • 参数:
    • name :新卡组的名称

创建卡片

在指定的卡组中创建新的基本抽认卡

  • 参数:
    • deckName :要添加卡片的牌组的名称
    • front :卡片正面的内容
    • back :卡片背面的内容
    • tags :(可选)卡片的标签数组

创建完形填空卡片

在指定的牌组中创建新的完形填空删除卡

  • 参数:
    • deckName :要添加卡片的牌组的名称
    • text :使用 {{c1:}} 语法包含完形填空的文本
    • backExtra :(可选)卡片背面显示的额外信息
    • tags :(可选)卡片的标签数组

更新卡

更新现有的基本抽认卡

  • 参数:
    • noteId :要更新的注释的 ID
    • front :(可选)新的正面内容
    • back :(可选)新的背面内容
    • tags :(可选)卡片的新标签

更新完形填空卡片

更新现有的完形填空删除卡

  • 参数:
    • noteId :要更新的注释的 ID
    • text :(可选)带有完形填空删除的新文本
    • backExtra :(可选)背面的新附加信息
    • tags :(可选)卡片的新标签

发展

要修改或扩展服务器:

  1. 修改src/index.ts
  2. 使用npm run build重建
  3. 使用npx @modelcontextprotocol/inspector node build/index.js进行调试
-
security - not tested
F
license - not found
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

MCP 服务器使 Claude 等 AI 助手能够与 Anki 抽认卡组进行交互,从而允许用户通过自然语言对话创建、管理和更新抽认卡。

  1. 特征
    1. 先决条件
      1. 安装
        1. 设置
          1. 可用工具
            1. 创建甲板
            2. 创建卡片
            3. 创建完形填空卡片
            4. 更新卡
            5. 更新完形填空卡片
          2. 发展

            Related MCP Servers

            • A
              security
              F
              license
              A
              quality
              An MCP server that integrates Claude with Anki flashcards, allowing users to review due cards and create new flashcards directly through conversation.
              Last updated -
              6
              8
              Python
              • Apple
            • -
              security
              A
              license
              -
              quality
              An MCP server that enables Claude to interact with Port.io's AI agent, allowing users to trigger the agent with prompts and receive structured responses including status, output, and action items.
              Last updated -
              6
              Python
              MIT License
              • Linux
              • Apple
            • -
              security
              F
              license
              -
              quality
              An MCP server that allows AI assistants like Claude to execute terminal commands on the user's computer and return the output, functioning like a terminal through AI.
              Last updated -
              7
              Python
              • Apple
            • -
              security
              A
              license
              -
              quality
              An MCP server that enables AI assistants to control a web browser through natural language commands, allowing them to navigate websites and extract information via SSE transport.
              Last updated -
              505
              Python
              MIT License
              • Apple

            View all related MCP servers

            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/jasperket/clanki'

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