Koskamo

Anki MCP

Anki MCP allows AI agents to manage local Anki notes, cards, decks, note types, media, and deck packages via the AnkiConnect interface. It enables searching, creating, and editing notes, managing decks and cards, previewing card HTML/CSS, and working with media and .apkg deck packages. The server runs as a stdio process launched by the MCP client, requiring Anki Desktop and the AnkiConnect add-on to be running locally.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

Anki MCP logo, by RyhusCommunity listingLocal stdioSource reviewed; not executedPublished by Ryhus
You need:Install Node.js 24 or newer with npminstall AnkiConnect via Tools → Add-ons → Get Add-ons with code 2055492159Your MCP client is the app you chat with, not Anki Desktop. It needs to support launching local MCP servers (also called stdio servers)
Vendor documentation

What you can do with it

  • Search, create, and edit notes in Anki
  • Manage decks and cards
  • Preview card HTML/CSS
  • Work with media and .apkg deck packages

Source and maintenance

Community listingRegistry 0.1.1
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

@ryhus/anki-mcp 0.1.1

npmnpx
@ryhus/anki-mcp package definition
{
  "version": "0.1.1",
  "transport": "stdio",
  "identifier": "@ryhus/anki-mcp",
  "runtimeHint": "npx",
  "registryType": "npm",
  "registryBaseUrl": "https://registry.npmjs.org",
  "environmentVariables": [
    {
      "name": "ANKI_URL",
      "format": "string",
      "default": "http://127.0.0.1:8765",
      "isRequired": true,
      "description": "AnkiConnect base URL on your computer. Keep Anki Desktop open; omit /api/v1."
    },
    {
      "name": "ANKI_API_MODE",
      "format": "string",
      "choices": [
        "v1",
        "legacy"
      ],
      "default": "v1",
      "description": "Use v1 for the full tool set with compatible AnkiConnect, or legacy for older add-ons."
    },
    {
      "name": "ANKI_REQUEST_TIMEOUT_MS",
      "format": "number",
      "default": "30000",
      "description": "Request deadline in integer milliseconds, including queue wait: 1 to 300000."
    },
    {
      "name": "ANKI_MEDIA_IMPORT_DIRS",
      "format": "string",
      "description": "Optional trusted local media folders. Separate with : on macOS/Linux or ; on Windows."
    },
    {
      "name": "ANKI_PACKAGE_IMPORT_DIR",
      "format": "filepath",
      "description": "Optional existing absolute folder for local .apkg imports. Requires API v1."
    },
    {
      "name": "ANKI_PACKAGE_EXPORT_DIR",
      "format": "filepath",
      "description": "Optional existing absolute folder for local .apkg exports. Requires API v1."
    }
  ]
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "anki-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ryhus/anki-mcp@0.1.1"
      ],
      "env": {
        "ANKI_URL": "<YOUR_ANKI_URL>",
        "ANKI_API_MODE": "<YOUR_ANKI_API_MODE>",
        "ANKI_REQUEST_TIMEOUT_MS": "<YOUR_ANKI_REQUEST_TIMEOUT_MS>",
        "ANKI_MEDIA_IMPORT_DIRS": "<YOUR_ANKI_MEDIA_IMPORT_DIRS>",
        "ANKI_PACKAGE_IMPORT_DIR": "<YOUR_ANKI_PACKAGE_IMPORT_DIR>",
        "ANKI_PACKAGE_EXPORT_DIR": "<YOUR_ANKI_PACKAGE_EXPORT_DIR>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "anki-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ryhus/anki-mcp@0.1.1"
      ],
      "env": {
        "ANKI_URL": "<YOUR_ANKI_URL>",
        "ANKI_API_MODE": "<YOUR_ANKI_API_MODE>",
        "ANKI_REQUEST_TIMEOUT_MS": "<YOUR_ANKI_REQUEST_TIMEOUT_MS>",
        "ANKI_MEDIA_IMPORT_DIRS": "<YOUR_ANKI_MEDIA_IMPORT_DIRS>",
        "ANKI_PACKAGE_IMPORT_DIR": "<YOUR_ANKI_PACKAGE_IMPORT_DIR>",
        "ANKI_PACKAGE_EXPORT_DIR": "<YOUR_ANKI_PACKAGE_EXPORT_DIR>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "anki-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ryhus/anki-mcp@0.1.1"
      ],
      "env": {
        "ANKI_URL": "<YOUR_ANKI_URL>",
        "ANKI_API_MODE": "<YOUR_ANKI_API_MODE>",
        "ANKI_REQUEST_TIMEOUT_MS": "<YOUR_ANKI_REQUEST_TIMEOUT_MS>",
        "ANKI_MEDIA_IMPORT_DIRS": "<YOUR_ANKI_MEDIA_IMPORT_DIRS>",
        "ANKI_PACKAGE_IMPORT_DIR": "<YOUR_ANKI_PACKAGE_IMPORT_DIR>",
        "ANKI_PACKAGE_EXPORT_DIR": "<YOUR_ANKI_PACKAGE_EXPORT_DIR>"
      }
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "anki-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ryhus/anki-mcp@0.1.1"
      ],
      "env": {
        "ANKI_URL": "<YOUR_ANKI_URL>",
        "ANKI_API_MODE": "<YOUR_ANKI_API_MODE>",
        "ANKI_REQUEST_TIMEOUT_MS": "<YOUR_ANKI_REQUEST_TIMEOUT_MS>",
        "ANKI_MEDIA_IMPORT_DIRS": "<YOUR_ANKI_MEDIA_IMPORT_DIRS>",
        "ANKI_PACKAGE_IMPORT_DIR": "<YOUR_ANKI_PACKAGE_IMPORT_DIR>",
        "ANKI_PACKAGE_EXPORT_DIR": "<YOUR_ANKI_PACKAGE_EXPORT_DIR>"
      }
    }
  }
}

Let your agent find its tools

Find servers like Anki MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.