Skip to main content
Glama

Anki MCP Server

by nailuoGG
index.ts856 B
#!/usr/bin/env node /** * Main entry point for the Anki MCP Server */ import { AnkiMcpServer } from "./ankiMcpServer.js"; /** * Parse command line arguments */ function parseArgs() { const args = process.argv.slice(2); const portIndex = args.indexOf("--port"); const port = portIndex !== -1 && args[portIndex + 1] ? parseInt(args[portIndex + 1], 10) : 8765; if (Number.isNaN(port) || port < 1 || port > 65535) { console.error("Invalid port number. Please provide a valid port between 1-65535"); process.exit(1); } return { port }; } /** * Main function */ async function main() { try { const { port } = parseArgs(); const server = new AnkiMcpServer(port); await server.run(); } catch (error) { console.error("Failed to start Anki MCP Server:", error); process.exit(1); } } // Start the server main().catch(console.error);

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

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