Anki MCP server
{
"mcpServers": {
"ankimcp": {
"command": "npx",
"args": [
"-y",
"@ankimcp/anki-mcp-server@latest"
],
"env": {
"TUNNEL_SERVER_URL": "https://...",
"TUNNEL_AUTH_CLIENT_ID": "<tunnel_auth_client_id>",
"ANKI_CONNECT_URL": "https://...",
"ANKI_CONNECT_API_KEY": "<anki_connect_api_key>"
}
}
}
}{
"mcpServers": {
"ankimcp": {
"command": "npx",
"args": [
"-y",
"@ankimcp/anki-mcp-server@latest"
],
"env": {
"TUNNEL_SERVER_URL": "https://...",
"TUNNEL_AUTH_CLIENT_ID": "<tunnel_auth_client_id>",
"ANKI_CONNECT_URL": "https://...",
"ANKI_CONNECT_API_KEY": "<anki_connect_api_key>"
}
}
}
}{
"mcpServers": {
"ankimcp": {
"command": "npx",
"args": [
"-y",
"@ankimcp/anki-mcp-server@latest"
],
"env": {
"TUNNEL_SERVER_URL": "https://...",
"TUNNEL_AUTH_CLIENT_ID": "<tunnel_auth_client_id>",
"ANKI_CONNECT_URL": "https://...",
"ANKI_CONNECT_API_KEY": "<anki_connect_api_key>"
}
}
}
}{
"servers": {
"ankimcp": {
"command": "npx",
"args": [
"-y",
"@ankimcp/anki-mcp-server@latest"
],
"env": {
"TUNNEL_SERVER_URL": "${input:tunnel_server_url}",
"TUNNEL_AUTH_CLIENT_ID": "${input:tunnel_auth_client_id}",
"ANKI_CONNECT_URL": "${input:anki_connect_url}",
"ANKI_CONNECT_API_KEY": "${input:anki_connect_api_key}"
}
}
},
"inputs": [
{
"id": "tunnel_server_url",
"type": "promptString",
"description": "Tunnel server url",
"password": true
},
{
"id": "tunnel_auth_client_id",
"type": "promptString",
"description": "Tunnel auth client id",
"password": true
},
{
"id": "anki_connect_url",
"type": "promptString",
"description": "Anki connect url",
"password": true
},
{
"id": "anki_connect_api_key",
"type": "promptString",
"description": "Anki connect api key",
"password": true
}
]
}{
"mcpServers": {
"ankimcp": {
"command": "npx",
"args": [
"-y",
"@ankimcp/anki-mcp-server@latest"
],
"env": {
"TUNNEL_SERVER_URL": "https://...",
"TUNNEL_AUTH_CLIENT_ID": "<tunnel_auth_client_id>",
"ANKI_CONNECT_URL": "https://...",
"ANKI_CONNECT_API_KEY": "<anki_connect_api_key>"
}
}
}
}file .mcp.json (in your project root)file claude_desktop_config.jsonfile ~/.cursor/mcp.jsonfile .vscode/mcp.jsonfile ~/.codeium/windsurf/mcp_config.jsoninstall npx -y @ankimcp/anki-mcp-serverversion 0.26.0
MCP server for Anki flashcards: adaptive review, notes, media, and deck management via AnkiConnect.
Before you enable it
An MCP server runs with whatever access you give it. Start with a development account rather than production, and check which tools the server exposes before you let an agent call them unattended.