feat: initial implementation of anki-mcp MCP server

Implements a FastMCP server that wraps AnkiConnect (localhost:8765)
to expose Anki flashcard management as Claude MCP tools.

Tools provided:
- list_decks: list all deck names
- create_deck: create nested decks (:: separator)
- add_card: add Basic flashcard with optional tags
- get_due_cards: fetch today's due cards with optional deck filter
- update_card: edit front/back of existing note
- update_deck: rename deck (move-cards approach)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
joungmin
2026-02-28 07:42:31 +09:00
commit f0a3eaeec5
7 changed files with 318 additions and 0 deletions

21
pyproject.toml Normal file
View File

@@ -0,0 +1,21 @@
[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.backends.legacy:build"
[project]
name = "anki-mcp"
version = "0.1.0"
description = "MCP server for Anki flashcard management via AnkiConnect"
requires-python = ">=3.11"
dependencies = [
"mcp[cli]",
"httpx",
"python-dotenv",
]
[project.scripts]
anki-mcp = "src.server:main"
[tool.setuptools.packages.find]
where = ["."]
include = ["src*"]