MCP.so
登录

Anki MCP Server

@greycodee

基本信息

分类

其他

传输方式

stdio

作者

greycodee

关于 Anki MCP Server

This project provides an MCP (Model Context Protocol) server that bridges communication with the AnkiConnect add-on for Anki.

Anki MCP Server 配置

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

{
  "mcpServers": {
    "anki-mcp-server-greycodee": {
      "command": "uv",
      "args": [
        "sync"
      ]
    }
  }
}

Anki MCP Server 工具

工具列表暂未提供

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

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

概览

What is Anki MCP Server?

Anki MCP Server bridges the Model Context Protocol (MCP) to the Anki spaced repetition software via the Anki-Connect add-on. It allows MCP-compatible clients, such as AI assistants, to interact with your Anki collection by managing decks, cards, and notes.

How to use Anki MCP Server?

Install dependencies with uv sync after cloning the repository. Start the server by running uv run python main.py (stdio transport), or uv run mcp dev main.py for interactive testing, or uv run mcp install main.py --name "Anki Bridge" to register with Claude Desktop. Before using any tool, call anki_request_permission to authorize the connection.

Key features of Anki MCP Server

  • Deck management: create, list, delete, move cards, get stats.
  • Card management: find, suspend, unsuspend, forget, relearn.
  • Note management: add, update, find, tag, and delete notes.
  • Model management: list note types and their fields.
  • Synchronization with AnkiWeb via anki_sync.
  • Exposes a comprehensive set of Anki-Connect actions as MCP tools.

Use cases of Anki MCP Server

  • Automate flashcard creation from AI-generated content.
  • Bulk update or tag notes across an Anki collection.
  • Move cards between decks for better organization.
  • Suspend or relearn cards programmatically.
  • Sync the local collection with AnkiWeb from a connected client.

常见问题

1

What are the prerequisites?

You need Anki installed and running, the Anki-Connect add-on installed and listening on `http://127.0.0.1:8765`, Python (compatible version), and `uv` for environment management.

2

How do I run the server?

You can run it directly via `uv run python main.py`, in development mode with `uv run mcp dev main.py`, or install it for Claude Desktop using `uv run mcp install main.py --name "Anki Bridge"`.

3

What is the first action I should take?

Call `anki_request_permission` first. If the client’s origin isn’t trusted, a confirmation popup will appear in Anki.

4

Can I change the Anki-Connect URL?

Yes. The server uses the `ANKICONNECT_URL` constant in `main.py` (default `http://127.0.0.1:8765`). You can modify this constant to use a different address or port.

5

How do I install it for Claude Desktop?

Run `uv run mcp install main.py --name "Anki Bridge"`. This makes the Anki tools available within the Claude Desktop assistant.

评论

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