AnkiSAFE
An MCP server for Anki
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
An MCP server implementation that connects to a locally running Anki, providing card review and creation.
This server is designed to work with the Anki desktop app and the Anki-Connect add-on.
Make sure you have the add-on installed before using.
Resources
- anki://search/deckcurrent
- Returns all cards from current deck
- Equivalent of
deck:currentin Anki - anki://search/isdue
- Returns cards in review and learning waiting to be studied
- Equivalent of
is:duein Anki - anki://search/isnew
- Returns all unseen cards
- Equivalent of
is:newin Anki
Tools
- update_cards
- Marks cards with given card IDs as answered and gives them an ease score between 1 (Again) and 4 (Easy)
- Inputs:
answers(array): Array of objects withcardId(number) andease(number) fields
- add_card
- Creates a new card in the Default Anki deck
- Inputs:
front(string): Front of cardback(string): Back of card
- get_due_cards
- Returns n number of cards currently due for review
- Inputs:
num(number): Number of cards
- get_new_cards
- Returns n number of cards from new
- Inputs:
num(number): Number of cards
Development
Install dependencies:
npm install
Build the server:
npm run build
For development with auto-rebuild:
npm run watch
Configuration
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"anki-mcp-server": {
"command": "/path/to/anki-mcp-server/build/index.js"
}
}
}Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, whic
e1394e77a30bOBSERVED · 2026-10-06Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add anki-mcp-server -- npx -y @scorzeth/[email protected]
{
"mcpServers": {
"anki-mcp-server": {
"command": "npx",
"args": [
"-y",
"@scorzeth/[email protected]"
]
}
}
}Exposed tools (3)
2 read · 1 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
get_due_cards | read | Returns a given number (num) of cards due for review. |
get_new_cards | read | Returns a given number (num) of new and unseen cards. |
update_cards | write | After the user answers cards you |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (1)
yanki-connect, @types/node, typescript
Gates applied: no_behavioural_pass.
e1394e77a30bfull audit observations/trust-audit/mcp-server/scorzeth__anki-4.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-06 | e1394e77a30b | SAFE | B | 89 | first audit |
Questions
What is the Anki MCP server?
An MCP server for Anki
What tools does Anki expose?
3 in total: 2 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Anki safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Anki need?
No credential environment variables were found in its source, so it appears to need none.
How does Anki run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as @scorzeth/anki-mcp-server at 1.0.0.
How current is this page?
The grade is for one exact copy of the source (e1394e77a30b), read on 2026-10-06. The repository is watched and re-audited when it changes.