Registry / llm-agents / slite-mcp-server

slite-mcp-server

JSON →
library1.3.0jsnpmunverified

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-server
INSTALL
IMPORT
SIG · SLITE-MCP-SERVER
S
slite-mcp-server
llm-agentsjavascriptv1.3.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SliteMcpServer
import { SliteMcpServer } from 'slite-mcp-server'
const SliteMcpServer = require('slite-mcp-server')
Package is ESM-only; CommonJS require will fail. Use dynamic import() if needed in CJS project.
runServer
import { runServer } from 'slite-mcp-server'
import runServer from 'slite-mcp-server'
runServer is a named export, not a default export.

Shows initializing a SliteMcpServer with an API key, starting it, and calling the search-notes tool as an example.

import { SliteMcpServer } from 'slite-mcp-server'; const server = new SliteMcpServer({ apiKey: process.env.SLITE_API_KEY ?? '' }); await server.start(); // The server exposes tools: search-notes, ask-slite, get-note, get-note-children, create-note // Use an MCP client to invoke them. // Example: searching notes const searchResult = await server.callTool('search-notes', { query: 'MCP integration', page: 1, hitsPerPage: 10 }); console.log(searchResult);
Debug
Known issues
breakingAPI key is required: either pass via --api-key CLI argument or set SLITE_API_KEY environment variable. Missing key causes immediate runtime error.
fix
Ensure SLITE_API_KEY is set in environment or provided via CLI option.
affects: >=1.0.0
gotchaThe create-note tool requires either markdown or html parameter; both cannot be omitted. Mistake leads to validation error.
fix
Always provide at least one of markdown or html when calling create-note.
affects: >=1.0.0
gotchaSearch results pagination: page and hitsPerPage are optional but if omitted, defaults may lead to incomplete results.
fix
Specify page and hitsPerPage explicitly to control pagination.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Missing required parameter: apiKey
The SLITE_API_KEY environment variable is not set and no --api-key argument was provided.
fix
export SLITE_API_KEY=your_key_here or pass --api-key=your_key_here when running npx.
TypeError: Cannot read properties of undefined (reading 'callTool')
Calling server.callTool before server.start() has completed (common async mistake).
fix
Ensure await server.start() is called before any tool invocation.
ValidationError: Either markdown or html must be provided
Both markdown and html were omitted in a create-note call.
fix
Provide either markdown (string) or html (string) parameter when calling create-note.
Upgrade
Version history
1.3.0latest on npm
Audit
Dependencies
@modelcontextprotocol/sdkrequiredCore MCP SDK for server implementation and tool registration
Agent activity
26 hits · last 30 days
node
24
OpenAI (training)
1
Resources
slite-mcp-server — npm install slite-mcp-server · libregistry