anki-agent
Provides tools for interacting with a local Anki collection through Anki's API, including checking the connection, listing and creating decks, listing note types, searching notes, and previewing and creating Basic and Cloze notes in batches, with guarded deletion of cards or decks after user confirmation and backup.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@anki-agentCreate 10 Cloze cards in the Biology deck from my lecture notes"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
anki-agent
I want to turn my study notes into Anki cards with Codex or Claude Code, without having an agent click through Anki every time.
This project gives AI agents a simple way to work with Anki through MCP (Model Context Protocol). Anki stays open in the background, while a local add-on and MCP server let the agent work with the collection through Anki's own API.
The add-on checks the connection, lists and creates decks, lists note types, searches notes, and previews and creates Basic and Cloze notes in batches. It also previews and deletes cards or decks, but only after you click Yes in Anki. A recovery backup must finish before anything is deleted. The connection is local and authenticated, with twelve defined tools.
The MVP has been tested with Anki 25.9.2 in a disposable profile, including a real MCP client. Preview shows proposed note content; it does not render card templates. Media and other note structures are outside the first version.
Default study prompt
The study_prompts folder includes a default prompt for turning course material into Anki Cloze cards. Fill in the deck, topic, assessment scope, and sources before using it with your agent.
Setup for Codex and Claude Code · Deletion and backups · Local text example · Architecture · Testing and packaging
Licensed under AGPL-3.0-or-later. No public release or AnkiWeb upload yet.
An independent project, not affiliated with Anki, OpenAI, or Anthropic.
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Manage Superlist tasks and lists in plain language from any MCP-compatible AI agent.
- FlipnemOAuthcom.flipnem
Build and study spaced-repetition flashcards with your agent.
Shared memory and actions for Claude, Kiro, OpenAI, Cursor, and other MCP-compatible AI clients.
Related MCP Servers
- FlicenseNot gradedqualityAmaintenanceExposes Anki flashcard collections to AI assistants via MCP, enabling AI-powered study sessions, card creation, deck management, and review workflows. Supports comprehensive collection operations including search, media management, and note type customization.81-
- FlicenseNot gradedqualityDmaintenanceProvides programmatic access to Anki flashcard operations through the AnkiConnect API, allowing users to list and create decks and cards. It enables seamless management of flashcards directly from MCP-compatible clients like Claude Desktop.-
- AlicenseBqualityCmaintenanceEnables AI assistants to manage Anki flashcards, decks, note types, tags, and media via AnkiConnect. Supports operations like adding, editing, finding, and syncing cards through a local MCP server.100MIT
- AlicenseAqualityCmaintenanceEnables reading and writing to your local Anki collection through AnkiConnect, allowing creation, update, and search of notes and decks from MCP clients like Claude Desktop.11MIT