yt-slack-mcp
Enables reading Slack messages, permalinks, threads, and channel history, as well as replying to threads and adding reactions to messages.
Click on "Deploy 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., "@yt-slack-mcpPull up the Slack thread I shared earlier and summarize it."
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.
yt-slack-mcp
A host-agnostic Model Context Protocol server for Slack. It communicates over stdio and can be used with any MCP client that launches local servers.
Features
Read Slack channel history and thread replies.
Read message permalinks from channels, DMs, and group DMs.
Return image attachments inline, extract text from PDFs, and return
text/*attachment contents inline.Retrieve private attachment contents through the authenticated Slack browser session.
Reply to a thread, add a reaction, or upload local files only in explicitly allowed channel IDs.
Attachment limits: images and text files are limited to 10 MB; text attachments are truncated at 100,000 characters. PDFs are limited to 20 MB, 50 pages, and 100,000 extracted characters.
Related MCP server: Slack MCP Server
Tools
Tool | Description |
| Read a message or thread from a channel, DM, or group-DM permalink, including supported attachments. |
| Read replies for a thread by channel ID and timestamp. |
| Read recent channel history. |
| Reply to a thread; restricted to allowed channels. |
| Add a reaction; restricted to allowed channels. |
| Upload up to 10 local files to a channel or thread, with an optional initial comment; returns file and message permalinks; restricted to allowed channels. |
Setup
1. Obtain browser session tokens
xoxc: Slack web localStorage token (from your logged-in browser session).xoxd: Slack cookie namedd.
These may need refreshing when Slack rotates/invalidates the session.
2. Store the secrets
Save each token as a single-line file:
~/.config/yt-slack-mcp/secrets/slack-xoxc.txt
~/.config/yt-slack-mcp/secrets/slack-xoxd.txtThe server reads these paths by default. Override them with the config file or environment variables if your MCP host manages secrets elsewhere.
3. (Optional) Configure allowed write channels and paths
All configuration can live in a JSON config file at
~/.config/yt-slack-mcp/config.json (override with SLACK_MCP_CONFIG):
{
"secretsDir": "~/.config/yt-slack-mcp/secrets",
"xoxcPath": "~/.config/yt-slack-mcp/secrets/slack-xoxc.txt",
"xoxdPath": "~/.config/yt-slack-mcp/secrets/slack-xoxd.txt",
"allowedWriteChannels": ["C0123456789", "C0987654321"],
"userAgent": "Mozilla/5.0"
}By default the write tools (slack_reply_to_thread, slack_add_reaction)
and slack_upload_files are locked down — no channel is writable. Each upload is limited to 10 MB. Every field is optional; a
missing file just means defaults. Env vars always override the config file.
Configuration
Config resolution order: built-in defaults → config file → env vars.
Config file key | Env var | Default | Description |
|
|
| Directory holding the token files |
|
|
| Path to the |
|
|
| Path to the |
|
| (none) | Channel IDs allowed for write tools (comma-separated in env) |
|
|
| HTTP |
(config file path) |
|
| Path to the JSON config file |
MCP host configuration
Configure your MCP host to run yt-slack-mcp over stdio. The host-specific configuration varies, but the command is:
npx yt-slack-mcpFor example, Claude Desktop uses:
{
"mcpServers": {
"slack": {
"command": "npx",
"args": ["yt-slack-mcp"]
}
}
}License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for RiverScript, an AI transcription platform - fetches transcripts shared via a link.
An MCP server that provides congressional transcripts
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceSelf-hosted MCP server for Slack using User OAuth Token, enabling message management, channel operations, and user interactions via natural language.32 npmMIT
- AlicenseNot gradedqualityBmaintenanceA production-ready MCP server for the Slack API that enables searching, listing channels, reading history, inspecting users, fetching threads, and sending messages through controlled Slack tools.21,724 npmMIT
- AlicenseNot gradedqualityBmaintenanceMCP server for interacting with Slack using a user token. It allows reading channels, DMs, threads, search, and posting messages as the authenticated user.32 npmMIT
- AlicenseAqualityCmaintenanceMCP server that reads Slack through your own browser session, authenticating as you rather than a bot. Provides tools to search messages, retrieve channel/DM/thread history, resolve users, and post messages (write disabled by default).10MIT