Back to Home
ankimcp icon

anki-mcp-server

Verified Safe

by ankimcp

Overview

This server seamlessly integrates Anki with AI assistants via the Model Context Protocol (MCP), enabling natural language interaction, dynamic note creation/editing, and interactive review sessions.

Installation

Run Command
npx anki-mcp-server

Environment Variables

  • ALLOWED_ORIGINS
  • PORT
  • HOST
  • ANKI_CONNECT_URL
  • ANKI_CONNECT_API_VERSION
  • ANKI_CONNECT_API_KEY
  • ANKI_CONNECT_TIMEOUT
  • MCP_SERVER_NAME
  • MCP_SERVER_VERSION
  • LOG_LEVEL

Security Notes

The server includes an `OriginValidationGuard` to prevent DNS rebinding attacks on its HTTP interface, validating `Origin` and `Referer` headers against configurable allowed patterns (defaulting to localhost/127.0.0.1). Communication with Anki is handled via the local AnkiConnect plugin, limiting network exposure. The optional `ngrok` integration for public access is opt-in and requires the user to perform external setup, placing responsibility on the user. No hardcoded secrets were identified.

Similar Servers

Stats

Interest Score60
Security Score9
Cost ClassHigh
Avg Tokens400
Stars80
Forks2
Last Update2026-01-15

Tags

AnkiAI AssistantFlashcardsSpaced RepetitionMCP