Back to Home
ankimcp icon

anki-mcp-server

Verified Safe

by ankimcp

Overview

Seamlessly integrates Anki with AI assistants through the Model Context Protocol for natural language interaction with flashcards and spaced repetition systems.

Installation

Run Command
npx @ankimcp/anki-mcp-server --ngrok

Environment Variables

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

Security Notes

The server includes an `OriginValidationGuard` to mitigate DNS rebinding attacks in HTTP mode, a critical security measure for local proxies. It binds to `127.0.0.1` by default and allows `ALLOWED_ORIGINS` to be configured. The `AnkiConnectClient` supports an optional API key. The `--ngrok` feature, while convenient, correctly warns users about the privacy implications of exposing a local service publicly. No `eval` or hardcoded sensitive data found.

Similar Servers

Stats

Interest Score58
Security Score9
Cost ClassMedium
Avg Tokens800
Stars52
Forks1
Last Update2025-12-14

Tags

AnkiMCPAIFlashcardsSpaced Repetition