Lets agents manage Anki decks and notes through natural language, creating and reviewing flashcards.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add anki --env ANKI_CONNECT_URL='<ANKI_CONNECT_URL>' -- npx -y @ankimcp/anki-mcp-server~/.codex/config.toml
[mcp_servers.anki]
command = "npx"
args = ["-y", "@ankimcp/anki-mcp-server"]
env = { ANKI_CONNECT_URL = "<ANKI_CONNECT_URL>" }
# codex mcp add anki --env ANKI_CONNECT_URL='<ANKI_CONNECT_URL>' -- npx -y @ankimcp/anki-mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"anki": {
"command": "npx",
"args": [
"-y",
"@ankimcp/anki-mcp-server"
],
"env": {
"ANKI_CONNECT_URL": "<ANKI_CONNECT_URL>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"anki": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ankimcp/anki-mcp-server"
],
"env": {
"ANKI_CONNECT_URL": "<ANKI_CONNECT_URL>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"anki": {
"command": "npx",
"args": [
"-y",
"@ankimcp/anki-mcp-server"
],
"env": {
"ANKI_CONNECT_URL": "<ANKI_CONNECT_URL>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"anki": {
"command": "npx",
"args": [
"-y",
"@ankimcp/anki-mcp-server"
],
"env": {
"ANKI_CONNECT_URL": "<ANKI_CONNECT_URL>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"anki": {
"command": "npx",
"args": [
"-y",
"@ankimcp/anki-mcp-server"
],
"env": {
"ANKI_CONNECT_URL": "<ANKI_CONNECT_URL>"
}
}
}
}Environment variables
ANKI_CONNECT_URL
Replace the placeholders with your own credentials and keep them out of version control.