You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/slack/README.md
+14-3Lines changed: 14 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ MCP Server for the Slack API, enabling Claude to interact with Slack workspaces.
5
5
## Tools
6
6
7
7
1.`slack_list_channels`
8
-
- List public channels in the workspace
8
+
- List public or pre-defined channels in the workspace
9
9
- Optional inputs:
10
10
-`limit` (number, default: 100, max: 200): Maximum number of channels to return
11
11
-`cursor` (string): Pagination cursor for next page
@@ -78,6 +78,7 @@ MCP Server for the Slack API, enabling Claude to interact with Slack workspaces.
78
78
-`chat:write` - Send messages as the app
79
79
-`reactions:write` - Add emoji reactions to messages
80
80
-`users:read` - View users and their basic information
81
+
-`users.profile:read` - View detailed profiles about users
81
82
82
83
4. Install App to Workspace:
83
84
- Click "Install to Workspace" and authorize the app
@@ -102,7 +103,8 @@ Add the following to your `claude_desktop_config.json`:
102
103
],
103
104
"env": {
104
105
"SLACK_BOT_TOKEN": "xoxb-your-bot-token",
105
-
"SLACK_TEAM_ID": "T01234567"
106
+
"SLACK_TEAM_ID": "T01234567",
107
+
"SLACK_CHANNEL_IDS": "C01234567, C76543210"
106
108
}
107
109
}
108
110
}
@@ -124,17 +126,26 @@ Add the following to your `claude_desktop_config.json`:
124
126
"SLACK_BOT_TOKEN",
125
127
"-e",
126
128
"SLACK_TEAM_ID",
129
+
"-e",
130
+
"SLACK_CHANNEL_IDS",
127
131
"mcp/slack"
128
132
],
129
133
"env": {
130
134
"SLACK_BOT_TOKEN": "xoxb-your-bot-token",
131
-
"SLACK_TEAM_ID": "T01234567"
135
+
"SLACK_TEAM_ID": "T01234567",
136
+
"SLACK_CHANNEL_IDS": "C01234567, C76543210"
132
137
}
133
138
}
134
139
}
135
140
}
136
141
```
137
142
143
+
### Environment Variables
144
+
145
+
1.`SLACK_BOT_TOKEN`: Required. The Bot User OAuth Token starting with `xoxb-`.
146
+
2.`SLACK_TEAM_ID`: Required. Your Slack workspace ID starting with `T`.
147
+
3.`SLACK_CHANNEL_IDS`: Optional. Comma-separated list of channel IDs to limit channel access (e.g., "C01234567, C76543210"). If not set, all public channels will be listed.
0 commit comments