All tools
SlackS

by Slack

Search messages

Searches messages and files in public channels, narrowed by channel, person and date.

View on GitHub
Updated Sep 27, 2026Available asMCP

Description

Use it to see what the team has already said about an account before reaching out; narrow a query with `in:`, `from:`, `before:` and `after:`. `slack_search_public_and_private` also covers private channels and DMs, with the user's consent. The Web API's `search.messages` needs a user token, so it is not listed here beside the bot-token API.

search-messages.md

Search messages

Searches messages and files in public channels, narrowed by channel, person and date.

Use it to see what the team has already said about an account before reaching out; narrow a query with in:, from:, before: and after:. slack_search_public_and_private also covers private channels and DMs, with the user's consent. The Web API's search.messages needs a user token, so it is not listed here beside the bot-token API.

Set up

Use the first option your agent supports.

MCP (official, remote)

Add this server to your agent's MCP settings, then sign in when asked.

{ "mcpServers": { "slack": { "url": "https://mcp.slack.com/mcp" } } }

Call the MCP tool slack_search_public.

Server URL: https://mcp.slack.com/mcp

Before doing anything else, make one read-only call to confirm access.

Rules

  • Ask the user before anything that sends messages, costs money, or changes data.
  • Never print API keys.

Built from these files in the repository

The layout and the rules come from lib/catalog/render-markdown.ts, the set-up wording from lib/catalog/render-access.ts.

Ways in

RouteSourceCallRequiredDocs
MCPOfficial · remoteslack_search_publicOAuthDocs

Workflows using Search messages

No workflows yet
No published workflow uses Search messages yet.