Home / Servers / Slack API / chat_post_message

Sends a message to a channel.

An MCP tool from the Slack API server, hosted on mcp.hjlabs.in.

Sends a message to a channel. [POST /chat.postMessage]

Name on the gateway: slack_api__chat_post_message · may change things.

Parameters

NameTypeDescription
as_userstringPass true to post the message as the authed user, instead of as a bot.…
attachmentsstringA JSON-based array of structured attachments, presented as a URL-encoded string.
blocksstringA JSON-based array of structured blocks, presented as a URL-encoded string.
channel requiredstringChannel, private group, or IM channel to send message to. Can be an encoded…
icon_emojistringEmoji to use as the icon for this message. Overrides icon_url. Must be used in…
icon_urlstringURL to an image to use as the icon for this message. Must be used in…
link_namesbooleanFind and link channel names and usernames.
mrkdwnbooleanDisable Slack markup parsing by setting to false. Enabled by default.
parsestringChange how messages are treated. Defaults to none. See below.
reply_broadcastbooleanUsed in conjunction with thread_ts and indicates whether reply should be made…
textstringHow this field works and whether it is required depends on other fields you…
thread_tsstringProvide another message's ts value to make this message a reply. Avoid using a…
unfurl_linksbooleanPass true to enable unfurling of primarily text-based content.
unfurl_mediabooleanPass false to disable unfurling of media content.
usernamestringSet your bot's user name. Must be used in conjunction with as_user set to…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "slack_api__chat_post_message",
  "arguments": {
    "channel": "…"
  }
}

Or connect the Slack API server directly, which lists 174 tools including this one:

Run in your terminal
claude mcp add --transport http hj-slack-api https://mcp.hjlabs.in/mcp/slack-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the sends a message to a channel. tool with as_user set to ….

More from Slack API