MCP-AnkiConnect
mcp-ankiconnect MCP 服务器
通过 MCP 将 Claude 对话与 AnkiConnect 连接起来,使间隔重复变得像“让我们浏览今天的抽认卡”或“为此制作抽认卡”一样简单
成分
工具
该服务器实现了三个工具:
num_cards_due_today:获取今天到期的卡片数量可选的
deck参数用于按特定 deck 进行过滤返回所有牌组或指定牌组的到期牌数
get_due_cards:获取需要审核的卡片可选的
limit参数(默认值:5)用于控制卡片数量可选的
deck参数用于按特定 deck 进行过滤可选的
today_only参数(默认值:true)仅显示今天的卡片以 XML 格式返回包含问题和答案的卡片
submit_reviews:提交已审核卡片的答案获取带有
card_id和rating的reviews列表评分:“错误”、“困难”、“好”、“简单”
返回已提交评论的确认
Related MCP server: Anki MCP Server
配置
先决条件
Anki 运行时必须安装AnkiConnect 插件(插件 ID 2055492159)。由于 AppSleep 功能,AnkiConnect 在 Mac 上运行速度可能会比较慢,因此请为 Anki 禁用该功能。为此,请在终端中运行以下命令。
defaults write net.ankiweb.dtop NSAppSleepDisabled -bool true defaults write net.ichi2.anki NSAppSleepDisabled -bool true defaults write org.qt-project.Qt.QtWebEngineCore NSAppSleepDisabled -bool true
安装
快速入门
在 Anki 中安装 AnkiConnect 插件:
工具 > 附加组件 > 获取附加组件...
输入代码:
2055492159重启 Anki
配置Claude桌面:
在 MacOS 上:
~/Library/Application\ Support/Claude/claude_desktop_config.json在 Windows 上:%APPDATA%/Claude/claude_desktop_config.json添加此配置:
{ "mcpServers": { "mcp-ankiconnect": { "command": "uv", "args": ["run", "--with", "mcp-ankiconnect", "mcp-ankiconnect"] } } }重启 Anki 和 Claude 桌面
调试
由于 MCP 服务器通过 stdio 运行,调试起来可能比较困难。为了获得最佳调试体验,我们强烈建议使用MCP Inspector 。首先,克隆代码库并安装依赖项:
git clone https://github.com/samefarrar/mcp-ankiconnect.git
cd mcp-ankiconnect
uv sync您可以通过 mcp CLI 启动 MCP Inspector:
uv run mcp dev mcp_ankiconnect/server.py启动后,检查器将显示一个 URL,您可以在浏览器中访问该 URL 以开始调试。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI assistants like Claude to interact with Anki flashcard decks, allowing users to create, manage, and update flashcards through natural language conversations.40MIT
- AlicenseNot gradedqualityCmaintenanceA Model Context Protocol server that bridges Claude AI with Anki flashcard app, allowing users to create and manage flashcards using natural language commands.9MIT
- FlicenseAqualityDmaintenanceAn MCP server that enables Claude Code to create, manage, and search Anki flashcards directly from the terminal. It supports batch card creation, deck statistics retrieval, and synchronization with AnkiWeb for cross-platform review.8
- AlicenseAqualityDmaintenanceAn MCP server that connects to Anki for card review and creation, featuring automatic date-based organization of new cards.4441MIT
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
An MCP server that integrates with Discord to provide AI-powered features.
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/samefarrar/mcp-ankiconnect'
If you have feedback or need assistance with the MCP directory API, please join our Discord server