Skip to content

Slack

PerSQL gives each Slack channel its own SQLite database — a shared scratch your bot or agent can read and write right from the conversation.

  1. Go to slack.persql.com/install/start, authorize the app for your workspace, and connect it to your PerSQL workspace.

  2. Each channel maps to a top-level database named slack-<channelId> in your workspace, created the first time the channel is used.

Point a bot or agent at the Slack MCP:

https://slack.persql.com/mcp

Authenticate with a PerSQL bearer token. channel_recipe returns the snippet that creates and queries a per-channel database; channel_list shows the channels already wired up. From the bot:

import { PerSQL } from "@persql/sdk";
const db = new PerSQL({ token: process.env.PERSQL_TOKEN })
.database(`<namespace>/slack-${channelId}`);
await db.query("INSERT INTO notes (author, body) VALUES (?, ?)", [user, text]);