A Model Context Protocol server that integrates Slite's knowledge management capabilities with AI models supporting function calling through MCP. Version 1.3.0 enables AI assistants to search notes, ask questions, retrieve note details, and create notes via tools like search-notes, ask-slite, get-note, get-note-children, and create-note. Unlike direct API integration, MCP provides a standardized protocol for tool discovery and invocation. The package ships TypeScript types and is designed for use with MCP-compatible AI clients (e.g., Claude). Features include optional filtering, pagination, content formatting, and environment variable configuration.
npm install slite-mcp-serverVerified import paths — ran on the pinned version, not inferred.
Shows initializing a SliteMcpServer with an API key, starting it, and calling the search-notes tool as an example.
Ensure SLITE_API_KEY is set in environment or provided via CLI option.
Always provide at least one of markdown or html when calling create-note.
Specify page and hitsPerPage explicitly to control pagination.
export SLITE_API_KEY=your_key_here or pass --api-key=your_key_here when running npx.
Ensure await server.start() is called before any tool invocation.
Provide either markdown (string) or html (string) parameter when calling create-note.