Skip to main content
Glama

Anki MCP Server

by scorzeth

Anki MCP 服务器

连接到本地运行的 Anki 的 MCP 服务器实现,提供卡片审查和创建。

该服务器设计用于与Anki 桌面应用程序Anki-Connect插件配合使用。

使用前请确保已安装该附加组件。

资源

  • anki://search/deckcurrent
    • 返回当前牌组中的所有牌
    • 相当于 Anki 中的deck:current
  • anki://search/isdue
    • 返回等待学习的复习卡片
    • Anki 中的is:due对应词
  • anki://search/isnew
    • 返回所有未见过的卡
    • Anki 中is:new的对应词

工具

  • 更新卡片
    • 将具有给定卡片 ID 的卡片标记为已回答,并给出 1(再次)至 4(简单)之间的难度分数
    • 输入:
      • answers (数组):具有cardId (数字)和ease (数字)字段的对象数组
  • 添加卡
    • 在默认 Anki 卡组中创建新卡片
    • 输入:
      • front (字符串):卡片正面
      • back (字符串):卡片背面
  • 获取到期卡
    • 返回当前需要审核的卡片数量
    • 输入:
      • num (数字):卡片数量
  • 获取新卡
    • 返回新卡片中的 n 个卡片
    • 输入:
      • num (数字):卡片数量

发展

安装依赖项:

npm install

构建服务器:

npm run build

对于使用自动重建的开发:

npm run watch

配置

要与 Claude Desktop 一起使用,请添加服务器配置:

在 MacOS 上: ~/Library/Application Support/Claude/claude_desktop_config.json在 Windows 上: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "anki-mcp-server": { "command": "/path/to/anki-mcp-server/build/index.js" } } }

调试

由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。我们推荐使用MCP Inspector ,它以包脚本的形式提供:

npm run inspector

检查器将提供一个 URL 来访问浏览器中的调试工具。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

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

连接到本地运行的 Anki 的服务器实现,可通过模型上下文协议进行卡片审查和创建。

  1. 资源
    1. 工具
      1. 发展
        1. 配置
          1. 调试

        Related MCP Servers

        • A
          security
          F
          license
          A
          quality
          A Model Context Protocol server that enables LLMs to interact with Anki flashcard software through AnkiConnect, allowing for creation and management of flashcards, decks, and note types.
          Last updated -
          10
          206
          30
          TypeScript
          • Apple
        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol server that provides tools for interacting with Trello boards, enabling seamless management of cards, lists, and activities while handling rate limiting and type safety.
          Last updated -
          10
          3
          JavaScript
          MIT License
          • Apple
        • -
          security
          A
          license
          -
          quality
          A TypeScript-based server that integrates with Anki via the AnkiConnect plugin, allowing you to manage flashcard decks, note models, and create Anki notes using natural language.
          Last updated -
          22
          JavaScript
          MIT License
          • Apple
        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol server providing utility tools for development and testing, offering functionalities like personalized greetings, random card drawing, and datetime formatting with an extensible architecture.
          Last updated -
          19
          464
          2
          TypeScript
          MIT License
          • Apple
          • Linux

        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/scorzeth/anki-mcp-server'

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