Skip to content
Back to search

anki-mcp-server

An MCP server for Anki

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/scorzeth--anki-mcp-server/badge.svg)](/listings/scorzeth--anki-mcp-server)

HTML

<a href="/listings/scorzeth--anki-mcp-server"><img src="/api/listings/scorzeth--anki-mcp-server/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 84 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # Anki MCP Server
  2. An MCP server implementation that connects to a locally running Anki, providing card review and creation.
  3. This server is designed to work with the [Anki desktop app](https://apps.ankiweb.net/) and the [Anki-Connect](https://foosoft.net/projects/anki-connect/) add-on.
  4. Make sure you have the add-on installed before using.
  5. ## Resources
  6. - **anki://search/deckcurrent**
  7. - Returns all cards from current deck
  8. - Equivalent of `deck:current` in Anki
  9. - **anki://search/isdue**
  10. - Returns cards in review and learning waiting to be studied
  11. - Equivalent of `is:due` in Anki
  12. - **anki://search/isnew**
  13. - Returns all unseen cards
  14. - Equivalent of `is:new` in Anki
  15. ## Tools
  16. - **update_cards**
  17. - Marks cards with given card IDs as answered and gives them an ease score between 1 (Again) and 4 (Easy)
  18. - Inputs:
  19. - `answers` (array): Array of objects with `cardId` (number) and `ease` (number) fields
  20. - **add_card**
  21. - Creates a new card in the Default Anki deck
  22. - Inputs:
  23. - `front` (string): Front of card
  24. - `back` (string): Back of card
  25. - **get_due_cards**
  26. - Returns n number of cards currently due for review
  27. - Inputs:
  28. - `num` (number): Number of cards
  29. - **get_new_cards**
  30. - Returns n number of cards from new
  31. - Inputs:
  32. - `num` (number): Number of cards
  33. ## Development
  34. Install dependencies:
  35. ```bash
  36. npm install
  37. ```
  38. Build the server:
  39. ```bash
  40. npm run build
  41. ```
  42. For development with auto-rebuild:
  43. ```bash
  44. npm run watch
  45. ```
  46. ## Configuration
  47. To use with Claude Desktop, add the server config:
  48. On MacOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
  49. On Windows: `%APPDATA%/Claude/claude_desktop_config.json`
  50. ```json
  51. {
  52. "mcpServers": {
  53. "anki-mcp-server": {
  54. "command": "/path/to/anki-mcp-server/build/index.js"
  55. }
  56. }
  57. }
  58. ```
  59. ### Debugging
  60. Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector), which is available as a package script:
  61. ```bash
  62. npm run inspector
  63. ```
  64. The Inspector will provide a URL to access debugging tools in your browser.

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.