Docs / Slack Setup

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 OAuth and User Token Scopes

The mcpgate tools use a user token: each person connects their own Slack account in the mcpgate dashboard, and every call runs with that person's access.

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

Then scroll to Scopes → User Token Scopes (not Bot Token Scopes) and add all 23 scopes that mcpgate requests:

ScopePurpose
search:readSearch messages and files
channels:readList public channels
groups:readList private channels
im:readList direct messages
mpim:readList group direct messages
channels:historyRead public channel history
groups:historyRead private channel history
im:historyRead direct message history
mpim:historyRead group direct message history
users:readLook up user profiles
users:read.emailMatch users by email address
files:readRead files
files:writeUpload files
chat:writePost messages and replies
reactions:writeAdd reactions
channels:writeManage public channels
groups:writeManage private channels
im:writeOpen direct messages
mpim:writeOpen group direct messages
channels:write.invitesInvite people to public channels
groups:write.invitesInvite people to private channels
reminders:readRead reminders
reminders:writeCreate and delete reminders

3. Bot token (optional)

The bot token is only for DM notifications from mcpgate. If you want them, add the Bot Token Scope chat:write. The tools do not use the bot token.

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-..., optional)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 & Administration → Workspace 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.