
Anki MCP Server
Connects LLMs to Anki flashcard software, allowing you to create, search, and manage flashcards and decks through AnkiConnect.
Enables AI assistants to manage Anki flashcard decks and cards through natural language, supporting deck creation, card additions (basic and cloze types), and review queue management.
What it does
- Create and manage Anki flashcard decks
- Add notes with Basic or Cloze deletion types
- Search existing flashcards using Anki query syntax
- Batch create multiple flashcards at once
- Update and delete existing notes
- Create custom note types with specific fields
Best for
About Anki MCP Server
Anki MCP Server is a community-built MCP server published by zlatanpham that provides AI assistants with tools and capabilities via the Model Context Protocol. Anki MCP Server: use AI to manage Anki decks, create basic & cloze cards, add cards and handle review queues via natural It is categorized under productivity, developer tools.
How to install
You can install Anki MCP Server in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
License
Anki MCP Server is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Anki MCP Server
An MCP (Model Context Protocol) server that provides tools for interacting with the Anki API. This server allows AI assistants to manage Anki decks and cards through simple tool calls.
Features
- List Anki decks with pagination
- Create new decks
- Add cards (basic and cloze types)
- Batch add multiple cards
- Get review queue with filtering options
- Support for dynamically loading additional tools from an external API
Available Tools
- listDecks - List all Anki decks with optional pagination
- createDeck - Create a new Anki deck
- addCardsBatch - Add multiple cards to a deck in batch
- addBasicCard - Add a single basic card to a deck
- addClozeCard - Add a cloze deletion card to a deck
- getReviewQueue - Get cards due for review with filtering options
Installation
npm install -g @x-mcp/anki
# or
pnpm add -g @x-mcp/anki
Development
# Install dependencies
pnpm install
# Build the project
pnpm run build
# Run in development mode (auto-restart on changes)
pnpm run dev
# Run the server
pnpm start
# Lint and format code
pnpm run lint
pnpm run format
Configuration
MCP Client Configuration
Add this to your MCP client settings:
{
"mcpServers": {
"anki-mcp": {
"command": "npx",
"args": ["-y", "@x-mcp/anki@latest"],
"env": {
"ANKI_BASE_URL": "http://localhost:3000", // Anki API base URL
"ANKI_API_KEY": "ank_YOUR_API_KEY_HERE" // Your Anki API key
}
}
}
}
Environment Variables
Create a .env file:
# Required: Anki API configuration
ANKI_BASE_URL=http://localhost:3000/api/v1
ANKI_API_KEY=ank_YOUR_API_KEY_HERE
# Optional: External tools API configuration
API_URL=https://your-api-endpoint.com/tools
API_KEY=your-api-key
Usage Example
Once configured, the AI assistant can use commands like:
- "List all my Anki decks"
- "Create a new deck called 'Spanish Vocabulary'"
- "Add a card with front 'Hello' and back 'Hola' to my Spanish deck"
- "Show me cards due for review"
Each tool makes direct HTTP requests to the Anki API and returns the response data.
API Requirements
The tools interact with an Anki API that should have the following endpoints:
GET /api/v1/decks- List decksPOST /api/v1/decks- Create deckPOST /api/v1/decks/{deckId}/cards/batch- Add cardsGET /api/v1/study/queue- Get review queue
License
MIT
Alternatives
Related Skills
Browse all skillsUI design system toolkit for Senior UI Designer including design token generation, component documentation, responsive design calculations, and developer handoff tools. Use for creating design systems, maintaining visual consistency, and facilitating design-dev collaboration.
Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: "AI SDK", "Vercel AI SDK", "generateText", "streamText", "add AI to my app", "build an agent", "tool calling", "structured output", "useChat".
Leveraging AI coding assistants and tools to boost development productivity, while maintaining oversight to ensure quality results.
Master API documentation with OpenAPI 3.1, AI-powered tools, and modern developer experience practices. Create interactive docs, generate SDKs, and build comprehensive developer portals. Use PROACTIVELY for API documentation or developer portal creation.
Creates educational Teams channel posts for internal knowledge sharing about Claude Code features, tools, and best practices. Applies when writing posts, announcements, or documentation to teach colleagues effective Claude Code usage, announce new features, share productivity tips, or document lessons learned. Provides templates, writing guidelines, and structured approaches emphasizing concrete examples, underlying principles, and connections to best practices like context engineering. Activates for content involving Teams posts, channel announcements, feature documentation, or tip sharing.
Use when working with the OpenAI API (Responses API) or OpenAI platform features (tools, streaming, Realtime API, auth, models, rate limits, MCP) and you need authoritative, up-to-date documentation (schemas, examples, limits, edge cases). Prefer the OpenAI Developer Documentation MCP server tools when available; otherwise guide the user to enable `openaiDeveloperDocs`.