anki-mcp MCP Server
A model context protocol server that connects to Anki through AnkiConnect
Overview
Anki MCP Server is a TypeScript-based server that integrates with Anki through the AnkiConnect plugin, allowing users to manage Anki decks and notes programmatically.
To use the Anki MCP Server, install the necessary dependencies, build the server, and configure it with Claude Desktop by adding the server configuration to the appropriate JSON file.
- Access and manage Anki decks and note models via URIs. - Tools for creating and managing Anki notes, including bulk note creation. - Integration with the AnkiConnect API for seamless interaction with Anki.
- Automating the creation of flashcards in Anki.
- Integrating Anki with other applications for enhanced study experiences.
- Managing large sets of notes and decks programmatically.
Add to your AI client
Use these steps to connect anki-mcp MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"anki-mcp-server-camdenclark": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-anki-mcp-server-camdenclark"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"anki-mcp-server-camdenclark": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-anki-mcp-server-camdenclark"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"anki-mcp-server-camdenclark": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-anki-mcp-server-camdenclark"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"anki-mcp-server-camdenclark": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-anki-mcp-server-camdenclark"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"anki-mcp-server-camdenclark": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-anki-mcp-server-camdenclark"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"anki-mcp-server-camdenclark": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-anki-mcp-server-camdenclark"
]
}
}
}FAQ
What is AnkiConnect?
AnkiConnect is a plugin that allows external applications to interact with Anki, enabling automation and integration.
How do I install Anki MCP Server?
You can install it by cloning the repository and running `npm install` to install dependencies.
Can I use Anki MCP Server on Windows?
Yes! The server can be configured to run on both MacOS and Windows.