MCP.so
Sign In

Anki MCP Server

@MCP-Mirror

About Anki MCP Server

Mirror of

Basic information

Category

Other

License

MIT license

Runtime

node

Transports

stdio

Publisher

MCP-Mirror

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"
      ]
    }
  }
}

Tools

No tools detected

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

FAQ from Anki MCP Server

What are the prerequisites?

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

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).

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.

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.

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