Slack Setup Guide

Connect Slack to mcpgate so your AI can search messages, read channels, post messages, and manage reminders.

Time required: ~10 minutes
You need: Slack workspace admin access

What you'll get

Once connected, your AI client can:

  • Search messages across channels
  • Read channel history and threads
  • Post messages and replies
  • Look up user profiles
  • Send DM notifications (via Bot Token)

1. Create a Slack App

  1. Go to api.slack.com/apps
  2. Click "Create New App"
  3. Choose "From scratch"
  4. Enter an app name (e.g. mcpgate) and select your workspace
  5. Click "Create App"

2. Configure Bot Token Scopes

In the left sidebar, go to OAuth & Permissions. Scroll down to ScopesBot Token Scopes and add:

ScopePurpose
channels:historyRead message history in public channels
channels:readList channels and their metadata
chat:writePost messages and replies
search:readSearch messages and files
users:readLook up user profiles
users:read.emailMatch users by email address

3. Configure OAuth (optional)

If you want per-user Slack connections via the mcpgate dashboard (recommended for teams):

  1. In OAuth & Permissions, scroll to Redirect URLs
  2. Click "Add New Redirect URL"
  3. Enter: https://your-gateway-url/auth/slack/callback
  4. Click "Save URLs"

Then go to User Token Scopes and add search:read and users:read. User tokens enable searches scoped to each user's accessible channels.

4. Install the app

  1. In the left sidebar, go to Install App
  2. Click "Install to Workspace"
  3. Review the permissions and click "Allow"

5. Copy credentials

You need 5 values. Here's where to find each one:

ValueWhere to find it
Bot Token (xoxb-...)OAuth & Permissions → Bot User OAuth Token
Signing SecretBasic Information → App Credentials → Signing Secret
Client IDBasic Information → App Credentials → Client ID
Client SecretBasic Information → App Credentials → Client Secret
Team IDYour workspace URL is your-team.slack.com — the Team ID is in
Settings & AdministrationWorkspace settings → scroll to bottom

6. Add to mcpgate

In the mcpgate setup wizard or .env file:

SLACK_BOT_TOKEN=xoxb-your-bot-token
SLACK_SIGNING_SECRET=your-signing-secret
SLACK_CLIENT_ID=your-client-id
SLACK_CLIENT_SECRET=your-client-secret
SLACK_TEAM_ID=T01234567

Restart mcpgate if using .env. Wizard changes apply automatically.

Verify

Ask your AI: "Search Slack for messages about project X". If configured correctly, you'll see results from your workspace.

Bot Token vs User Token: The Bot Token (xoxb-) lets the AI post messages and read public channels. User Tokens (xoxp-, via OAuth) let the AI search with each user's permissions, including private channels they have access to.