Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ANKI_LOG_LEVELNoLog verbosity: error / warn / info / debuginfo
ANKI_CONNECT_KEYNoAnkiConnect API key (if configured)
ANKI_CONNECT_URLNoFull AnkiConnect HTTP endpoint (highest priority). Overrides HOST:PORT.
ANKI_CONNECT_HOSTNoHost part, used when ANKI_CONNECT_URL is not set.127.0.0.1
ANKI_CONNECT_PORTNoPort part, used when ANKI_CONNECT_URL is not set.8765
ANKI_DEFAULT_DECKNoDefault deck for note operationsDefault
ANKI_DEFAULT_MODELNoDefault note modelBasic
ANKI_CONNECT_VERSIONNoAnkiConnect API version6
ANKI_REQUEST_TIMEOUT_MSNoHTTP request timeout in milliseconds10000

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
pingA

Health check for the MCP server. Returns server metadata without requiring Anki to be running.

check_anki_connectionA

Check if AnkiConnect is reachable and return the connection status.

list_decksA

List all available Anki decks.

create_deckB

Create a new Anki deck. Supports hierarchical decks using :: separator.

list_note_modelsA

List all available note models (card types).

get_note_model_fieldsB

Get the field names for a specific note model.

add_noteA

Add a single note (flashcard) to Anki.

add_notesB

Batch add multiple notes to Anki. Supports dryRun for preview.

search_notesB

Search for notes in Anki using Anki search syntax.

get_notes_infoB

Get detailed information about specific notes by their IDs.

update_note_fieldsB

Update specific fields of an existing note. Supports dryRun.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/guanweiqiang/anki-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server