Live survey304 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Org-owned · Audited from source

Anki MCP server

by ankimcp/anki-mcp-serverMIT licenceAudited 1 Oct 2026 · source fd98695f3978

npm @ankimcp/anki-mcp-server 0.26.0stdiostreamable-http★ 499
!CAUTIONGrade C · 79/100 · 1 Oct 2026 · fd98695
499GitHub stars

Is it safe? With care — CAUTION, grade C (79/100). It exposes 51 tools: 31 read, 14 write and 6 destructive. The audit recorded 34 findings (0 critical, 0 high, 2 medium, 32 low). Maintainer's description: A Model Context Protocol (MCP) server that enables AI assistants to interact with Anki, the spaced repetition flashcard application.

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Anki MCP server (ankimcp/anki-mcp-server)”. Retrieved 1 Oct 2026. https://modelsatlas.com/mcp/ankimcp/anki-15

5 MCP servers are called Anki. This is the one we pick. Compare all 5 →

Trust audit

Audit 0.4.1 · full source read 1 Oct 2026

Trust score79/100!CAUTION C
0 critical0 high2 medium32 low0 info

34 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.

What the source does

  • FilesystemDeclared2 observations
  • NetworkDeclared2 observations
  • ShellNone observedNothing seen in the source
  • DependenciesNot pinnedSome ranges float
  • SecretsNone foundNo keys in source

“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.

Five audit layers

LayerWhat we checkResult
L0 ProvenanceRepo owner, licence, archive status, activityPASS 2 findings
L1 Static sourceSecrets, path traversal, supply chainWARN 21 findings
L2 InstructionsPrompt injection and authority framing in docs and tool descriptionsPASS 1 finding
L3 InventoryDeclared tools match the sourceWARN 1 finding
L4 SandboxRun in isolation and watch behaviourSKIPPED

Provenance & runtime

Who published it, and what the audit could and could not run

Provenance

  • Repository owner ankimcpOrganizationAccount type recorded when we read the repository.
  • PackagePublished on npm@ankimcp/anki-mcp-server at version 0.26.0
  • LicenceMITFrom the repository, as read at the audited commit.
  • Last push12 days agoActivity of the repository when we read it.
  • Source commit readfd98695f3978The audit covers exactly this commit, read on 1 Oct 2026.

Runtime

  • Sandbox runNot run yetThis audit read the source only; it did not execute the server.
  • Tool inventory51 declaredRead from the source and classed read, write or destructive.

Every value here is read from the record's own repository and audit.Suggest a correction

Findings (34)

Sorted by severity · the 25 most severe of 34 are listed

MEDIUMNetwork egressnet.raw_ip · scripts/e2e-full.sh:68
F-04 Network egressCWE-200 · CWE-319Layer L1
if ! curl -s http://127.0.0.1:3000 > /dev/null 2>&1; then
Why
No further detail recorded for this rule.
Fix
—
MEDIUMFilesystem / pathmcp.destructive_tools
F-05 Filesystem / pathCWE-22 · CWE-59Layer L3
clearUnusedTags, deleteMediaFile, deleteNotes, forgetCards, removeModelField, removeTags
Why
6 tool(s) can delete or overwrite
Fix
prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInventory / provenanceinv.binary · docs/MCP Reviewer Demo.apkg
F-13 Inventory / provenanceCWE-1104Layer L0
MCP Reviewer Demo.apkg
Why
a compiled or binary member cannot be reviewed from source
Fix
ship source, or explain the binary in the README
LOWInventory / provenanceinv.hidden_file · .mcpbignore
F-13 Inventory / provenanceCWE-1104Layer L0
.mcpbignore
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWFilesystem / pathfs.credential_store · src/mcp/primitives/essential/tools/__tests__/store-media-file.tool.spec.ts:161
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
it("should reject non-media file paths (e.g., .ssh/id_rsa)", async () => {
Why
touches a credential store
Fix
—
LOWFilesystem / pathfs.credential_store · src/mcp/primitives/essential/tools/__tests__/store-media-file.tool.spec.ts:164
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
path: "/home/user/.ssh/id_rsa",
Why
touches a credential store
Fix
—
LOWFilesystem / pathfs.credential_store · src/mcp/utils/__tests__/media-validation.utils.spec.ts:81
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
"/home/user/.ssh/id_rsa",
Why
touches a credential store
Fix
—
LOWFilesystem / pathfs.credential_store · src/mcp/utils/__tests__/media-validation.utils.spec.ts:101
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
expect(() => validateMediaFilePath("/some/path/id_rsa")).toThrow(
Why
touches a credential store
Fix
—
LOWFilesystem / pathfs.credential_store · src/mcp/utils/__tests__/media-validation.utils.spec.ts:133
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
validateMediaFilePath("/photos/image\0.ssh/id_rsa.jpg"),
Why
touches a credential store
Fix
—
LOWFilesystem / pathfs.traversal · src/__tests__/cli.spec.ts:347
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
const packageJsonPath = path.join(__dirname, "../../package.json");
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · src/__tests__/cli.spec.ts:373
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
const packageJsonPath = path.join(__dirname, "../../package.json");
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · src/cli/args.ts:56
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
readFileSync(join(__dirname, "../../package.json"), "utf-8"),
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · src/http/guards/__tests__/dns-rebinding.integration.spec.ts:5
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { AppModule } from "../../../app.module";
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · src/http/guards/__tests__/dns-rebinding.integration.spec.ts:6
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { createMcpHttpServer } from "../../mcp-http.factory";
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.metadata_ip · src/mcp/primitives/essential/tools/__tests__/store-media-file.tool.spec.ts:385
F-04 Network egressCWE-200 · CWE-319Layer L1
it("blocks cloud metadata endpoint (169.254.169.254)", async () => {
Why
cloud metadata endpoint: the classic SSRF credential grab
Fix
—
LOWNetwork egressnet.metadata_ip · src/mcp/primitives/essential/tools/__tests__/store-media-file.tool.spec.ts:387
F-04 Network egressCWE-200 · CWE-319Layer L1
{ address: "169.254.169.254", family: 4 },
Why
cloud metadata endpoint: the classic SSRF credential grab
Fix
—
LOWNetwork egressnet.metadata_ip · src/mcp/primitives/essential/tools/__tests__/store-media-file.tool.spec.ts:392
F-04 Network egressCWE-200 · CWE-319Layer L1
url: "http://169.254.169.254/latest/meta-data/",
Why
cloud metadata endpoint: the classic SSRF credential grab
Fix
—
LOWNetwork egressnet.metadata_ip · src/mcp/utils/__tests__/media-validation.utils.spec.ts:312
F-04 Network egressCWE-200 · CWE-319Layer L1
["169.254.169.254", "link-local (cloud metadata)"],
Why
cloud metadata endpoint: the classic SSRF credential grab
Fix
—
LOWNetwork egressnet.metadata_ip · src/mcp/utils/__tests__/media-validation.utils.spec.ts:608
F-04 Network egressCWE-200 · CWE-319Layer L1
["64:ff9b::169.254.169.254", "rfc6052 / NAT64 wrapping cloud metadata"],
Why
cloud metadata endpoint: the classic SSRF credential grab
Fix
—
LOWNetwork egressnet.raw_ip · README.md:472
F-04 Network egressCWE-200 · CWE-319Layer L1
| `ALLOWED_ORIGINS` | HTTP mode: comma-separated allowlist of browser `Origin`/`Referer` patterns (wildcards supported, e.g. `https://*.ngrok.io`). | `http://localhost:*,http://127.0.0.1:*,https://loc
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · README.md:619
F-04 Network egressCWE-200 · CWE-319Layer L1
- **MCP endpoint**: `http://127.0.0.1:3000/` (root path)
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · README.md:644
F-04 Network egressCWE-200 · CWE-319Layer L1
- `ALLOWED_ORIGINS` - Comma-separated allowlist of browser `Origin`/`Referer` patterns; wildcards supported (e.g. `https://*.ngrok.io`). Default: `http://localhost:*,http://127.0.0.1:*,https://localho
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · src/__tests__/app-config.service.spec.ts:17
F-04 Network egressCWE-200 · CWE-319Layer L1
"http://127.0.0.1:*",
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainsupply.unpinned · package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@nestjs/common, @nestjs/config, @nestjs/core, @nestjs/microservices, @nestjs/platform-express, @rekog/mcp-nest, async-mutex, commander
Why
51 dependency range(s) float
Fix
pin exact versions or ship a lockfile
LOWPrompt injectionprompt.credential_read · CLAUDE.md:120
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
**Environment Configuration**: Config `process.env.*` reads go through `buildConfigInput()` in `src/config/config.factory.ts`. CLI args override env vars in memory (no `process.env` mutation). Service
Why
asks the agent to read credentials
Fix
—

Tools it exposes

51 declared in source · 6 destructive

31 read14 write6 destructive

6 tools can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.

ToolRiskWhat it does
clearUnusedTagsdestructiveRemove orphaned tags that are not used by any notes in the collection. CRITICAL: This is destructive and permanent - only run when the user explicitly asks to clean up tags.
deleteMediaFiledestructiveRemove a media file from Anki
deleteNotesdestructiveDelete notes by their IDs. This will permanently remove the notes and ALL associated cards.
forgetCardsdestructiveReset cards to the new queue, discarding their current scheduling (interval, due date, and ease factor).
removeModelFielddestructiveRemove a field from an existing Anki note type (model).
removeTagsdestructiveRemove tags from specified notes. Tags is a space-separated string (e.g.,
addModelFieldwriteAdd a new field to an existing Anki note type (model).
addTagswriteAdd tags to specified notes. Tags is a space-separated string (e.g.,
changeDeckwriteMove cards to a different deck. Target deck will be created if it doesn
createDeckwriteCreate a new empty Anki deck. Use
createModelwriteCreate a new note type (model) in Anki with custom fields, card templates, and styling.
guiAddCardswriteOpen Anki Add Cards dialog with preset note details (deck, model, fields, tags). Returns potential note ID.
rate_cardwriteSubmit a rating for a card to update Anki
renameModelFieldwriteRename a field in an existing Anki note type (model).
replaceTagswriteRename a tag across specified notes (e.g.,
storeMediaFilewriteUpload a media file to Anki
syncwriteSynchronize local Anki collection with AnkiWeb. IMPORTANT: Always sync at the START of a review session (before getting cards) and at the END when user indicates they are done. This ensures data consistency across devices.
updateModelStylingwriteUpdate the CSS styling for an existing note type (model).
updateModelTemplateswriteUpdate the card templates (Front and Back HTML) for an existing note type (model).
updateNoteFieldswriteUpdate the fields of an existing note. Supports HTML content in fields and preserves CSS styling.
anki_reviewreadGuidelines for conducting Anki spaced repetition review sessions
areSuspendedreadCheck whether cards are suspended, without changing anything. Card IDs (not note IDs) —
collection_statsreadGet aggregated statistics across all decks in the collection including card counts, ease factor distribution, and interval distribution.
deckStatsreadGet comprehensive statistics for a single deck including card counts, ease and interval distributions. Pass a deck name (e.g.,
findNotesreadSearch for notes using Anki query syntax. Returns an array of note IDs matching the query.
getMediaFilesNamesreadList media files in Anki
getTagsreadGet all tags in the Anki collection. Use this to discover existing tags before creating notes to maintain consistency and prevent tag duplication (e.g., avoiding
guiBrowsereadOpen Anki Card Browser and search for cards using Anki query syntax. Returns array of card IDs found.
guiCurrentCardreadGet information about the current card displayed in review mode. Returns card details (question, answer, deck, model, etc.) or null if not in review.
guiDeckBrowserreadOpen Anki Deck Browser dialog showing all decks.
guiDeckOverviewreadOpen Anki Deck Overview dialog for a specific deck. Shows deck statistics and study options. Returns true if succeeded.
guiEditNotereadOpen Anki note editor dialog for a specific note ID. Allows manual editing of note fields, tags, and cards in the GUI.
guiSelectCardreadSelect a specific card in an open Card Browser window. Returns true if browser is open and card was selected, false if browser is not open.
guiSelectedNotesreadGet the IDs of notes currently selected in the Card Browser. Returns array of note IDs (empty if no selection).
guiShowAnswerreadShow the answer side of the current card in review mode. Returns true if in review mode, false otherwise.
guiShowQuestionreadShow the question side of the current card in review mode. Returns true if in review mode, false otherwise.
guiUndoreadUndo the last action or card in Anki. Returns true if undo succeeded, false otherwise.
listDecksreadList all Anki decks, optionally with per-deck study-queue statistics.
modelFieldNamesreadGet the field names for a specific note type (model). Use this to know what fields are required when creating notes of this type.
modelNamesreadGet a list of all available note type (model) names in Anki. Use this to see what note types are available before creating notes.
modelStylingreadGet the CSS styling for a specific note type (model). This CSS is used when rendering cards of this type.
modelTemplatesreadGet the card templates (Front and Back HTML) for a specific note type (model).
notesInforeadGet detailed information about specific notes including all fields, tags, model info, and CSS styling.
present_cardreadRetrieve a card\
repositionModelFieldreadChange the position of a field within an Anki note type (model).
retrieveMediaFilereadDownload a media file from Anki
review_statsreadGet review history analysis including temporal patterns, retention metrics, and study streak information.
setDueDatereadReschedule cards to become due in a given number of days, without recording a review.
suspendreadSuspend cards so they
system-inforeadCurrent system information and environment
unsuspendreadUnsuspend cards so they return to normal review. Card IDs (not note IDs) — use get_cards,

Install

Package version 0.26.0 · audited commit fd98695

Read the findings first. The most severe is Network egress (medium) at scripts/e2e-full.sh.

claude mcp add anki-mcp-server -- npx -y @ankimcp/[email protected]

The command pins the package version recorded in the source (0.26.0); the audit covers commit fd98695f3978. Transport: stdio · streamable-http. Reads these environment variables: ANKI_CONNECT_API_KEY, TUNNEL_AUTH_CLIENT_ID. Give it the narrowest token it needs.

Audit history

  1. !CAUTION C 79 / 100

    First audit · fd98695f3978

README badge

For maintainers · updates on every re-audit

ModelsAtlas: CAUTION CMODELSATLASCAUTION · C
[![ModelsAtlas: CAUTION C](https://modelsatlas.com/mcp/ankimcp/anki-15/badge.svg)](https://modelsatlas.com/mcp/ankimcp/anki-15/)

The badge always shows the latest audit; a maintainer cannot pin an old verdict.

Other ratings

Cited, never blended into our score

No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.

Questions about Anki MCP server

What is the Anki MCP server?
A Model Context Protocol (MCP) server that enables AI assistants to interact with Anki, the spaced repetition flashcard application.
What tools does Anki expose?
51 in total: 31 read-only, 14 that write, and 6 that can delete or overwrite (clearUnusedTags, deleteMediaFile, deleteNotes, forgetCards, removeModelField). Every one is listed on this page with its risk.
Is Anki safe to connect to an agent?
With care. The audit graded it C (79/100) and found 25 things worth knowing before you trust this server, listed below with the exact line each was found on. Separately from the audit: 6 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does Anki need?
It reads ANKI_CONNECT_API_KEY and TUNNEL_AUTH_CLIENT_ID from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Anki run?
It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as @ankimcp/anki-mcp-server at 0.26.0.
How current is this page?
The grade is for one exact copy of the source (fd98695f3978), read on 2026-10-01. The repository is watched and re-audited when it changes.
Which Anki MCP server is the right one?
ankimcp/anki-mcp-server (this page). 5 servers share the name; see the side-by-side comparison.

Sources

  • ankimcp/anki-mcp-server on GitHub — the source we read, its licence, stars and activityObserved · 1 Oct 2026
  • ModelsAtlas trust audit — CAUTION verdict for commit fd98695f3978Observed · 1 Oct 2026

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.