Skip to main content
Glama

gui_deck_browser

Browse and manage Anki flashcard decks directly within the Anki MCP server, enabling quick access and organization of study materials.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registration and inline handler for the MCP tool 'gui_deck_browser'. This code registers the tool with the MCP server using server.tool(), defining an empty input schema ({}), and an async handler that calls ankiClient.graphical.guiDeckBrowser() to open Anki's deck browser GUI, returning a success message or throwing an error.
    // Tool: Open the deck browser server.tool('gui_deck_browser', {}, async () => { try { await ankiClient.graphical.guiDeckBrowser(); return { content: [ { type: 'text', text: 'Successfully opened deck browser', }, ], }; } catch (error) { throw new Error( `Failed to open deck browser: ${error instanceof Error ? error.message : String(error)}` ); } });
  • Reference to 'guiDeckBrowser' in the enum of allowed AnkiConnect actions for the 'multi' tool, allowing indirect execution of the underlying AnkiConnect action via batch operations.
    'guiDeckBrowser',
  • The ankiClient instance used by the handler, which provides the graphical.guiDeckBrowser() method wrapping the AnkiConnect API.
    export const ankiClient = new YankiConnect();

Other Tools

Related Tools

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

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