MCP.so
Sign In

Anki MCP Server

@MCP-Mirror

Basic information

Category

Other

License

MIT license

Transports

stdio

Author

MCP-Mirror

About Anki MCP Server

Mirror of

Anki MCP Server config

Add this server to your MCP-compatible client using the configuration below.

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

Anki MCP Server tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

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

Frequently asked questions

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.

Comments

More Other MCP servers