MCP.so
登录

Anki MCP Server

@MCP-Mirror

基本信息

分类

其他

许可证

MIT license

传输方式

stdio

作者

MCP-Mirror

关于 Anki MCP Server

Mirror of

Anki MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "anki": {
      "command": "node",
      "args": [
        "path/to/anki-mcp-server/dist/index.js"
      ]
    }
  }
}

Anki MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Anki MCP Server?

An MCP (Model Context Protocol) server for Claude Desktop that connects to Anki via AnkiConnect and retrieves leech-tagged cards. It also adds date-stamped review tags to cards and provides comprehensive card data for analysis by Claude.

How to use Anki MCP Server?

Ensure Anki is running with AnkiConnect installed. Clone the repository, install dependencies, build the project, and configure the .env file with the Anki Connect URL. Run npm start to start the server, then add the server to the mcpServers section in the Claude Desktop configuration file.

Key features of Anki MCP Server

  • Connects to Anki via AnkiConnect API
  • Retrieves cards with "leech" tags
  • Adds date-stamped review tags to cards
  • Provides comprehensive card data for analysis by Claude
  • Can be used with Claude Desktop

Use cases of Anki MCP Server

  • Analyze leech cards to improve study methods
  • Track which cards have been reviewed with date-stamped tags
  • Integrate Anki with Claude Desktop for AI-assisted card review

常见问题

1

What are the prerequisites?

Anki installed and running, AnkiConnect add-on installed in Anki, and Node.js with npm.

2

How do I configure the connection to Anki?

Set the `ANKI_CONNECT_URL` environment variable to your Anki Connect API URL (default: `http://localhost:8765`). If connecting to localhost doesn't work, use your computer's local IP address (e.g., `http://192.168.x.x:8765`).

3

What tools are available?

`get_leech_cards` retrieves cards tagged as leeches, with optional `detailed` and `count` parameters. `tag_reviewed_cards` adds a date-stamped review tag to specified card IDs, with optional `custom_tag_prefix`.

4

Is there a testing mode?

Yes, set `ANKI_MOCK_MODE=true` to simulate Anki operations without affecting actual data. Use `npm run start:test` or the `.env.test` file.

5

What if I get a connection error?

Make sure Anki is running and AnkiConnect is installed. If using localhost fails, find your local IP address and update `ANKI_CONNECT_URL` accordingly. Ensure AnkiConnect allows connections from your IP address.

评论

其他 分类下的更多 MCP 服务器