Marks cards with given card IDs as answered and gives them an ease score between 1 (Again) and 4 (Easy)
Creates a new card in the Default Anki deck
Returns n number of cards currently due for review
Returns n number of cards from new
The Anki Flashcards MCP allows Claude to interact directly with your Anki flashcard collection. It enables reviewing due cards, creating new flashcards, and managing your spaced repetition learning directly through Claude's interface. This integration bridges the gap between AI assistance and one of the most popular spaced repetition learning tools.
The Anki Flashcards MCP connects Claude to your locally running Anki desktop application, allowing you to review and create flashcards through natural language conversation. This integration leverages the Anki-Connect add-on to communicate with your Anki collection.
Before using this MCP, you need to:
To use the Anki Flashcards MCP with Claude Desktop, add the following configuration:
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
:
{
"mcpServers": {
"anki-mcp-server": {
"command": "/path/to/anki-mcp-server/build/index.js"
}
}
}
Add to %APPDATA%/Claude/claude_desktop_config.json
:
{
"mcpServers": {
"anki-mcp-server": {
"command": "/path/to/anki-mcp-server/build/index.js"
}
}
}
Once installed, you can interact with your Anki collection through Claude using natural language. Here are some examples:
The MCP provides access to several Anki search resources:
Since MCP servers communicate over stdio, debugging can be challenging. You can use the MCP Inspector for debugging:
npm run inspector
This will provide a URL to access debugging tools in your browser.
If you want to modify or contribute to the MCP:
npm install
npm run build
npm run watch