AnkiConnect MCP server for interacting with Anki via AnkiConnect.
A Model Context Protocol (MCP) server that provides seamless integration with Anki through the AnkiConnect add-on. This server enables AI assistants and other MCP clients to interact with your Anki flashcard collection programmatically.
AnkiConnect is a powerful Anki add-on that exposes Anki's functionality through a REST API. It allows external applications to:
The Model Context Protocol is a standardized way for AI assistants to connect to external data sources and tools. This MCP server acts as a bridge between MCP clients (like Claude Desktop) and AnkiConnect, allowing AI assistants to help you manage your Anki flashcards naturally through conversation.
This MCP server provides comprehensive access to AnkiConnect functionality through the following tools:
create_flashcard()
- Create new flashcards with front and back contentadd_note()
- Add notes with custom fields and tagsadd_notes()
- Bulk add multiple notesupdate_note_fields()
- Update existing note fieldsfind_notes()
- Search for notes using Anki's query syntaxdeck_names()
- Get all deck namesdeck_names_and_ids()
- Get deck names with their IDschange_deck()
- Move cards between decksdelete_decks()
- Delete decks and optionally their cardsget_deck_config()
- Retrieve deck configuration settingsfind_cards()
- Search for cardscards_info()
- Get detailed card informationsuspend()
/ unsuspend()
- Suspend/unsuspend cardsare_suspended()
/ are_due()
- Check card statusgui_deck_browser()
- Open deck browsergui_deck_review()
- Start deck reviewgui_browse()
- Open card browser with searchgui_add_cards()
- Open add cards dialogversion()
- Get AnkiConnect versionget_tags()
- Retrieve all tagsmulti()
- Execute multiple AnkiConnect requests in batch2055492159
AnkiConnect works out of the box, but you can customize its settings:
git clone https://github.com/spacholski1225/mcp-server.git
cd mcp-server
npm install
npm run build
To use this MCP server with Claude Desktop, add the following configuration to your MCP settings file:
Location of MCP configuration file:
%APPDATA%\Claude\claude_desktop_config.json
~/Library/Application Support/Claude/claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
Configuration Options:
{
"mcpServers": {
"anki-connect-mcp": {
"command": "node",
"args": [
"dist/index.js"
],
"env": {},
"disabled": false,
"alwaysAllow": [
"deck_names",
"cards_info",
"deck_names_and_ids",
"gui_deck_browser"
]
}
}
}
Then configure your MCP client:
{
"mcpServers": {
"anki-connect": {
"command": "npx",
"args": [
"@spacholski1225/anki-connect-mcp"
],
"env": {},
"disabled": false,
"alwaysAllow": [
"deck_names",
"cards_info",
"deck_names_and_ids",
"gui_deck_browser"
]
}
}
}
{
"mcpServers": {
"anki-connect": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--network=host",
"-e", "ANKI_CONNECT_URL=http://host.docker.internal:8765",
"spacholski/anki-connect-mcp:latest"
],
"env": {},
"disabled": false,
"alwaysAllow": [
"deck_names",
"cards_info",
"deck_names_and_ids",
"gui_deck_browser"
]
}
}
}
Docker-Specific AnkiConnect Configuration:
When using the Docker option, you must configure AnkiConnect with specific settings to allow Docker container access:
{
"apiKey": null,
"apiLogPath": null,
"ignoreOriginList": [],
"webBindAddress": "0.0.0.0",
"webBindPort": 8765,
"webCorsOriginList": [
"http://localhost",
"http://host.docker.internal",
"http://host.docker.internal:3000"
]
}
Key Docker Configuration Points:
webBindAddress: "0.0.0.0"
- Allows AnkiConnect to accept connections from any IP address (required for Docker containers)webCorsOriginList
- Must include "http://host.docker.internal"
and related origins to allow cross-origin requests from Docker containersImportant Notes:
args
with the actual path to your built index.js
file@spacholski1225/anki-connect-mcp
- no local installation requiredspacholski/anki-connect-mcp:latest
alwaysAllow
array contains tools that won't require confirmation each time--network=host
flag allows the container to access AnkiConnect on the host machineOnce configured with an MCP client like Claude Desktop, you can interact with your Anki collection naturally:
Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.
ISC License
Dynamic and reflective problem-solving through thought sequences
Time and timezone conversion capabilities
The only platform you need to get paid - all payments in one place, invoicing and accounting reconciliations with Adfin.
Marketing insights and audience analysis from Audiense reports, covering demographic, cultural, influencer, and content engagement analysis.
MCP server for the Computer-Use Agent (CUA), allowing you to run CUA through Claude Desktop or other MCP clients.
Generate high-quality text-to-speech and text-to-voice outputs using the DAISYS platform.
Interact with task, doc, and project data in Dart, an AI-native project management tool
Contract and template management for drafting, reviewing, and sending binding contracts.
Perform queries and entity operations in your Fibery workspace.
Human-in-the-loop platform - Allow AI agents and automations to send requests for approval to your gotoHuman inbox.