Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
http_hostNoHost for the local HTTP server to bind to. Default is 127.0.0.1.127.0.0.1
http_pathNoServe the MCP endpoint under a custom path. Leave empty for default behavior.
http_portNoPort for the local HTTP server. Default is 3141.3141
log_to_fileNoWrite a rotating, secret-redacted diagnostic log to user_files/ankimcp.log. Default is false.false
cors_originsNoAllowed CORS origins for browser-based MCP clients. Default is an empty list.[]
http_api_keyNoOptional shared-secret API key for the HTTP transport. When non-empty, every HTTP request must send an Authorization: Bearer <key> header. Empty by default, which disables the layer.
http_enabledNoControls whether the local HTTP server runs. When set to false, the HTTP server won't start; only the tunnel transport is available. Default is true.true
disabled_toolsNoTool names to hide from AI clients. Disabled tools are removed from the MCP schema entirely. Default is an empty list.[]
media_import_dirNoRestrict file path imports for store_media_file to this directory tree. Empty means no restriction.
tunnel_client_idNoOAuth client identifier for the tunnel. Default is ankimcp-cli.ankimcp-cli
show_sync_tooltipNoShow a brief non-modal tooltip when an AI client triggers a sync. Default is true.true
tunnel_server_urlNoWebSocket URL of the tunnel relay server. Default is wss://tunnel.ankimcp.ai.wss://tunnel.ankimcp.ai
http_allowed_hostsNoHost-header values without a scheme, appended to the built-in loopback defaults for DNS-rebinding protection. Default is an empty list.[]
cors_expose_headersNoResponse headers browsers can read. Default is ["mcp-protocol-version"].["mcp-protocol-version"]
max_notes_per_batchNoMaximum number of notes per batch for batch-add and batch-update operations. Default is 100.100
media_allowed_hostsNoSpecific hosts allowed to bypass private network blocking for media URL imports. Default is an empty list.[]
media_allowed_typesNoAdditional MIME types allowed beyond image/audio/video for media import. Default is an empty list.[]
enabled_opt_in_toolsNoOpt-in tool names to expose to AI clients. Opt-in tools are hidden by default. Default is an empty list.[]
http_allowed_originsNoFull origins with a scheme, appended to the built-in loopback defaults for DNS-rebinding protection. Default is an empty list.[]
show_toolbar_indicatorNoShow the persistent AnkiMCP toolbar status indicator. Default is true.true
show_settings_menu_itemNoShow the AnkiMCP Server Settings entry in Anki's Tools menu. Default is true.true
enabled_destructive_toolsNoDestructive tool names to expose to AI clients. Destructive tools are hidden by default. Default is an empty list.[]

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources