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
+13-3
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
@@ -102,7 +102,8 @@ Add the following to your `claude_desktop_config.json`:
102
102
],
103
103
"env": {
104
104
"SLACK_BOT_TOKEN": "xoxb-your-bot-token",
105
-
"SLACK_TEAM_ID": "T01234567"
105
+
"SLACK_TEAM_ID": "T01234567",
106
+
"SLACK_CHANNEL_IDS": "C01234567, C76543210"
106
107
}
107
108
}
108
109
}
@@ -124,17 +125,26 @@ Add the following to your `claude_desktop_config.json`:
124
125
"SLACK_BOT_TOKEN",
125
126
"-e",
126
127
"SLACK_TEAM_ID",
128
+
"-e",
129
+
"SLACK_CHANNEL_IDS",
127
130
"mcp/slack"
128
131
],
129
132
"env": {
130
133
"SLACK_BOT_TOKEN": "xoxb-your-bot-token",
131
-
"SLACK_TEAM_ID": "T01234567"
134
+
"SLACK_TEAM_ID": "T01234567",
135
+
"SLACK_CHANNEL_IDS": "C01234567, C76543210"
132
136
}
133
137
}
134
138
}
135
139
}
136
140
```
137
141
142
+
### Environment Variables
143
+
144
+
1.`SLACK_BOT_TOKEN`: Required. The Bot User OAuth Token starting with `xoxb-`.
145
+
2.`SLACK_TEAM_ID`: Required. Your Slack workspace ID starting with `T`.
146
+
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