Enables automated creation and generation of Anki flashcard decks with rich CSS templates, media asset embedding, and secure file handling through genanki integration
genanki-mcp
Automated Anki deck generation service built with genanki and the Model Context Protocol (MCP).
Focuses on dependable deck creation, strict media sandboxing, and keeping the workflow lean—nothing more.
Highlights
Streamable MCP HTTP tool that plugs into any MCP-compliant client
Agents can craft rich CSS templates and embed media assets safely
Temporary download links (default expiry 600 seconds) for
.apkg
retrievalMedia path sandbox prevents out-of-scope file access and orphaned assets
Project Layout
Quick Start
Requirements
Python ≥ 3.13
Dependency management via uv (recommended) or
pip
Install Dependencies
Configure Environment Variables
Duplicate .envexample
to .env
and adjust as needed.
Variable | Description | Default |
| Uvicorn/FastMCP listening port |
|
| Public IP/host used to compose download links |
|
| Optional bearer token protecting tool access | (empty) |
If TOKEN
is omitted, the service skips authentication. Set it in production environments.
Run the Service
FastMCP exposes the tool at http://0.0.0.0:<PORT>/anki
and temporary downloads at http://0.0.0.0:<PORT>/downloads
.
Usage
Connect with any MCP-capable client. By default the MCP endpoint listens on http://127.0.0.1:10099/anki
.
Cherry Studio example configuration and workflow:
License
MIT License
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Enables automated generation of Anki flashcard decks with rich CSS templates and media assets. Provides secure deck creation with sandboxed media handling and temporary download links for .apkg files.