MCP
knowledge

Slite

Read, search, and write knowledge-base notes in Slite — including AI Q&A.

Requires Growth plan or above.

Connect Slite

Generate an API key in Slite at Settings → API, then paste it on the Slite card at /dashboard/connections.

Example

Ask the Slite AI for an answer grounded in your workspace docs.

app/api/ask-handbook/route.ts
export async function POST(req: Request) {
const { question } = await req.json() as { question: string }
const res = await fetch('https://leash.build/api/integrations/slite/ask-slite', {
method: 'POST',
headers: {
'x-api-key': process.env.LEASH_API_KEY!,
'content-type': 'application/json',
},
body: JSON.stringify({
question, // e.g. "What is our parental leave policy?"
}),
})
const { data } = await res.json()
// data =>
// {
// answer: 'Employees get 16 weeks of paid parental leave...',
// sources: [
// {
// noteId: 'nt_8aB...',
// title: 'People Handbook — Leave',
// url: 'https://acme.slite.com/api/s/note/nt_8aB.../people-handbook-leave'
// }
// ]
// }
return Response.json(data)
}

Available tools

  • ask-slite — natural-language Q&A grounded in your notes.
  • search-notes — keyword search across notes.
  • create-note — create a new note.
  • get-note — fetch a note by ID.
  • get-note-children — list direct children of a note.
  • update-note — replace note title and Markdown body.

Common gotchas

  • ask-slite only sees notes the API key's user can see. If answers are sparse, double-check the user's channel memberships.
  • Note bodies are Markdown. HTML is escaped on write; nested children must be created with explicit parentNoteId.
  • Rate limit is ~60 req/min per workspace. Burst patterns trip 429s on ask-slite in particular.

See the Slite API reference for the underlying provider docs.

Other languages: see SDK overview.