Docs / Slack Setup
Slack Setup Guide
Connect Slack to mcpgate so your AI can search messages, read channels, post messages, and manage reminders.
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
- Go to api.slack.com/apps
- Click "Create New App"
- Choose "From scratch"
- Enter an app name (e.g.
mcpgate) and select your workspace - 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.
- In the left sidebar, go to OAuth & Permissions and scroll to Redirect URLs
- Click "Add New Redirect URL"
- Enter:
https://your-gateway-url/auth/slack/callback - Click "Save URLs"
Then scroll to Scopes → User Token Scopes (not Bot Token Scopes) and add all 23 scopes that mcpgate requests:
| Scope | Purpose |
|---|---|
search:read | Search messages and files |
channels:read | List public channels |
groups:read | List private channels |
im:read | List direct messages |
mpim:read | List group direct messages |
channels:history | Read public channel history |
groups:history | Read private channel history |
im:history | Read direct message history |
mpim:history | Read group direct message history |
users:read | Look up user profiles |
users:read.email | Match users by email address |
files:read | Read files |
files:write | Upload files |
chat:write | Post messages and replies |
reactions:write | Add reactions |
channels:write | Manage public channels |
groups:write | Manage private channels |
im:write | Open direct messages |
mpim:write | Open group direct messages |
channels:write.invites | Invite people to public channels |
groups:write.invites | Invite people to private channels |
reminders:read | Read reminders |
reminders:write | Create 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
- In the left sidebar, go to Install App
- Click "Install to Workspace"
- Review the permissions and click "Allow"
5. Copy credentials
You need 5 values. Here's where to find each one:
| Value | Where to find it |
|---|---|
Bot Token (xoxb-..., optional) | OAuth & Permissions → Bot User OAuth Token |
| Signing Secret | Basic Information → App Credentials → Signing Secret |
| Client ID | Basic Information → App Credentials → Client ID |
| Client Secret | Basic Information → App Credentials → Client Secret |
| Team ID | Your workspace URL is your-team.slack.com — the Team ID is inSettings & 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.
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.