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.
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
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
@ryhus/anki-mcp 0.1.1
{
"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.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"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
{
"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
{
"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
{
"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.