FlowTruxFlowTrux/Docs

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

  1. Go to https://api.slack.com/apps.
  2. Click Create New App > From scratch.
  3. 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:

ScopeRequired For
chat:writeSending messages and reports
channels:readListing channels
channels:historyReading channel messages
users:readListing users and user info
reactions:writeAdding emoji reactions
files:writeUploading files

3. Install to Workspace

  1. Click Install to Workspace at the top of the OAuth & Permissions page.
  2. Authorize the app.
  3. Copy the Bot User OAuth Token (starts with xoxb-).

4. Add to FlowTrux

  1. Go to Resources > MCP Servers > Add Server (OWNER or ADMIN).
  2. Choose Slack.
  3. Give the configuration a Name and paste the token into Bot Token.
  4. Optionally set a Default Channel (#general or a channel ID). Tools use it when a call does not name a channel.
  5. 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.

ParameterTypeRequiredDescription
channelstringNoChannel ID or name (e.g., #general or C1234567890). Defaults to the server's Default Channel.
textstringYesMessage text (supports Slack markdown/mrkdwn)
thread_tsstringNoThread timestamp to reply in thread.
unfurl_linksbooleanNoEnable link unfurling. Default: true.

send_blocks

Send a rich message with Block Kit blocks.

ParameterTypeRequiredDescription
channelstringNoChannel ID or name.
blocksarrayYesArray of Block Kit blocks (see Slack Block Kit docs)
textstringYesFallback text for notifications.
thread_tsstringNoThread timestamp to reply in thread.

send_formatted_report

Send a formatted report with metrics (pre-styled)

ParameterTypeRequiredDescription
channelstringNoChannel ID.
titlestringYesReport title.
metricsobjectYesKey-value pairs of metrics to display.
summarystringNoOptional summary text.
colorstringNoAttachment color (hex or 'good', 'warning', 'danger') Default: "good".

add_reaction

Add an emoji reaction to a message.

ParameterTypeRequiredDescription
channelstringYesChannel ID where the message is.
timestampstringYesMessage timestamp (ts)
namestringYesEmoji name without colons (e.g., 'thumbsup', 'white_check_mark')

Channels and users

list_channels

List public channels in the workspace.

ParameterTypeRequiredDescription
limitnumberNoMaximum number of channels to return. Default: 100.
exclude_archivedbooleanNoExclude archived channels. Default: true.

get_channel_history

Get recent messages from a channel.

ParameterTypeRequiredDescription
channelstringYesChannel ID.
limitnumberNoNumber of messages to retrieve (default 20, max 200)

list_users

List users in the workspace.

ParameterTypeRequiredDescription
limitnumberNoMaximum number of users to return. Default: 100.

get_user_info

Get information about a user.

ParameterTypeRequiredDescription
userstringYesUser 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.

ParameterTypeRequiredDescription
querystringYesSearch query (supports Slack search modifiers like 'from:@user' or 'in:#channel')
countnumberNoNumber of results to return. Default: 20.

Files

upload_file

Upload a file to a channel.

ParameterTypeRequiredDescription
channelstringYesChannel ID to upload to (C…; a #name is not accepted by Slack's upload API)
contentstringYesFile content as text.
filenamestringYesFilename with extension.
titlestringNoTitle of the file.
initial_commentstringNoMessage to include with the file.

Tips

  • Channel IDs are stable across renames. send_message and send_blocks accept either #name or an ID (C…); upload_file needs the ID.
  • Reply in a thread by passing the ts returned by an earlier send_message as thread_ts.
  • search_messages needs a user token. Slack refuses search for a bot token (xoxb-); use a user token (xoxp-) with the search:read scope, or read a known channel with get_channel_history instead.
  • Use send_blocks for rich layouts (buttons, fields, dividers) and send_message for plain text or Slack markdown.

Example Workflow

A daily summary posted to a channel:

  1. Trigger - Schedule (daily at 9:00).
  2. Action - HTTP request that fetches yesterday's numbers.
  3. Action - MCP tool slack:send_formatted_report with title "Daily summary" and metrics taken 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.