An MCP server for Anki
Configuration
View docs{
"mcpServers": {
"scorzeth-anki-mcp-server": {
"command": "/path/to/anki-mcp-server/build/index.js",
"args": []
}
}
}You can run this MCP server to connect to a locally running Anki application, enabling card review, creation, and management from MCP clients. It works with the Anki desktop app and the Anki-Connect add-on, letting you query decks, fetch due and new cards, and perform updates or additions programmatically.
Connect to the Anki MCP server from your MCP client to fetch cards that are due for review, retrieve new cards, or create new ones. Use the following core actions to manage your studying flow: - Get cards that are due for study to prioritize your review session. - Retrieve unseen cards to surface new material. - Create new cards directly in the Default Anki deck to extend your study set. - Update cards with your answers to adjust their ease score for future reviews. - Add new cards by sending front and back content for quick expansion of your deck. Each action maps to a distinct tool exposed by the server, allowing you to orchestrate card review from your MCP client with simple calls.
Prerequisites you need before starting: - Node.js installed on your machine. - npm (comes with Node.js) to install dependencies. - Anki desktop application installed with the Anki-Connect add-on enabled for communication. - The MCP server binary or script available locally to run from your machine.
Configuration details are provided below to run the server locally and integrate with your Anki setup. The server is designed to communicate over stdio, so you will start it as a local process that your MCP client can interact with directly.
Returns a specified number of cards that are currently due for review, enabling you to pull cards ready for study.
Returns a specified number of cards that are new, allowing you to surface unseen material.
Marks given cards as answered and assigns an ease score from 1 (Again) to 4 (Easy) to tailor future reviews.
Creates a new card in the Default Anki deck with a front and back content.