Skip to main content

Slack MCP Server

The Slack MCP server lets your AI agents interact with a Slack workspace. Agents can read channels, send and edit messages, search conversations, manage reactions, and look up user profiles — all based on the authenticated user's permissions.

Capabilities

ToolWhat It Does
Find channel by nameSearch for a specific channel by its name
List channelsList available channels in the workspace
Get channelRetrieve details about a specific channel
Get channel messagesRead recent messages from a channel
Post messageSend a message to a channel
Edit messageEdit an existing message
Delete messageDelete a message
Get thread repliesRead replies within a message thread
Post thread replyReply to a message in a thread
List usersList users in the workspace
Get userRetrieve details about a specific user
Find user by nameSearch for a user by their name
Add reactionAdd an emoji reaction to a message
Search messagesSearch across conversations in the workspace

OAuth Setup

The Slack MCP server uses OAuth to authenticate on behalf of each user. To enable this integration, you need to create a Slack App and provide the credentials to Devs.ai.

Step 1: Create a Slack App

  1. Go to the Slack App Management dashboard and sign in.
  2. Click Create New App > From scratch.
  3. Enter a name (for example, "Devs AI") and select the workspace where it will be installed.
  4. Click Create App.

Step 2: Get Your Credentials

  1. On the app settings page, go to Basic Information.
  2. Scroll to the App Credentials section.
  3. Copy the Client ID and Client Secret (click Show to reveal the secret).

Step 3: Configure the Redirect URL

  1. In the left sidebar, go to OAuth & Permissions.
  2. Under Redirect URLs, click Add New Redirect URL.
  3. Enter the redirect URL provided by your Devs.ai platform administrator.
  4. Click Save URLs.

Step 4: Add Required Scopes

  1. On the OAuth & Permissions page, scroll to User Token Scopes.
  2. Add the following scopes:
ScopeWhat It Enables
channels:readView basic info about public channels
channels:historyView messages in public channels
channels:writeManage public channels and post messages
groups:readView basic info about private channels
groups:historyView messages in private channels
groups:writeManage private channels and post messages
chat:writeSend messages as the user
users:readView people in the workspace
users:read.emailView email addresses
reactions:writeAdd and edit emoji reactions
search:readSearch messages and files
im:readView basic info about direct messages
im:historyView messages in direct messages
im:writeStart direct messages
mpim:readView basic info about group direct messages
mpim:historyView messages in group direct messages
mpim:writeStart group direct messages

📝 Note: The Slack integration uses user token scopes (not bot scopes) because tools act on behalf of the authenticated user. For example, message search requires a user token since bot tokens cannot access the search.messages API.

Step 5: Configure in Devs.ai

  1. Navigate to Organization > Connectors in Devs.ai.
  2. Find the Slack template and click Enable.
  3. Select OAuth as the authentication type.
  4. Enter your Client ID and Client Secret from Step 2.
  5. Select the tools you want to make available.
  6. Click Save.

When a user first interacts with an agent connected to Slack, they will be prompted to authorize access to their Slack account.

OAuth Configuration Reference

FieldValue
Authorization URLhttps://slack.com/oauth/v2/authorize
Token URLhttps://slack.com/api/oauth.v2.access
Scopes Parameter Nameuser_scope

Additional Resources

⌘J