Slack MCP
1. Prerequisites
Before using the Slack MCP node you need:
- A Slack account: sign up at https://slack.com/
- A Slack workspace
- An OAuth client app: generated inside your Slack workspace. This gives you a Client ID and Client Secret.
2. Setting Up Slack Credentials
2.1 Create a new app in Slack
- Go to https://api.slack.com/apps/new
- Create a new app, either via manifest or from scratch.
.png)
- After an app is created, grab the Client ID and Client Secret.
.png)
2.2 Add Credentials in SamaFlow
- In SamaFlow, navigate to Credentials from the sidebar.
- Click Add Credential and search for Slack User Token OAuth2.
- Fill in the following fields:
| Field | Description | Example |
|---|---|---|
| Client ID | The OAuth Client ID from Slack | wBSGhxxxx |
| Client Secret | The OAuth Client Secret (stored securely) | •••••••• |
| Scopes | (Optional) Space-separated scopes. |
|
- Copy OAuth Redirect URL, then click Save.
.png)
Tip: For production environments, use the narrowest scopes you need. See available scopes.
2.3 Add Redirect URL to Slack App
- From the left side nav bar, select OAuth & Permissions:
.png)
- Scroll down and you will see Redirect URLs section. Add the copied redirect URL from previous step. Then click Save URLs.
.png)
3. Adding Slack MCP
- Drag and drop an Agent node.
- Add a new Slack MCP tool.
.png)
- Select preconfigured credential, and click the edit button. Click Authenticate.
.png)
- A slack pop-up window will appear, review the permissions and click Allow.
.png)
- After authenticated, click the refresh button to load the available actions.
.png)
- Select the actions. Tip: Select only the actions your agent needs. Fewer tools help the LLM make better decisions and reduce token usage.
.png)
- Voila! You can start chatting with the Agent and see how its calling Slack MCP tools.
.png)