# 2anki

2anki turns raw text, web links, and study files into downloadable Anki decks directly from your coding assistant.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 328 repo stars
- Author: 2anki
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/2anki/2anki.net
- Updated: 2026-10-29
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/2anki

## What it does

This server hooks your coding assistant into the 2anki conversion engine, turning source notes into structured `.apkg` deck files. It handles Notion content, Markdown documents, office files such as Word and PowerPoint, PDFs, spreadsheets, and clippings from e-readers. Code snippets, audio, embedded media, and LaTeX syntax remain intact during parsing.

Nested toggle elements turn into flashcards, cloze deletions work immediately, and image occlusion is available for visual schematics. Heavy users can self-host the backend locally on port `http://localhost:2020` using `pnpm`.

The remote endpoint at `https://2anki.net/mcp` handles requests directly, so running a local Node server is completely optional.

## Requirements
- Remote server: `https://2anki.net/mcp`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http mcp https://2anki.net/mcp
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add 2anki --url https://2anki.net/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "2anki": {
            "url": "https://2anki.net/mcp"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "2anki": {
            "type": "http",
            "url": "https://2anki.net/mcp"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http 2anki https://2anki.net/mcp
```

## When to use it
- build `.apkg` flashcard packages straight from Markdown notes
- convert Notion pages into decks while preserving toggle lists and LaTeX
- generate cloze deletion cards from study documents or slides
- create image occlusion flashcards from diagrams and photos

## Example prompts
- Turn this notes.md document into an Anki apkg deck
- Convert this Notion export into flashcards with cloze deletions
- Create a study deck from terms listed in vocabulary.xlsx

## Similar
- [anki](https://affpapa.org/en/nevibecode/skills/anki.md) — skill · 534 installs
- [anki-connect](https://affpapa.org/en/nevibecode/skills/anki-connect.md) — skill · 930 installs
- [anki-mcp-server-integration](https://affpapa.org/en/nevibecode/skills/anki-mcp-server-integration.md) — skill · 180 installs
- [Anki MCP Server](https://affpapa.org/en/nevibecode/mcp/anki-mcp-server.md) — MCP server · ★ 572 repo stars
- [AnkiMCP Server](https://affpapa.org/en/nevibecode/mcp/ankimcp-server.md) — MCP server · ★ 109 repo stars
- [Ordkort](https://affpapa.org/en/nevibecode/mcp/ordkort.md) — MCP server · ★ 17 repo stars

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
