anki-mcp
A Model Context Protocol (MCP) server for interacting with Anki flashcards via the AnkiConnect add-on. This server exposes AnkiConnect actions as MCP tools, organized into logical services.
Prerequisites
- Anki desktop application
- AnkiConnect add-on installed and configured in Anki
- Python 3.8+
uv(for running and installing dependencies, optional but recommended)
Installation
# Clone the repository
git clone https://github.com/ujisati/anki-mcp.git
cd anki-mcp
# Install dependencies (using uv)
uv pip install -e .Usage
To run the MCP server:
uv run anki-mcpThe server will start and listen for MCP requests, typically interfacing with AnkiConnect at http://127.0.0.1:8765.
Inspecting the Server
You can use the MCP Inspector to view the available tools:
npx @modelcontextprotocol/inspector uv run anki-mcpConfiguration for MCP Clients
If you're integrating this with an MCP client (like an AI assistant framework), you'll need to configure it to find this server. Here's an example configuration snippet:






