Slack MCP Server
Send messages, read channels, react, upload files and post reports to Slack from workflows
The Slack MCP server lets your workflows post messages and Block Kit layouts, read channel history, add reactions, upload files, look up users and post formatted metric reports in your Slack workspace. It provides 10 tools.
Setup
1. Create a Slack App
- Go to https://api.slack.com/apps.
- Click Create New App > From scratch.
- Name the app (e.g., "FlowTrux Bot") and select your workspace.
2. Configure Bot Token Scopes
Navigate to OAuth & Permissions and add these Bot Token Scopes:
| Scope | Required For |
|---|---|
chat:write | Sending messages and reports |
channels:read | Listing channels |
channels:history | Reading channel messages |
users:read | Listing users and user info |
reactions:write | Adding emoji reactions |
files:write | Uploading files |
3. Install to Workspace
- Click Install to Workspace at the top of the OAuth & Permissions page.
- Authorize the app.
- Copy the Bot User OAuth Token (starts with
xoxb-).
4. Add to FlowTrux
- Go to Resources > MCP Servers > Add Server (OWNER or ADMIN).
- Choose Slack.
- Give the configuration a Name and paste the token into Bot Token.
- Optionally set a Default Channel (
#generalor a channel ID). Tools use it when a call does not name a channel. - Under Available in workspaces, pick the workspaces that may use it, then click Add Server.
5. Invite the Bot to Channels
The bot can only post to channels it has been invited to - public channels included. In each Slack channel:
/invite @FlowTrux Bot
Direct messages work without an invite. A channel_not_found or not_in_channel error means this step was skipped.
Tools
Messages
send_message
Send a message to a Slack channel.
| Parameter | Type | Required | Description |
|---|---|---|---|
channel | string | No | Channel ID or name (e.g., #general or C1234567890). Defaults to the server's Default Channel. |
text | string | Yes | Message text (supports Slack markdown/mrkdwn) |
thread_ts | string | No | Thread timestamp to reply in thread. |
unfurl_links | boolean | No | Enable link unfurling. Default: true. |
send_blocks
Send a rich message with Block Kit blocks.
| Parameter | Type | Required | Description |
|---|---|---|---|
channel | string | No | Channel ID or name. |
blocks | array | Yes | Array of Block Kit blocks (see Slack Block Kit docs) |
text | string | Yes | Fallback text for notifications. |
thread_ts | string | No | Thread timestamp to reply in thread. |
send_formatted_report
Send a formatted report with metrics (pre-styled)
| Parameter | Type | Required | Description |
|---|---|---|---|
channel | string | No | Channel ID. |
title | string | Yes | Report title. |
metrics | object | Yes | Key-value pairs of metrics to display. |
summary | string | No | Optional summary text. |
color | string | No | Attachment color (hex or 'good', 'warning', 'danger') Default: "good". |
add_reaction
Add an emoji reaction to a message.
| Parameter | Type | Required | Description |
|---|---|---|---|
channel | string | Yes | Channel ID where the message is. |
timestamp | string | Yes | Message timestamp (ts) |
name | string | Yes | Emoji name without colons (e.g., 'thumbsup', 'white_check_mark') |
Channels and users
list_channels
List public channels in the workspace.
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | number | No | Maximum number of channels to return. Default: 100. |
exclude_archived | boolean | No | Exclude archived channels. Default: true. |
get_channel_history
Get recent messages from a channel.
| Parameter | Type | Required | Description |
|---|---|---|---|
channel | string | Yes | Channel ID. |
limit | number | No | Number of messages to retrieve (default 20, max 200) |
list_users
List users in the workspace.
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | number | No | Maximum number of users to return. Default: 100. |
get_user_info
Get information about a user.
| Parameter | Type | Required | Description |
|---|---|---|---|
user | string | Yes | User ID (e.g., U1234567890) |
search_messages
Search for messages in the workspace. Needs a user token (xoxp-) with search:read - Slack refuses a bot token.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search query (supports Slack search modifiers like 'from:@user' or 'in:#channel') |
count | number | No | Number of results to return. Default: 20. |
Files
upload_file
Upload a file to a channel.
| Parameter | Type | Required | Description |
|---|---|---|---|
channel | string | Yes | Channel ID to upload to (C…; a #name is not accepted by Slack's upload API) |
content | string | Yes | File content as text. |
filename | string | Yes | Filename with extension. |
title | string | No | Title of the file. |
initial_comment | string | No | Message to include with the file. |
Tips
- Channel IDs are stable across renames.
send_messageandsend_blocksaccept either#nameor an ID (C…);upload_fileneeds the ID. - Reply in a thread by passing the
tsreturned by an earliersend_messageasthread_ts. search_messagesneeds a user token. Slack refuses search for a bot token (xoxb-); use a user token (xoxp-) with thesearch:readscope, or read a known channel withget_channel_historyinstead.- Use
send_blocksfor rich layouts (buttons, fields, dividers) andsend_messagefor plain text or Slack markdown.
Example Workflow
A daily summary posted to a channel:
- Trigger - Schedule (daily at 9:00).
- Action - HTTP request that fetches yesterday's numbers.
- Action - MCP tool
slack:send_formatted_reportwithtitle"Daily summary" andmetricstaken from the previous step, e.g.{{steps.fetch.output.data.metrics}}.
Or let an Agent node with the slack:send_message tool write the summary in its own words.