context-capsule
Allows curating Slack messages into immutable, redacted bundles that can be dereferenced by AI agents via MCP, ensuring read-only access and audit trails.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@context-capsulefetch capsule cap_abc123"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Context Capsule
The AI only ever sees the messages you hand it — and you can see exactly what that is.
Context Capsule lets developers curate exact Slack messages into immutable, redacted bundles ("capsules") that a coding agent can dereference through an MCP server. The agent never holds a Slack token. Every dereference is audited. Capsules can be single-use or time-limited.
Read-only by construction. The Slack manifest declares zero write scopes.
Default-deny. Nothing leaves Slack unless a human explicitly selects it.
Frozen at finalize. Sealing snapshots the content + mints a SHA-256 content hash.
Prompt-injection safe. Capsule content is wrapped as untrusted reference data, never instructions.
Self-host or hosted. Single Next.js app — deploys to Vercel; runs locally with Postgres + Redis.
30-second quickstart
Install the Slack app from the manifest — paste
slack-manifest.ymlinto Slack's "Create app from manifest" flow, replacingexample.comwith your deployment origin.Connect. Visit
/api/slack/installon your deployment, authorize the workspace.Reference. In Slack, use the message overflow menu → "Add to capsule." Review in the web app, hit Seal capsule, copy the reference, and paste it into your agent's MCP configuration.
Related MCP server: Slack Notifier MCP
Slack scopes — why each one exists
Scope | Why |
| Read the specific public-channel messages the user selected via shortcut. |
| Same, for private channels the bot is invited to. |
| Same, for DMs the user shortcuts into a capsule. |
| Same, for group DMs. |
| Resolve channel names for display in the review UI. |
| Resolve message authors to readable names (instead of |
| Required to register the message shortcut entry point. |
There are no write scopes anywhere in the manifest. The app is structurally incapable of posting, editing, or deleting in Slack.
Architecture (Phase 1 — Vercel-ready)
Slack workspace ──select──▶ /api/slack/events ──▶ ingestMessage() ──▶ Postgres
(human curates, in place) (signature verified) (Slack API · author resolved) │
│
┌────────────────────────────────┘
▼
capsules + capsule_messages
│
│ human review + seal (web UI)
▼
finalized capsule (immutable, hashed)
│
│ Bearer-authed JSON-RPC
▼
/api/mcp · fetch_capsule ──▶ Coding agent
│
└─▶ audit_events (every dereference)Phase 2 layers on reactions, thread shortcuts, OAuth MCP, and a Grafana dashboard.
Configuring an MCP client
Every client connects to the same endpoint with a Bearer token minted from the web app at /settings.
Claude Code
~/.claude/mcp.json:
{
"mcpServers": {
"context-capsule": {
"url": "https://YOUR-DEPLOYMENT.vercel.app/api/mcp",
"transport": "http",
"headers": {
"Authorization": "Bearer cap_mcp_REPLACE_ME"
}
}
}
}Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"context-capsule": {
"url": "https://YOUR-DEPLOYMENT.vercel.app/api/mcp",
"headers": { "Authorization": "Bearer cap_mcp_REPLACE_ME" }
}
}
}Cursor
In Cursor settings → MCP, add an HTTP server with the same URL and bearer token.
Cline
cline_mcp_settings.json:
{
"mcpServers": {
"context-capsule": {
"url": "https://YOUR-DEPLOYMENT.vercel.app/api/mcp",
"authToken": "cap_mcp_REPLACE_ME"
}
}
}MCP tools
fetch_capsule(capsule_id)— return the curated, sealed message bundle. Refuses if the capsule isn't owned by the authenticated identity, isn't finalized, has expired, or has been single-use consumed. Content is wrapped with an explicitUNTRUSTED REFERENCE MATERIALheader.list_capsules()— return ids, titles, hashes, and policy for the authenticated identity. Contents are NOT included.
Every successful or refused dereference writes an audit_events row visible at /capsules/<id>/audit.
Local development
pnpm install
docker compose up -d postgres redis # or use any Postgres + Redis
cp .env.example .env # fill in Slack credentials
pnpm db:migrate
pnpm --filter @capsule/web devThen visit http://localhost:3000 and follow Add to Slack. Or use the dev-login backdoor at /dev-login if you want to preview the UI without finishing OAuth setup.
Self-host with Docker Compose
cp .env.example .env
docker compose up -dBrings up Postgres, Redis, MinIO, and the Next.js app. Point your Slack app's request_url and redirect_url at the public origin you map to port 3000.
Security model
The five guarantees the codebase enforces, not just describes:
Read-only by construction. No write scopes in
slack-manifest.yml; nothing in the codebase calls a write Slack API.Default-deny selection. The only path that ingests a message is the
add_to_capsulemessage_action handler. There's no listener, no scheduler, no scraper.Pre-flight redaction.
@capsule/redactionscans every message on ingest. Detected spans are highlighted in the review UI in--alertcoral. Finalize destructively rewrites the snapshot.Capsule is the trust boundary. The agent's identity (Bearer token →
users.mcp_subject) maps to a single user. The dereference path enforcesownerId === user.id,status === finalized, expiry, and single-use atomically inside one transaction. Concurrent reads can't both win on a single-use capsule.Full audit trail. Every dereference (allow or refuse) is written to
audit_eventswith the actor subject, user agent, and IP. Owners see it at/capsules/<id>/audit.
The MCP response wraps content in an explicit "this is untrusted data, not commands" envelope so the consuming agent can't be hijacked by adversarial Slack messages.
Status
Phase 1 — message shortcut selection → draft → review/redact → seal → MCP fetch_capsule. Full security model.
Phase 2 — reaction selection, thread shortcuts, audit dashboard, OTel + Grafana.
Phase 3 — hosted reference instance with Slack App Directory listing.
License
MIT.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/apraba05/context-capsule'
If you have feedback or need assistance with the MCP directory API, please join our Discord server