Anki MCP Server Integration
Integrate Anki flashcards seamlessly with AI assistants for automated reviews, smart flashcard creation, and adaptive study workflows via the Anki MCP Server.

What does “Anki” MCP Server do?
The Anki MCP (Model Context Protocol) Server bridges the Anki desktop application with AI assistants by leveraging the Anki-Connect add-on. This server enables seamless access to Anki’s flashcard database, allowing AI models to interact programmatically with your decks. Tasks such as retrieving cards due for review, accessing unseen or new cards, and even creating new flashcards can be executed directly through the MCP interface. Developers and users can thus enhance their study workflows by integrating LLMs for smart review, automatic flashcard creation, and more, all built on top of Anki’s robust spaced repetition system. This integration is particularly valuable for educational, productivity, and memory-augmentation tools seeking to automate or enrich flashcard-based learning.
List of Prompts
No prompt templates are listed or described in the repository.
List of Resources
- anki://search/deckcurrent
- Returns all cards from the current deck. Equivalent of
deck:current
in Anki.
- Returns all cards from the current deck. Equivalent of
- anki://search/isdue
- Returns cards in review and learning waiting to be studied. Equivalent of
is:due
in Anki.
- Returns cards in review and learning waiting to be studied. Equivalent of
- anki://search/isnew
- Returns all unseen cards. Equivalent of
is:new
in Anki.
- Returns all unseen cards. Equivalent of
List of Tools
- update_cards
- Marks cards with given card IDs as answered and assigns them an ease score (1 = Again, 4 = Easy).
- Inputs: Array of objects with
cardId
(number) andease
(number).
- add_card
- Creates a new card in the Default Anki deck.
- Inputs:
front
(string),back
(string).
- get_due_cards
- Returns a specified number of cards currently due for review.
- Input:
num
(number).
- get_new_cards
- Returns a specified number of new cards.
- Input:
num
(number).
Use Cases of this MCP Server
- Automated Card Review
- Integrate with an AI assistant to automatically fetch and review cards that are due, streamlining study sessions.
- Intelligent Flashcard Creation
- Use LLMs to generate new flashcards on-demand based on user notes or external content, adding them directly to Anki.
- Progress Monitoring
- Retrieve the state of new, seen, and due cards to help users visualize and manage their learning progress.
- Adaptive Learning
- Adjust card scheduling or recommend reviews based on user performance, leveraging AI insights with Anki’s scheduling.
- Seamless Study Workflows
- Connect Anki review tasks with other productivity or study tools to create an integrated learning environment.
How to set it up
Windsurf
- Ensure you have Node.js installed and the Anki-Connect add-on enabled in your Anki desktop.
- Install the Anki MCP Server:
npm install @anki/mcp-server@latest
- Edit your Windsurf configuration file to add the MCP server:
{ "mcpServers": { "anki-mcp-server": { "command": "/path/to/anki-mcp-server/build/index.js" } } }
- Save the config and restart Windsurf.
- Verify the server is running by checking for Anki MCP integration in your AI assistant.
Claude
- Ensure Node.js is installed and Anki-Connect is running in Anki.
- Install Anki MCP Server.
- Locate and edit the Claude Desktop config file:
On MacOS:~/Library/Application Support/Claude/claude_desktop_config.json
On Windows:%APPDATA%/Claude/claude_desktop_config.json
- Add the following configuration:
{ "mcpServers": { "anki-mcp-server": { "command": "/path/to/anki-mcp-server/build/index.js" } } }
- Save and restart Claude. Check that Anki MCP Server is accessible.
Cursor
- Install Node.js and ensure Anki-Connect is enabled.
- Install Anki MCP Server.
- Edit the Cursor configuration to include:
{ "mcpServers": { "anki-mcp-server": { "command": "/path/to/anki-mcp-server/build/index.js" } } }
- Save and restart Cursor to enable the server.
Cline
- Set up Node.js and Anki-Connect.
- Install Anki MCP Server.
- Update your Cline config:
{ "mcpServers": { "anki-mcp-server": { "command": "/path/to/anki-mcp-server/build/index.js" } } }
- Save the file and restart Cline to activate the server.
Securing API Keys
If you need to provide secrets or API keys, use environment variables. Example:
{
"mcpServers": {
"anki-mcp-server": {
"command": "/path/to/anki-mcp-server/build/index.js",
"env": {
"ANKI_CONNECT_API_KEY": "${ANKI_CONNECT_API_KEY}"
},
"inputs": {
"apiKey": "${ANKI_CONNECT_API_KEY}"
}
}
}
}
Note: Replace ANKI_CONNECT_API_KEY
with your actual environment variable.
How to use this MCP inside flows
Using MCP in FlowHunt
To integrate MCP servers into your FlowHunt workflow, start by adding the MCP component to your flow and connecting it to your AI agent:

Click on the MCP component to open the configuration panel. In the system MCP configuration section, insert your MCP server details using this JSON format:
{
"anki-mcp-server": {
"transport": "streamable_http",
"url": "https://yourmcpserver.example/pathtothemcp/url"
}
}
Once configured, the AI agent is now able to use this MCP as a tool with access to all its functions and capabilities. Remember to change “anki-mcp-server” to whatever the actual name of your MCP server is and replace the URL with your own MCP server URL.
Overview
Section | Availability | Details/Notes |
---|---|---|
Overview | ✅ | |
List of Prompts | ⛔ | No prompts/templates found in repo |
List of Resources | ✅ | 3 resources: deckcurrent, isdue, isnew |
List of Tools | ✅ | 4 tools: update_cards, add_card, get_due, get_new |
Securing API Keys | ✅ | Configuration example with env vars provided |
Sampling Support (less important in evaluation) | ⛔ | Not mentioned |
Based on the available information, the Anki MCP Server offers solid integration for flashcard automation and review. The lack of prompt templates and sampling features limits its flexibility, but its toolset is robust for its intended purpose. The documentation is clear, and setup instructions are available. Overall, this MCP scores a 7/10 for utility and clarity, especially for Anki users.
MCP Score
Has a LICENSE | ✅ MIT |
---|---|
Has at least one tool | ✅ |
Number of Forks | 21 |
Number of Stars | 131 |
Frequently asked questions
- What is the Anki MCP Server?
The Anki MCP Server provides a bridge between the Anki desktop app and AI assistants, allowing programmatic access to your flashcards for tasks such as automated reviews, flashcard creation, and adaptive study routines.
- What kind of tasks can I automate with the Anki MCP Server?
You can fetch due or new cards, mark cards as reviewed, create new cards, and monitor your study progress—all from AI tools or FlowHunt workflows.
- Do I need Anki-Connect to use this server?
Yes, Anki-Connect must be installed and running in your Anki Desktop app for the MCP Server to function.
- How secure is my data when connecting to Anki MCP Server?
You can secure API keys and sensitive information using environment variables, as shown in the setup instructions. Always ensure you use secure channels and strong keys.
- Can I use this integration for adaptive learning?
Absolutely! By connecting Anki to AI, you can enable intelligent review scheduling, automatic card generation, and personalized study sessions based on your progress.
Supercharge Your Anki with AI
Connect your Anki study workflow to FlowHunt and AI assistants for smart, automated flashcard management and personalized review sessions.