Skip to main content
MCP server CX Codex

2anki — Claude Code MCP server: what it does, how to install

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

no license ★ 328 updated 2026-10-29

Install into Claude Code · Platform CLI: remote server All methods and platforms ↓
claude mcp add --transport http mcp https://2anki.net/mcp
Open on GitHub

What 2anki 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.

What it helps with

  • 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 for the agent

  • 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

How to install 2anki

Platform CLI: remote server

claude mcp add --transport http mcp https://2anki.net/mcp

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about 2anki

How to install 2anki in Claude Code?

Run claude mcp add --transport http 2anki https://2anki.net/mcp in your terminal.

What does 2anki do?

It converts files, URLs, and notes into importable .apkg packages for the Anki spaced repetition app.

Can I run 2anki on my own machine?

Yes, clone the repository and run pnpm dev:server to launch the local backend on http://localhost:2020.

Similar MCP servers

All MCP servers for Notes, tasks and projects →

Project sponsors

Companies that keep this analytics open